this post was submitted on 27 Nov 2023
1 points (100.0% liked)
LocalLLaMA
3 readers
1 users here now
Community to discuss about Llama, the family of large language models created by Meta AI.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Here's what I'm using:
FROM starling-lm-7b-alpha.Q5_K_M.gguf
PARAMETER stop <|end_of_turn|>
PARAMETER stop <|im_sep|>
TEMPLATE """
GPT4 User: {{.Prompt}}<|end_of_turn|>GPT4 Assistant:
"""
how do you add your own gguf into ollama? it seems to be storing models as cryptic binary blobs in a folder.
generate the sha256 hash using sha256sum your_model.gguf
rename your_model.gguf to "sha256:_hash_" (replace _hash_ with the actual hash)
move it to /usr/share/ollama/.ollama/models/blobs folder
copy a manifest from a similar model in /usr/share/ollama/.ollama/models/
manifests/registry.ollama.ai/library and update the hash & filesize to match your model in the "image.model" entry.
repeat last step for the params entry
you can call the manifest folder/file whatever you like
Basically yes. https://github.com/jmorganca/ollama#import-from-gguf (download the gguf from huggingface eg https://huggingface.co/berkeley-nest/Starling-LM-7B-alpha)