Downloads · 30 days
161
2% of all-time downloads
mlx-community/CodeLlama-13b-Instruct-hf-4bit-MLX
CodeLlama-13b-Instruct-hf-4bit-MLX is a text generation model from mlx-community. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as llama2.
Downloads · 30 days
161
2% of all-time downloads
All-time downloads
10.2K
Public
Repo size
7.8 GB
Likes
3
Public
Click a slice to open those files.
.safetensors7.8 GB · 100%
From the Hugging Face model README

This model was converted to MLX format from codellama/CodeLlama-13b-Instruct-hf.
Refer to the original model card for more details on the model.
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("mlx-community/CodeLlama-13b-Instruct-hf-4bit-MLX")
response = generate(model, tokenizer, prompt="<s>[INST] <<SYS>> You are a helpful, respectful, and honest assistant. Always do... If you are unsure about an answer, truthfully say \"I don't know\" <</SYS>> What's the meaning of life [/INST]", verbose=True)