Run this model with HF Jobs
Run Xylolabs/Llama-3.1-8B-MLX-8bit on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Xylolabs/Llama-3.1-8B-MLX-8bit. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Xylolabs/Llama-3.1-8B-MLX-8bit on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Xylolabs/Llama-3.1-8B-MLX-8bit. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use Xylolabs/Llama-3.1-8B-MLX-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Xylolabs/Llama-3.1-8B-MLX-8bit 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("Xylolabs/Llama-3.1-8B-MLX-8bit") 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 Xylolabs/Llama-3.1-8B-MLX-8bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "Xylolabs/Llama-3.1-8B-MLX-8bit" --prompt "Once upon a time"
- Atomic Chat
Download accuracy-by-size.csv from Xylolabs/Llama-3.1-8B-MLX-8bit: direct link, hf CLI and curl.
- Browser
- Download file 499 Bytes
-
https://huggingface.co/Xylolabs/Llama-3.1-8B-MLX-8bit/resolve/main/accuracy-by-size.csv
- Command line
-
hf download hf://Xylolabs/Llama-3.1-8B-MLX-8bit/accuracy-by-size.csv
-
curl -L -o accuracy-by-size.csv https://huggingface.co/Xylolabs/Llama-3.1-8B-MLX-8bit/resolve/main/accuracy-by-size.csv
499 Bytes
| provider,quant,size_GB,wiki_kl,wiki_top1,held_kl,held_top1,answer_check | |
| Xylolabs,MLX 8-bit,8.532487,0.001399,98.059,0.001207,98.196,6/7 | |
| Xylolabs,MLX 4-bit,4.643319,0.037686,90.657,0.025261,91.382,6/7 | |
| llama.cpp,Q8_0,8.540771,0.000841,98.750,0.000789,98.265, | |
| llama.cpp,Q6_K,6.596007,0.004468,96.696,0.004305,96.216, | |
| llama.cpp,Q5_K_M,5.732988,0.009516,95.358,0.008728,95.010, | |
| llama.cpp,Q4_K_M,4.920734,0.029846,92.162,0.026917,91.716, | |
| llama.cpp,Q3_K_M,4.018918,0.098527,86.377,0.093630,84.667, | |