Yukang/LongAlpaca-16k-length
Viewer • Updated • 6.28k • 48 • 25
How to use mlx-community/Llama-3-8B-16K-4bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir Llama-3-8B-16K-4bit mlx-community/Llama-3-8B-16K-4bit
This model was converted to MLX format from mattshumer/Llama-3-8B-16K using mlx-lm version 0.10.0.
Refer to the original model card for more details on the model.
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("mattshumer/Llama-3-8B-16K-4bit")
response = generate(model, tokenizer, prompt="hello", verbose=True)
Quantized