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

Fix gguf model registration with no models dir #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

georgebashi
Copy link

Howdy, I was following the steps in your recent blog post to get set up on a new machine, and I failed at the last step with:

> llm -m gguf -o path mixtral-8x7b-v0.1.Q4_K_M.gguf '[INST] Write a Python function that downloads a file from a URL[/INST]'
Error: 'gguf' is not a known model

Here's a quick PR to fix it 😊 It looks like LlamaGGUF should be registered in all cases, and the existence check for models.json is only relevant for the model-registration logic.

Thank you for such an awesome tool, glad to be able to contribute in a small way!

@blech
Copy link

blech commented Jul 2, 2024

Thank you for this- it also fixed the issue for me (macOS 12.7.4, Python 3.12.4 via Homebrew, llm 0.14)

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.

2 participants