Files
Qwen2.5-Coder-0.5B-bf16/README.md
ModelHub XC 115db7597d 初始化项目,由ModelHub XC社区提供模型
Model: mlx-community/Qwen2.5-Coder-0.5B-bf16
Source: Original Platform
2026-09-17 14:55:13 +08:00

1.0 KiB

base_model, language, library_name, license, license_link, pipeline_tag, tags
base_model language library_name license license_link pipeline_tag tags
Qwen/Qwen2.5-Coder-0.5B
en
transformers apache-2.0 https://huggingface.co/Qwen/Qwen2.5-Coder-0.5B/blob/main/LICENSE text-generation
code
qwen
qwen-coder
codeqwen
mlx

mlx-community/Qwen2.5-Coder-0.5B-bf16

The Model mlx-community/Qwen2.5-Coder-0.5B-bf16 was converted to MLX format from Qwen/Qwen2.5-Coder-0.5B using mlx-lm version 0.19.3.

Use with mlx

pip install mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("mlx-community/Qwen2.5-Coder-0.5B-bf16")

prompt="hello"

if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
    messages = [{"role": "user", "content": prompt}]
    prompt = tokenizer.apply_chat_template(
        messages, tokenize=False, add_generation_prompt=True
    )

response = generate(model, tokenizer, prompt=prompt, verbose=True)