Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ollama option to choice of LLMs #143

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

rchan26
Copy link
Contributor

@rchan26 rchan26 commented Nov 28, 2024

As discussed in #97. I have added an option to use Ollama as the LLM. By default the model is a quantised SmolLM-1.7B-Instruct.

For example, if you're running an Ollama server from http://127.0.0.1:8000, you can run:

python s2s_pipeline.py \
    --local \
    --device mps \
    --llm ollama \
    --ollama_api_endpoint http://127.0.0.1:8000 

By default the ollama_api_endpoint argument is http://localhost:11434 which is the default host when spinning up an Ollama endpoint.

Note that you must have downloaded the model for Ollama prior to running, so first run

ollama pull hf.co/HuggingFaceTB/SmolLM2-1.7B-Instruct-GGUF

before starting an endpoint with

ollama serve

Also updated a few help comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant