请求加入做种队列,或现在用 pf download ahmedihamdy/Qwen3.8-27B-MLX-4bit-vision-DFLASH2 获取(CLI 指南)。
Qwen 3.8 27B at 4-bit, with its eyes and its draft model, on your Mac. This is TensorFold's 4-bit MLX build of Qwen 3.8 27B, vision tower included, with the DFlash2 draft model packed inside, so one download gives you both. While the big model writes, the small one guesses the next few words, and the big model checks all the guesses in a single step. Every guess it agrees with is a word it did not have to write on its own, and every word is still the big model's own choice.
It reads text and pictures, reasons before it answers, calls tools, and holds up to 262,144 tokens of conversation. It is a dense model: all 27B parameters work on every token, which makes each plain step slow and is exactly why a draft model helps it so much. This is the same pair TensorFold's own engine serves for this model.
Built with, and made for, Astronomical.
Download Astronomical for Mac (Apple silicon, macOS 14 and later). Astronomical is a free, open source app for running open models privately on your own Mac: nothing you type leaves it. You tell it how much memory a model may use, and it keeps the rest of your Mac usable.
Astronomical drafts with this model from Astronomical 0.2.110. Astronomical checks for updates on its own, or you can download the latest release from the link above.
First add the astronomical command: click Astronomical's menu-bar item, click the ⋯ button, and choose Install “astronomical” command in terminal…. Commands name the model by its short name, Qwen3.8-27B-MLX-4bit-vision-DFLASH2:
# Download it from the catalog.
astronomical models download Qwen3.8-27B-MLX-4bit-vision-DFLASH2
# Ask it something.
astronomical respond "Explain speculative decoding in two sentences" --model Qwen3.8-27B-MLX-4bit-vision-DFLASH2
# Show it a picture.
astronomical respond "What is in this image?" --image photo.png --model Qwen3.8-27B-MLX-4bit-vision-DFLASH2
# Make it the model every request uses unless it names another.
astronomical models default Qwen3.8-27B-MLX-4bit-vision-DFLASH2
# Start a coding agent that runs on it.
astronomical launch claude --model Qwen3.8-27B-MLX-4bit-vision-DFLASH2
astronomical launch codex and astronomical launch opencode work the same way. Any other tool that speaks the OpenAI or Anthropic API can use it too: the local API page has the settings for each client. Run astronomical --help for every command.
| Disk | About 18.6 GB |
| Memory for full speed | About 19.6 GB of model memory, set as Maximum model RAM in Observatory's Settings, so in practice a Mac with 36 GB or more |
| Faster decoding | An M5-family Mac (the drafting kernels use the M5 GPU's matrix units) |
Drafting runs only while the whole model and its drafter are in memory. On a Mac without an M5 GPU, or with a lower memory limit, the model still runs: it decodes one token at a time, like the plain 4-bit build. A reply to a message with a picture in it also decodes one token at a time; drafting resumes on the next text-only message.
astronomical-build.json records the size and SHA-256 of every file in this repository, so anyone can check it.drafter folder first, so this model drafts as soon as it loads, with no setup.Measured with Astronomical on an M5-family Mac, through Astronomical's own serving process: a 10,011-token prompt from Romeo and Juliet, then 500 tokens at temperature 1.0.
| Decode | |
|---|---|
| Plain 4-bit build | 16.7 tokens a second |
| This build, drafting | 37.0 and 35.1 tokens a second (two runs) |
That is about 2.1 to 2.2 times faster. Short chats and code go further: the drafter keeps more of its guesses on code, and each round costs less with a short conversation behind it.
This is a community build, not an official Qwen release. All credit for the models goes to their authors.
| Source | Commit | Where it is in this repository |
|---|---|---|
TensorFold/Qwen3.8-27B-MLX-4bit |
22d8d538154e0e5b6f8dcb1fcc74a60a0798104c |
The top folder: weights, vision tower, tokenizer and settings |
z-lab/Qwen3.8-27B-DFlash2 |
50307d4c4cde6860d4eee73e2547cd786fe8e8a4 |
drafter/ |
| Path | What it is |
|---|---|
model-0000*-of-00003.safetensors, config.json, tokenizer, chat template |
The target model: 4-bit affine, group size 64, with its bf16 vision tower inside the same shards |
preprocessor_config.json, processor_config.json, video_preprocessor_config.json |
The image settings, for pictures |
drafter/ |
The DFlash2 draft model: 5 layers in bf16, with its own card and license |
astronomical-build.json |
The sources and the size and SHA-256 of every file |
The drafter has no vocabulary of its own: it borrows the target's embedding, its output head and the hidden states of the layers it reads, so it only works beside this model.
The target model loads exactly as TensorFold's 4-bit build does:
from mlx_vlm import apply_chat_template, generate, load
from mlx_vlm.utils import load_config
model_path = "ahmedihamdy/Qwen3.8-27B-MLX-4bit-vision-DFLASH2"
model, processor = load(model_path)
config = load_config(model_path)
prompt = apply_chat_template(processor, config, "What is in this image?", num_images=1)
reply = generate(model, processor, prompt, ["image.png"], max_tokens=1500, temperature=0.0)
print(reply.text)
This is a reasoning model, so give it a generous token budget. mlx-vlm decodes without the drafter. The drafter's own card, drafter/README.md, describes it and how to serve it with SGLang beside the bf16 target.
Everything in this repository is Apache License 2.0. The target model's license text is in LICENSE, and the draft model's, as its model card states it, is in drafter/LICENSE. This package adds no terms of its own. NOTICE lists each component, its exact source revision and its license.
model-00003-of-00003.safetensors 5.4 GBmodel-00002-of-00003.safetensors 5.4 GBmodel-00001-of-00003.safetensors 5.3 GBdrafter/model.safetensors 3.8 GB有文件?提交种子。
提交种子