MLX Community · First MLX build 3 Jan 2024
CodeLlama-7b-Python-hf
MLX
Text llama2
A text generation model, with 3 MLX builds, from 4-bit to 8-bit.
- Parameters
- — Not published
- Quantisation
- 4-bit CodeLlama-7b-Python-hf-4bit
- Memory needed
- — GB Estimate, unified memory
- Download
- — Weights, estimated
- Downloads
- 108 This build, last 30 days
- Task
- Text generation Text
- MLX builds
- 3 On mlx-community
- Devices
- Mac Apple silicon
Memory
Hugging Face does not list a weights size for this build, so there is no memory estimate.
Estimated from the size of the weights, plus a fifth for context and working memory and 2 GB for macOS and your apps. Long contexts need more.
Run it
Terminal · mlx-lm$ pip install -U mlx-lm
$ mlx_lm.generate --model mlx-community/CodeLlama-7b-Python-hf-4bit --prompt "Hello"
MLX builds
3 on mlx-community| CodeLlama-7b-Python-hf-4bit | 4-bit | — | — | 108 |
|---|---|---|---|---|
| CodeLlama-7b-Python-hf-8bit-mlx | 8-bit | — | — | 90 |
| CodeLlama-7b-Python-hf-4bit-mlx | 4-bit | — | — | 89 |
Sizes are estimated from Hugging Face’s parameter counts and the quantisation. Downloads are for the last 30 days.