Llama3.1-8B-mlx-4Bit

Built with Llama. 4-bit MLX conversion of Meta's Llama 3.1 8B base model for Apple silicon. 4.5 GB, single shard, converted with mlx-lm 0.26.4 from cyboghostginx/Llama3.1-8B. Weights only, no fine-tuning.

This is the base model, not Instruct. It ships no chat template, so it completes text rather than answering turns. For chat, quantize an Instruct checkpoint instead.

pip install mlx-lm
mlx_lm.generate --model cyboghostginx/Llama3.1-8B-mlx-4Bit \
                --prompt "The three laws of robotics are" --max-tokens 256
from mlx_lm import load, generate

model, tokenizer = load("cyboghostginx/Llama3.1-8B-mlx-4Bit")
print(generate(model, tokenizer, prompt="The three laws of robotics are", verbose=True))

Higher precision: 8-bit MLX, 8.5 GB.

License

Llama 3.1 is licensed under the Llama 3.1 Community License, Copyright (c) Meta Platforms, Inc. All Rights Reserved. The full agreement is reproduced in the gate above.

Downloads last month
9
Safetensors
Model size
1B params
Tensor type
BF16
·
U32
·
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for cyboghostginx/Llama3.1-8B-mlx-4Bit

Quantized
(2)
this model