Views
No views yet
mlx-community/Qwen3.8-27B-bf16
using mlx-vlm version 0.6.13.
Refer to the original model card for more details on the model.pip install -U mlx-vlmpython -m mlx_vlm.generate --model zherebetskyy/Qwen3.8-27B-6bit-mlx --max-tokens 100 --temperature 0.0 --prompt "Describe this image." --image <path_to_image>| Spec | Value |
|---|---|
| Total Parameters | 27.8B (dense, all active) |
| Layer Configuration | 64 layers (3x linear attention + 1x full attention, 16 repetitions) |
| Standard Attention | 24 Q heads, 4 KV heads (GQA), head_dim 256 |
| Linear Attention | 16 QK heads, 48 V heads, head_dim 128 |
| Context Length | 262K native, up to 1M+ using YaRN scales |
| Vocabulary Size | 248K tokens |
| Native Modalities | Text, Image, Video |
| Model Type Tag | qwen3_8 |
mlx-community/Qwen3.8-27B-bf16 (extracted from the raw FP16/BF16 base distribution)developer system roles.uv (a blazing-fast installer written in Rust).1uv run --with mlx-vlm mlx_vlm.generate \
2 --model zherebetskyy/Qwen3.8-27B-6bit-mlx \
3 --image /path/to/your_image.jpg \
4 --prompt "Describe the layout and contents of this image in detail."1uv run --with mlx-lm mlx_lm.generate \
2 --model zherebetskyy/Qwen3.8-27B-6bit-mlx \
3 --prompt "Write a high-performance Python script using asyncio."1from mlx_vlm import load, generate
2from mlx_vlm.prompt_utils import apply_chat_template
3
4# Load the model and its matching multi-modal visual processor
5model, processor = load("zherebetskyy/Qwen3.8-27B-6bit-mlx")
6
7image = ["/path/to/your_image.jpg"]
8prompt = "Analyze the spatial layout of this scene."
9
10# Wrap prompt and images inside the chat format
11formatted = apply_chat_template(processor, model.config, prompt, num_images=len(image))
12
13# Generate visual outputs on the Apple Silicon GPU
14result = generate(model, processor, formatted, image, max_tokens=400, temp=0.7)
15print(result.text)1from mlx_lm import load, generate
2
3model, tokenizer = load("zherebetskyy/Qwen3.8-27B-6bit-mlx")
4
5response = generate(
6 model,
7 tokenizer,
8 prompt="Design a clean multi-tenant architecture for a SaaS app.",
9 max_tokens=500,
10 temp=0.6
11)
12print(response)You are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|think_on|> and <|think_off|> formatting tokens directly from message blocks to flag the model's internal step-by-step reasoning system on the fly:1System: You are an engineering assistant. <|think_off|>
2User: What is the optimal time complexity of a binary search tree?1System: You are a cryptography expert. <|think_on|>
2User: Implement a side-channel attack resilient RSA algorithm block in C.| Mode | Temperature (temp) | Top-P | Top-K | Min-P | Repeat Penalty | Presence Penalty |
|---|---|---|---|---|---|---|
| 💻 Thinking (Coding/Logic) | 0.6 | 0.95 | 20 | 0 | 1.0 (Off) | Off |
| 🌐 Thinking (General Tasks) | 1.0 | 0.95 | 20 | 0 | 1.0 (Off) | 1.5 |
| ⚡ Fast Generation (No-Thinking) | 0.7 | 0.80 | 20 | 0 | 1.0 (Off) | 1.5 |