/ Модель

Характеристики

Контекст
262 144 токена
Размер весов
11,2 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3_5_moe · dense
Базовая модель
Qwen3.6-35B-A3B
Библиотека
mlx
Опубликована
2 дек 2026

Qwen3.6-35B-A3B-DioLLLE8-2.5bit-1M-MLX

Генерация текстаТекст → текст
991скачиваний за 30 дней0лайковвеса обновлены3 дек 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Квантованная до 2,576 бит на параметр версия диалоговой MoE-модели Qwen для генерации текста и программирования на Apple Silicon.

Qwen3.6-35B-A3B-DioLLLE8-2.5bit-1M-MLX — квантованный чекпойнт модели Qwen от tejadabheja на базе Qwen/Qwen3.6-35B-A3B. Это диалоговая модель с разреженной MoE-архитектурой: около 35,95 млрд параметров всего и 3 млрд активных на токен. Веса сжаты до 2,576 бит на параметр; репозиторий предназначен для запуска через MLX на компьютерах Apple Silicon с Metal.

Модель подходит для генерации текста в диалоге, рассуждений и помощи с программированием. В README заявлена поддержка контекста до 1 млн токенов, включая компактный KV-кэш, а также ускорение генерации и спекулятивное декодирование. Приведённые в карточке показатели скорости и качества получены автором на Apple M5 и не гарантируют такие же результаты на другом оборудовании или в других задачах.

Лицензия — Apache-2.0. Для запуска требуется Apple Silicon и совместимое программное обеспечение MLX; ультранизкая разрядность квантования может влиять на точность по сравнению с исходными весами. Модель унаследовала мультимодальные возможности базового Qwen, однако данный репозиторий и его примеры описывают текстовую генерацию, поэтому визуальные входы здесь не заявлены.

Сценарии применения

  • ведение диалога с локально запущенной моделью
  • генерация и объяснение кода
  • рефакторинг программного кода
  • решение задач на рассуждение
  • работа с длинными текстовыми запросами

Ограничения

Репозиторий рассчитан на Apple Silicon и MLX; заявленные скорость и качество измерены автором на конкретной конфигурации Apple M5. Квантование до 2,576 бит на параметр может снижать точность относительно исходной модели.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Qwen3.6-35B-A3B-DioLLLE8-2.5bit-1M-MLX (2.576 bpw, 10.22 GiB GPU RAM w/ MTP / 9.89 GiB Base, 48.0–49.6 tok/s, 3.14 GiB PolarQJL-BLUE 1M KV)

tejadabheja/Qwen3.6-35B-A3B-DioLLLE8-2.5bit-1M-MLX pushes Qwen/Qwen3.6-35B-A3B (35.95B total parameters, 3.0B active parameters/token, ~64.6 GB raw BF16 text backbone) into a 2.5764 bits/weight (6.215× compressed, 9.89 GiB base / 10.22 GiB w/ MTP) native Apple Silicon MLX + Custom Metal C++ checkpoint — making a frontier 36B-class reasoning & coding model run at 48.0–49.6 tok/s even on 16 GB MacBooks, and fitting the entire 35.95B model PLUS a live 1,000,000-token KV cache in just 13.03–13.36 GiB of Unified Memory (less RAM than a 3-bit model's weights alone!).

Highlights (v1 Release — Spectral-Light Mixed-MoE + RW-GPTQ-Gosset-v3 + PolarQJL-BLUE):

  • Fits on 16 GB Macs & Leaves 18+ GiB Free at 1,000,000 Context on 32 GB Macs: 10.388 GiB compressed backbone .safetensors (9.89 GiB resting GPU RAM without MTP, 10.220 GiB with mtp-diollle8.safetensors, 2.08 s cold load on Apple M5 SSD) — saving 7.95–8.28 GiB (−44%) vs. mlx-community/Qwen3.6-35B-A3B-4bit (18.17 GiB) and 3.05 GiB (−23%) vs. our 3-bit model (13.27 GiB).
  • OpenAI First Proof #6 Spectral-Light Mixed-Bit MoE (Top-48 3-Bit + 208 ε-Light 2-Bit Experts): Across all 40 MoE layers, we measured operator-norm spectral leverage scores on held-out activations and discovered extreme power-law concentration: the Top-48 (18.75%) experts capture 73.3% of all routed spectral energy (Top-64 = 80.8%, Top-96 = 90.2%). Keeping the 48 heavy-leverage experts per layer at 3-bit Gosset (3.25 bpw) and compressing the 208 ε-light tail experts to 2-bit Gosset (2.25 bpw) with Residual-Writer Selective GPTQ-Gosset-v3 preserves 8/8 (100.0%) GSM8K accuracy, 4/4 (100.0%) functional Python / JSON / refactoring, 6.3073 WikiText-2 PPL, and 1.8103 Python 3.12 PPL.
  • Zero-Divergence Single-8 KB SRAM LUT Mixed-Bit Metal Shaders (DioLLLE8MixedSwitchGLU): Custom Metal kernels execute mixed 3-bit/2-bit expert routing in a single launch with threadgroup-uniform conditional 8 KB SRAM LUT initialization (4 threadgroups/core = 100% Apple M5 occupancy, 1-iteration LUT init on cold 2-bit experts) and self-deduplicating grouped MTP speculative verification (47.96 tok/s mean, 49.64 tok/s peak).
  • 3.1409 GiB Unbiased PolarQJL-BLUE (2.594 bpp) 1M-Token KV Cache (100% Exact 32K Needle @ 29.53 tok/s): Fuses 2-bit Householder Polar-Unbiased Gosset KV quantization (Slope = 1.0000) with a 1-bit orthogonal-subspace PolarQJL residual sign sketch (2.75× lower variance than Gaussian QJL) via zero-FLOP Gauss–Markov Wiener-BLUE scale folding.
  • Looking for Maximum Perplexity Fidelity (5.9193 WikiText-2 PPL in 13.27 GiB RAM)? See sibling repo tejadabheja/Qwen3.6-35B-A3B-DioLLLE8-3bit-1M-MLX (v3), or recurrent latent-depth tejadabheja/Looped-Qwen3.8-27B-DioLLLE8-1M-MLX.

Head-to-Head Benchmark Summary (Apple M5 MacBook Pro, 32 GB Unified Memory)

Measured back-to-back on an idle MacBook Pro (Mac17,2, Base Apple M5 153.6 GB/s, 32 GB Unified Memory) via diollle8_mlx/benchmark_v3_dual_35b.py (raw JSON in benchmark_v3_spectral_25bit_polar.json):

MetricMLX-4bit (Official)DioLLLE8-3bit (v3)DioLLLE8-2.5bit (v1 — This Repo)Advantage vs. MLX-4bit
Effective Bits / Weight4.50 bpw3.332 bpw2.5764 bpw−1.92 bpw (6.22× vs. BF16)
Backbone .safetensors Disk19.001 GiB13.435 GiB10.388 GiB (3 shards)−8.61 GiB (−45.3%)
Resting Unified GPU RAM18.169 GiB13.266 GiB10.220 GiB (9.89 GiB no-MTP)−7.95 to −8.28 GiB (−45.6%)
Cold Load Time (M5 SSD)5.46 s2.85 s2.08 s2.63× faster cold boot
WikiText-2 Test PPL (16K @ 2K)5.8280 (38.25s)5.9193 (27.47s)6.3073 (26.27s)1.46× faster prefill
Python 3.12 Stdlib PPL (8K @ 2K)1.6275 (24.37s)1.6924 (12.02s)1.8103 (13.26s)1.84× faster prefill
GSM8K Math Spot-Eval (temp=0)—8 / 8 (100.0%)8 / 8 (100.0%)Zero accuracy drop
Executable Code / JSON / Refactor100%4 / 4 (100.0%)4 / 4 (100.0%)100% pass
Chat Decode (MTP K=2 + Suffix)54.4 tok/s50.6 – 52.3 tok/s47.96 – 49.64 tok/s (41.6 base)Near-50 tok/s in 10.2 GiB!
1M-Token PolarQJL-BLUE KV RAM19.07 GiB (FP16)3.7085 GiB3.1409 GiB (2.594 bpp)6.07× smaller 1M KV
32K Needle Retrieval (POLAR-GOSSET)—100% (28.34 tok/s)100% EXACT (29.53 tok/s)11.75 GiB total active RAM @ 32K
Total RAM @ 1,000,000 Context38.1 GiB (Swap/OOM)16.97 GiB13.03 – 13.36 GiB (0.0 MB swap)−24.7 GiB saved @ 1M!

Task-by-Task 2.5-bit Speed & Functional Verification (temp = 0, Base Apple M5)

TaskBase (tok/s)MTP K=2HybridGainCheck
binary_search (O(log n))41.9348.7647.841.16×exec() PASS
merge_intervals41.9448.3648.531.16×exec() PASS
strict_json_schema41.1844.9142.661.09×json PASS (72/72)
refactor_suffix (BillingClient)41.4448.1449.641.20×ast PASS

Public Agentic, Coding & Reasoning Benchmarks (Controlled Head-to-Head vs. MLX-4bit, DioLLLE8-3bit & Official BF16)

Evaluated back-to-back on the same Apple M5 MacBook Pro (32 GB Unified Memory) using identical prompts, identical strided sample indices, identical sampling (temp=0.0 non-thinking; temp=0.6, top_p=0.95 thinking), and official public graders (Gorilla BFCL v4 ast_checker & live stateful Python multi_turn_checker, sandboxed execution for HumanEval & LiveCodeBench v6, exact match for MMLU-Pro, GPQA Diamond, and AIME26). Raw JSON logs: benchmark_agentic_bfcl_v4_25bit.json, benchmark_pillars_234_25bit.json, benchmark_agentic_bfcl_v4_3bit.json, benchmark_pillars_234_3bit.json, benchmark_agentic_bfcl_v4_4bit_mlx.json, benchmark_pillars_234_4bit_mlx.json.

Benchmark / SplitDioLLLE8-2.5bit (10.22 GiB)DioLLLE8-3bit (13.27 GiB)MLX-4bit (18.17 GiB)Official BF16 (~65 GiB)
BFCL v4 — Non-Live AST Avg (100 Qs)83.00%92.00%91.00%—
↳ simple_python (25) / multiple (25)88.0% / 100.0%92.0% / 96.0%96.0% / 92.0%—
↳ parallel (25) / parallel_multiple (25)72.0% / 72.0%92.0% / 88.0%92.0% / 84.0%—
BFCL v4 — Non-Live Overall (incl. irrelevance)81.60%88.80%88.80%—
BFCL v4 — Live AST Avg (90 Qs)73.42%77.54%77.46%—
BFCL v4 — Live Overall (131 Qs)75.15%77.32%77.18%—
BFCL v4 — Multi-Turn Stateful Avg (32 eps)42.22%46.11%41.67%64.7–67.2% (v4 overall w/ thinking)
↳ multi_turn_base (12) / miss_func (10) / miss_param (10)66.7% / 30.0% / 30.0%58.3% / 30.0% / 50.0%75.0% / 30.0% / 20.0%—
HumanEval (164/164 FULL)90.24% (148/164)93.90% (154/164)95.73% (157/164)90.2% (pub. omlx.ai MLX-4bit)
MMLU-Pro (30 Qs, uncapped)80.00% (24/30)76.67% (23/30)80.00% (24/30)85.2% (HF Card)
LiveCodeBench v6 (15 Qs, 16K cap)*40.00% (6/15)26.67% (4/15)26.67% (4/15)80.4% (HF Card, 32K–64K)
GPQA Diamond (20 Qs, 16K cap)*50.00% (10/20)50.00% (10/20)65.00% (13/20)86.0% (HF Card, 32K–64K)
AIME26 (15 Qs, 16K cap)*6.67% (1/15)6.67% (1/15)13.33% (2/15)92.7% (HF Card, 32K–64K)

Honest Tradeoff Summary: At 10.22 GiB (−44% RAM vs. MLX-4bit), DioLLLE8-2.5bit ties MLX-4bit on MMLU-Pro (80.0%), edges out MLX-4bit on BFCL Multi-Turn Stateful (42.22% vs. 41.67%) and LiveCodeBench v6 (40.0% vs. 26.7%), and scores 90.24% on full HumanEval (148/164). Its main quantization drop is on parallel multi-call tools (72% vs. 92%) and GPQA Diamond (50% vs. 65%); if you have 16–32 GB RAM and want full parallel tool fidelity, DioLLLE8-3bit (13.27 GiB) recovers the entire parallel gap (92.0%) and beats MLX-4bit across every composite BFCL v4 agentic metric.

* Methodology note on LiveCodeBench v6, GPQA Diamond, and AIME26: All three local quants (including MLX-4bit) averaged 306–413 s/q and hit our max_tokens=16384 ceiling inside <think>, whereas official Qwen3.6 BF16 evals use 32K–64K tokens + presence_penalty=1.5.


Mathematical Architecture of DioLLLE8-2.5bit-1M-MLX

1. OpenAI First Proof #6 Spectral-Light Mixed-Bit MoE Partitioning

Motivated by spectral graph / operator-norm subset sparsification (OpenAI First Proof Problem 6 ε-light subsets), each MoE layer's 256 experts are ranked by their empirical routed spectral leverage on strictly disjoint calibration data (verified_16gram_eval_overlap == 0): $$s_e = \mathbb{E}_{x}!\left[p_e(x)^2 , |W_e x|_2^2\right]$$ Across all 40 layers of Qwen3.6-35B-A3B, the Top-48 (18.75%) experts carry 73.3% of all routed spectral energy, while the remaining 208 (81.25%) tail experts form an ε-light complement whose aggregate quantization perturbation is bounded in operator norm. Assigning:

  • Always-active backbone (self_attn, linear_attn, shared_expert, embed_tokens, lm_head): 4-bit Gosset (4.25 bpw, 29.11 dB mean SQNR),
  • Top-48 Heavy-Leverage Experts / Layer: 3-bit Gosset (3.25 bpw, 20.1–25.8 dB SQNR),
  • 208 ε-Light Tail Experts / Layer: 2-bit Gosset (2.25 bpw),
  • 240 Residual-Stream Writers (o_proj, out_proj, down_proj): Pivoted-Cholesky RW-GPTQ-Gosset-v3, compresses all 35.95B parameters into 2.5764 bpw (10.388 GiB) without a single outlier collapse.

2. Unbiased PolarQJL-BLUE (2.594 bpp) 1M-Token KV Cache (polar_qjl_kv_cache.py)

For ultra-long context (kv_bits=2 -> polar_qjl_2bit), each Key/Value head (D = 256) applies:

  1. Causal 64-token NoPE running-mean centering (+1.25 dB Key SQNR, rollback-safe across MTP draft verification),
  2. Kronecker Diophantine-Hadamard preconditioning U₂₅₆ = D_pre · (H₄ ⊗ U₆₄),
  3. 2-bit Gosset lattice quantization with exact Householder Polar-Unbiased scale γ_unb = ‖y‖₂² / ⟨y, z⟩ (Slope = 1.0000), and
  4. 1-bit Orthogonal-Subspace PolarQJL residual sign sketch (qjl_dim = 128) fused via Gauss–Markov Wiener-BLUE optimal weight λₜ* = sec²θₜ / (sec²θₜ + σ_B²) folded directly into k_scale and k_rscale at write time (0 extra decode ops, 3.1409 GiB for 1,000,000 tokens).

Complete Setup & Usage Instructions

System Requirements

  • Hardware: Apple Silicon Mac (M1, M2, M3, M4, or M5)
    • 16 GB Unified Memory: Runs comfortably (9.89 GiB with load_mtp=False, 10.22 GiB with load_mtp=True, up to 32K–64K context swap-free!).
    • 24 GB Unified Memory: Smoothly runs up to 1,000,000 tokens (13.03–13.36 GiB total active GPU RAM!).
    • 32 GB+ Unified Memory: Full 1,000,000-token context with 18+ GiB of Unified Memory still free (0.0 MB swap).

Quick Start: One-Command Install & Launch (macOS, Apple Silicon)

# Without cloning first: sets up uv + .venv, downloads the model, starts the OpenAI/Anthropic server on :8080
curl -fsSL https://huggingface.co/tejadabheja/Qwen3.6-35B-A3B-DioLLLE8-2.5bit-1M-MLX/resolve/main/install_and_serve.sh | bash

# From inside a downloaded copy of this repo:
./install_and_serve.sh                 # install deps on first run, then serve on http://127.0.0.1:8080
./install_and_serve.sh --claude        # start the server in the background and open Claude Code on it
./install_and_serve.sh --chat          # interactive terminal chat
./install_and_serve.sh --port 9000 --enable-thinking --thinking-budget 2048   # other flags go to serve_cli
./install_and_serve.sh --install-only  # only create .venv and install dependencies

The script checks for macOS on arm64 and installs uv if it is missing. It creates .venv (Python 3.12) and installs mlx, mlx-lm, transformers, safetensors and huggingface_hub, and downloads the weights only when they are not already present. If a DioLLLE8 server is already running on the port, it re-uses it. In --claude mode it waits for /health, launches Claude Code with the right environment variables, and stops the server when Claude Code exits.

Step 1: Install Environment & Download Checkpoint

uv venv .venv --python 3.12
source .venv/bin/activate
uv pip install "mlx>=0.30.0" "mlx-lm>=0.30.0" "transformers>=4.51.0" "safetensors>=0.4.5" "huggingface_hub>=0.28.0" numpy

hf download tejadabheja/Qwen3.6-35B-A3B-DioLLLE8-2.5bit-1M-MLX --local-dir ./Qwen3.6-35B-A3B-DioLLLE8-2.5bit-1M-MLX
cd ./Qwen3.6-35B-A3B-DioLLLE8-2.5bit-1M-MLX

Step 2A: Local OpenAI + Anthropic API Server (Claude Code, Codex, Cursor, OpenWebUI, …)

python -m diollle8_mlx.serve_cli --port 8080            # HTTP server (model type and KV bits are auto-detected)
python -m diollle8_mlx.serve_cli --port 8080 --enable-thinking --thinking-budget 2048   # <think> on by default

The server prints the exact client settings at startup. One process serves all of these API shapes from the same model and the same prefix cache:

APIEndpointsSupported
OpenAI Chat CompletionsPOST /v1/chat/completionsstreaming (+stream_options.include_usage), tools / tool_choice (auto/none/required/named), assistant tool_calls + tool results, reasoning_effort → <think> with reasoning_content deltas, response_format (json_object/json_schema, best-effort via prompt), stop, max_completion_tokens, usage.prompt_tokens_details.cached_tokens
OpenAI ResponsesPOST /v1/responses, GET/DELETE /v1/responses/{id}input string or items (message, function_call, function_call_output, reasoning), instructions, function tools, previous_response_id, reasoning.effort, max_output_tokens, full SSE event sequence (response.created … response.completed)
OpenAI Completions / ModelsPOST /v1/completions, GET /v1/models[/{id}]streaming, echo, token-id prompts
Anthropic MessagesPOST /v1/messages, POST /v1/messages/count_tokenssystem (string/blocks, incl. interleaved system messages), tools → tool_use / tool_result (incl. is_error), tool_choice (auto/any/tool/none), extended thinking (thinking.type enabled/adaptive/disabled, budget_tokens, display: omitted) → thinking blocks, stop_sequences → stop_reason: stop_sequence, max_tokens, full SSE event sequence (message_start, content_block_*, ping, message_delta, message_stop), Anthropic-style errors
GeminiPOST /v1beta/models/{m}:generateContent / :streamGenerateContent / :countTokenstext, functionDeclarations → functionCall, thinkingConfig

Tool calls use the model's native Qwen3.6 XML tool format and are parsed with the open-source mlx-lm qwen3_coder tool parser (derived from Qwen's qwen3coder_tool_parser.py), with a bundled fallback copy. Images, PDFs and audio are replaced with a text placeholder because this server is text-only.

Claude Code

ANTHROPIC_BASE_URL=http://127.0.0.1:8080 \
ANTHROPIC_AUTH_TOKEN=local \
ANTHROPIC_MODEL='Qwen3.6-35B-A3B-DioLLLE8-2.5bit-1M-MLX[1m]' \
ANTHROPIC_SMALL_FAST_MODEL=Qwen3.6-35B-A3B-DioLLLE8-2.5bit-1M-MLX \
ANTHROPIC_DEFAULT_HAIKU_MODEL=Qwen3.6-35B-A3B-DioLLLE8-2.5bit-1M-MLX \
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 \
CLAUDE_CODE_AUTO_MODE_SERVER=0 \
API_TIMEOUT_MS=1800000 \
claude
  • The [1m] suffix tells Claude Code the model has a 1M-token window. Without it, Claude Code assumes 200K and auto-compacts. You can also set CLAUDE_CODE_MAX_CONTEXT_TOKENS=1000000.
  • Any model name works: the server serves its one loaded model whatever name you send.
  • Auto mode (Shift+Tab, or --permission-mode auto): Claude Code normally asks the Anthropic API to run its safety classifier server-side. A local server cannot provide Anthropic's hosted classifier, so without extra settings Claude Code reports that 127.0.0.1:8080 "doesn't pass it through" and falls back to asking you. CLAUDE_CODE_AUTO_MODE_SERVER=0 is the documented setting that makes Claude Code send its own classifier requests instead. They go to this server like any other request, so the local model acts as the safety classifier. That is weaker than Anthropic's hosted review, so keep that in mind for risky work, or use Manual / acceptEdits mode. The server keeps the classifier's long prompt in its own prefix-cache slot. The first classifier call prefills about 30K tokens; later calls reuse the cache. install_and_serve.sh --claude sets this variable for you.
  • Claude Code sends thinking: {type: "adaptive"} by default. That follows the server's --enable-thinking setting (off by default, which is faster). Override it with --adaptive-thinking / --no-adaptive-thinking.
  • Claude Code's first request is a ~20K-token system prompt plus tools, so the first turn takes about 35 s on a base M5 (~19.5K tokens at ~560 tok/s prefill). We measured later turns at 0.1-1 s of prefill. After that, prefix caching re-uses the conversation: later turns only prefill the new tokens.
  • If you set --api-key KEY, use ANTHROPIC_AUTH_TOKEN=KEY.

OpenAI-compatible clients (OpenAI SDK, Codex CLI, Cursor, Continue, Cline, OpenWebUI, LiteLLM): base URL http://127.0.0.1:8080/v1, any API key.

from openai import OpenAI
client = OpenAI(base_url="http://127.0.0.1:8080/v1", api_key="local")
r = client.chat.completions.create(model="Qwen3.6-35B-A3B-DioLLLE8-2.5bit-1M-MLX", messages=[{"role": "user", "content": "Hi"}],
                                   tools=[{"type": "function", "function": {"name": "get_weather", "parameters": {
                                       "type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}}])
print(r.choices[0].message.tool_calls)

Useful flags: --host / --port, --api-key, --served-model-name, --max-tokens (default when the client sends none), --temp + --force-temp, --enable-thinking / --adaptive-thinking / --thinking-budget, --cache-slots (prefix-cache sessions kept warm; default 3: main agent, auto-mode classifier and side calls), --kv-bits (default 2 = PolarQJL-BLUE 1M KV, auto-selected for this model), --chunk-size, --speculative / --num-draft / --suffix-copy. Set DIOLLLE8_DUMP_REQUESTS=/tmp/d8req to save every incoming request body for debugging.

How it works: HTTP requests are handled on many threads, but all MLX/GPU work runs on one dedicated worker thread, so /health, /v1/models and count_tokens answer even during a long generation. Requests queue in order, a client disconnect cancels its generation, and SSE keep-alive pings are sent during long prefills.

[!NOTE] LM Studio: not supported. DioLLLE8 weights use custom E8-lattice / rotated-domain quantization that needs the bundled Metal kernels. LM Studio's MLX engine only loads stock mlx-lm affine-quantized models and does not run custom model code (trust_remote_code=False). Use serve_cli above instead: it exposes the same OpenAI-compatible API that LM Studio's server does.

Step 2B: Interactive 1M-Context Terminal Chat REPL

python -m diollle8_mlx.serve_cli --chat            # /think toggles <think>, /stats, /reset, /exit

Step 2C: Python API

import sys
from huggingface_hub import snapshot_download

model_dir = snapshot_download("tejadabheja/Qwen3.6-35B-A3B-DioLLLE8-2.5bit-1M-MLX")
sys.path.insert(0, model_dir)

from diollle8_mlx import load_diollle8_qwen35_model, generate_diollle8

# Loads in ~2.08s on Apple M5 (10.22 GiB RAM with MTP, or 9.89 GiB with load_mtp=False)
model, tokenizer = load_diollle8_qwen35_model(model_dir, enable_1m_yarn="auto", load_mtp=True)

messages = [{"role": "user", "content": "Write a Python function merge_intervals(intervals) and test it."}]
prompt = tokenizer.apply_chat_template(
    messages, tokenize=False, add_generation_prompt=True, enable_thinking=False
)

res = generate_diollle8(
    model,
    prompt,
    tokenizer=tokenizer,
    max_tokens=320,
    temp=0.0,
    kv_bits=2,  # Uses PolarQJL-BLUE 2.59 bpp KV cache (3.14 GiB @ 1M tokens!)
    speculative="auto",
    num_draft=2,
    suffix_copy=True,
)
print(res["text"])
print(f"Decode: {res['decode_tps']} tok/s | Accept: {res.get('acceptance_rate', 0):.1%}")

Authorship, Credits & Citation

Co-developed autonomously by Gemini Carbon / Nano, Claude Fable, GPT Astra 6.0, and Google DeepMind Antigravity multi-agent math & systems swarm, with upstream speculative & thinking-budget inspiration from David Y. Tan (turbo-tan/tqllm, Apache-2.0), Jason Titus (sliderforthewin/Looped-Qwen3.8-27B, MIT), and the Qwen Team (Qwen/Qwen3.6-35B-A3B), stewarded by Tejas Phatak (tejadabheja).

@misc{diollle8_25bit_2026,
  title        = {Spectral-Light Mixed-Bit {Gosset} {MoE} and {PolarQJL-BLUE} 1M-Context Compression of {Qwen3.6-35B-A3B} on Apple Silicon},
  author       = {Phatak, Tejas},
  note         = {AI-Primary Autonomous Research \& Engineering by Google DeepMind Antigravity, Gemini Carbon/Nano, Claude Fable, and GPT Astra 6.0},
  year         = {2026},
  howpublished = {\url{https://huggingface.co/tejadabheja/Qwen3.6-35B-A3B-DioLLLE8-2.5bit-1M-MLX}}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · mlx

Нельзя запустить

MLX-модели работают только на Apple Silicon, на GPU NVIDIA они не запускаются.

Класс архитектуры
Qwen3_5MoeForConditionalGeneration
Ревизия весов
7aaa425

0 моделей