Instructions to use mlx-community/CodeLlama-70b-Python-hf-4bit-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/CodeLlama-70b-Python-hf-4bit-MLX with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("mlx-community/CodeLlama-70b-Python-hf-4bit-MLX") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- LM Studio
- MLX LM
How to use mlx-community/CodeLlama-70b-Python-hf-4bit-MLX with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "mlx-community/CodeLlama-70b-Python-hf-4bit-MLX" --prompt "Once upon a time"
- Xet hash:
- 8df61630b2e588f8f1774ec043483299825463aa5ff951977502f3b57ed85f71
- Size of remote file:
- 500 kB
- SHA256:
- 99049b351301fb75b3b0587a484b675cbfd51abe27d2b92eabd385e4c41f97e9
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.