GreenBitAI MLX LLM
Collection
GreenBitAI's Low-bit LLMs in MLX format • 73 items • Updated • 5
How to use GreenBitAI/Qwen-2.5-3B-Instruct-layer-mix-bpw-4.0-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir Qwen-2.5-3B-Instruct-layer-mix-bpw-4.0-mlx GreenBitAI/Qwen-2.5-3B-Instruct-layer-mix-bpw-4.0-mlx
This quantized low-bit model GreenBitAI/Qwen-2.5-3B-Instruct-layer-mix-bpw-4.0-mlx was converted to MLX format from GreenBitAI/Qwen-2.5-3B-Instruct-layer-mix-bpw-4.0 using gbx-lm version 0.4.0.
Refer to the original model card for more details on the model.
pip install gbx-lm
from gbx_lm import load, generate
model, tokenizer = load("GreenBitAI/Qwen-2.5-3B-Instruct-layer-mix-bpw-4.0-mlx")
prompt = "hello"
if tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)
Quantized