Instructions to use ton-An/CodeLlama-13b-hf-mlx-4Bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use ton-An/CodeLlama-13b-hf-mlx-4Bit 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("ton-An/CodeLlama-13b-hf-mlx-4Bit") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use ton-An/CodeLlama-13b-hf-mlx-4Bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "ton-An/CodeLlama-13b-hf-mlx-4Bit" --prompt "Once upon a time"
- Atomic Chat
Commit History
-
Upload README.md with huggingface_hub
Verified signature5822150 -
Upload config.json with huggingface_hub
Verified signature2ece8a1 -
Upload tokenizer.json with huggingface_hub
Verified signatureed3aa09 -
Upload tokenizer.model with huggingface_hub
Verified signature02840e1 -
Upload special_tokens_map.json with huggingface_hub
Verified signature2fe11b8 -
Upload tokenizer_config.json with huggingface_hub
Verified signature6d4418f -
Upload model.safetensors.index.json with huggingface_hub
Verified signaturec1d4a6c -
Upload model-00002-of-00002.safetensors with huggingface_hub
Verified signaturea361b59 -
Upload model-00001-of-00002.safetensors with huggingface_hub
Verified signatured112644 -
initial commit
Verified signature07b1267