Downloads · 30 days
35
1% of all-time downloads
pranav-pvnn/codellama-7b-python-ai-assistant-full-gguf
codellama-7b-python-ai-assistant-full-gguf is a machine learning model from pranav-pvnn. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as llama2.
This is a merged version of the QLoRA fine-tuned CodeLlama-7B model. The LoRA weights have been merged with the base model and converted to GGUF format for easy deployment.
Downloads · 30 days
35
1% of all-time downloads
All-time downloads
2.7K
Public
Repo size
29.5 GB
Likes
3
Public
Click a slice to open those files.
.gguf29.5 GB · 100%
From the Hugging Face model README
This is a merged version of the QLoRA fine-tuned CodeLlama-7B model. The LoRA weights have been merged with the base model and converted to GGUF format for easy deployment.
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"
from llama_cpp import Llama
llm = Llama(model_path="codellama-7b-merged-Q4_K_M.gguf")
prompt = "### Instruction:\nWrite a Python function to calculate factorial.\n### Response:\n"
output = llm(prompt, max_tokens=256)
print(output['choices'][0]['text'])
FROM ./codellama-7b-merged-Q4_K_M.gguf
ollama create my-codellama -f Modelfile
ollama run my-codellama "Write a Python function to sort a list"
### Instruction:
[Your instruction here]
### Response:
Same as base model (Llama 2 license)