Views
No views yet
codellama-7b-merged-f16.gguf - Full precision (FP16) - ~13 GBcodellama-7b-merged-Q4_K_M.gguf - 4-bit quantization (recommended) - ~4 GBcodellama-7b-merged-Q5_K_M.gguf - 5-bit quantization (higher quality) - ~5 GBcodellama-7b-merged-Q8_0.gguf - 8-bit quantization (highest quality) - ~7 GB./llama-cli -m codellama-7b-merged-Q4_K_M.gguf -p "### Instruction:\nWrite a Python function to calculate factorial.\n### Response:\n"1from llama_cpp import Llama
2
3llm = Llama(model_path="codellama-7b-merged-Q4_K_M.gguf")
4prompt = "### Instruction:\nWrite a Python function to calculate factorial.\n### Response:\n"
5output = llm(prompt, max_tokens=256)
6print(output['choices'][0]['text'])FROM ./codellama-7b-merged-Q4_K_M.gguf1ollama create my-codellama -f Modelfile
2ollama run my-codellama "Write a Python function to sort a list"### Instruction:
[Your instruction here]
### Response: