mlx-community/Qwen3-8B-4bit

🤗 Hugging Face 来源text-generationapache-2.08.2B 参数16 GBsafetensors✓ 2 个校验和今天更新
磁力链接🌱 1✓ 与 Hugging Face 一致

mlx-community/Qwen3-8B-4bit

This model mlx-community/Qwen3-8B-4bit was converted to MLX format from Qwen/Qwen3-8B using mlx-lm version 0.24.0.

Use with mlx

pip install mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("mlx-community/Qwen3-8B-4bit")

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)