Skip to content

An improved wrapper for ollama that allows for one-shot launching of local models with URL specification.

Notifications You must be signed in to change notification settings

HawkClaws/oyama

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

 oyama

Oyama

An improved wrapper for ollama that allows for one-shot launching of local models with URL specification.
It runs on Linux and GoogleColab.
It will not work on Windows or Mac...

Open In Colab

How to use

Install

pip install git+https://github.com/HawkClaws/oyama.git ollama

Code

from oyama import oyama
import ollama

# Hugging Face Model Path
model_name = oyama.run("https://huggingface.co/mmnga/cyberagent-calm2-7b-chat-gguf/resolve/main/cyberagent-calm2-7b-chat-q8_0.gguf?download=true")

response = ollama.chat(model=model_name, messages=[
  {
    'role': 'user',
    'content': '日本でお薦めの観光地を5つあげてください。',
  },
])
print(response['message']['content'])

Other examples

## ollama model name
model_name = oyama.run("llama3")

Get model link

 get_mopdel_link

About

An improved wrapper for ollama that allows for one-shot launching of local models with URL specification.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published