/ Модель

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

Контекст
262 144 токена
Размер весов
13,9 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3_5 · dense
Базовая модель
Qwen3.8-27B
Библиотека
mlx
Опубликована
30 ноя 2026

Looped-Qwen3.8-27B-DioLLLE8-1M-MLX

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

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

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

Сжатая для MLX разговорная модель Qwen на 27 млрд параметров с рекуррентными вычислениями и контекстом до 1 млн токенов для диалогов, рассуждений и программирования на Apple Silicon.

Looped-Qwen3.8-27B-DioLLLE8-1M-MLX — разговорная языковая модель Tejas Phatak (tejadabheja), собранная на основе Qwen/Qwen3.8-27B и рекуррентной модели sliderforthewin/Looped-Qwen3.8-27B. Репозиторий объединяет рекуррентное увеличение глубины вычислений, скрытое контрастивное управление LoopCD, сжатие весов для MLX и спекулятивное декодирование. Заявлены режимы T=1–3, эффективная глубина до 96 слоёв и контекст до 1 000 000 токенов с 3-битным KV-кэшем; веса представлены в safetensors для Apple Silicon и MLX.

Модель предназначена для генерации текста в диалоге, многоэтапных рассуждений и программирования на компьютерах Mac с Apple Silicon. README сообщает о снижении требований к памяти, ускорении генерации за счёт MTP и ограничении скорости вычислениями плотной модели на 27 млрд параметров. Указанная лицензия — Apache-2.0. Заявленные характеристики и показатели производительности приведены в карточке автора; для длинных олимпиадных доказательств README рекомендует увеличивать лимит генерации.

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

  • диалоговая генерация текста на Mac с Apple Silicon
  • многоэтапные рассуждения с настраиваемой глубиной вычислений
  • помощь в написании и исправлении кода
  • генерация длинных ответов с контекстом до 1 млн токенов
  • ускоренная генерация текста с помощью спекулятивного декодирования

Ограничения

Плотная модель вычисляет все 27 млрд параметров для каждого токена, поэтому скорость ниже, чем у разреженных MoE-моделей. Для длинных олимпиадных доказательств может потребоваться лимит генерации от 4096 токенов.

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

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

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

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

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

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

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

Открыть на Hugging Face

Looped-Qwen3.8-27B-DioLLLE8-1M-MLX (13.43 GiB RAM, T=1/2/3 Recurrent Depth + LoopCD + 2.22× MTP Speculative + 1M E₈ KV Cache)

tejadabheja/Looped-Qwen3.8-27B-DioLLLE8-1M-MLX brings calibrated recurrent latent-depth reasoning (64 → 80 → 96 effective layers), LoopCD-Hidden contrastive latent guidance, 2.13×–2.22× lossless hybrid speculative decoding, and 1,000,000-token 3-bit Nested-E₈ KV caching into a 13.43 GiB Apple Silicon MLX footprint — shrinking a ≈ 54 GB BF16 dense model by 4.0× so it runs effortlessly on 24 GB and 32 GB Macs with 0.0 MB swap.

It combines three complementary breakthroughs into a single turnkey .safetensors + MLX Metal package:

  1. Recurrent Latent-Depth v3.1 Adapter + LoopCD-Hidden (sliderforthewin/Looped-Qwen3.8-27B): Integrates Jason Titus's trained v3.1/ckpt_200.safetensors (239.8 MiB BF16 gated_workspace recurrent loop + Rank-64 LoRA coda over layers 24..51) and hidden-state Contrastive Decoding (LoopCD-Hidden), letting you dial test-time latent compute dynamically from T=1 (64 layers) to T=2 (80 effective layers) or T=3 (96 effective layers) without increasing parameter RAM.
  2. Diophantine-Butterfly Hybrid D2 Compression + 1M 3-Bit Nested-E₈ KV Cache (DioLLLE8): Applies Golden-Ratio (φ = (1 + √5) / 2) irrational-angle orthogonal Butterfly64 rotations (UᵀU = I) paired with hardware-accelerated Apple M5 Neural-Accelerator mx.quantized_matmul (4-bit 21.2–22.2 dB SQNR on all Attention, GatedDeltaNet, Embeddings/LM-Head, and recurrent/coda layers 24..51; MSE-grid 3-bit on non-loop MLPs 0..23, 52..63), achieving 1.6855 Python 3.12 code PPL and 7.3993 WikiText-2 PPL in 12.97 GiB base weights + 4.00 GiB @ 1M context via DioLLLE8KVCache.
  3. 4-Bit Diophantine MTP Verifier + tqllm-Inspired SuffixCopyDrafter & --thinking-budget: Compresses Jason Titus's calibrated model-mtp head into a 227.9 MiB 4-bit Diophantine sidecar (95.9%–99.0% acceptance!) and pairs it with David Y. Tan's (tqllm) suffix-copy continuation drafting and zero-re-prefill --thinking-budget live-cache </think>\n\n closure — delivering 2.13×–2.22× lossless greedy speedup (16.70 tok/s @ T=1, 12.77 tok/s @ T=2 80L — 1.70× faster than unlooped non-spec T=1!, and 9.79 tok/s @ T=3 96L).

Companion Sparse-MoE Release: For maximum raw chat speed (51.3–53.4 tok/s in 13.27 GiB RAM), see sibling repository tejadabheja/Qwen3.6-35B-A3B-DioLLLE8-3bit-1M-MLX.


Upstream Open-Source Credits & AI-Primary Authorship Disclosure

Upstream Research & Open-Source Attribution:

  • Jason Titus (sliderforthewin/Looped-Qwen3.8-27B & jasontitus/loopedqwen, MIT License): Creator of the trained v3.1 recurrent gated_workspace latent-depth adapter (ckpt_200.safetensors), calibrated Multi-Token Prediction (model-mtp) weights, and LoopCD-Hidden inference runtime for Qwen/Qwen3.8-27B (Apache-2.0).
  • LoopCD Contrastive Latent Guidance: Credit to @beamivalice for identifying LoopCD synergy on looped Qwen models and to Apple's research team (Contrastive Decoding Unlocks Latent Reasoning in Looped Language Models, arXiv:2610.02185).
  • David Y. Tan (turbo-tan/tqllm, Apache-2.0 License): Creator of tqllm, inspiring our < 0.02 ms 3..5-gram SuffixCopyDrafter, zero-re-prefill live-cache --thinking-budget </think>\n\n closure, and O(1) deferred-commit hybrid cache rollback.
  • AI-Primary DioLLLE8 Compression & Metal Engineering: Mathematical formulation and MLX/Metal engineering performed autonomously by Gemini Carbon / Nano, Claude Fable, GPT Astra 6.0, and Google DeepMind Antigravity (preprint at tejadabheja/DioLLLE8-Preprint), with prompting, red-team direction, and stewardship by Tejas Phatak (tejadabheja).

Plain-English (Layman's) Guide: How Do Latent Looping, DioLLLE8 & MTP Work Together?

  1. Thinking Deeper Inside the Network Instead of Writing Endless Scratchpad Text (Looped-Qwen3.8-27B + LoopCD): Standard reasoning models "think" only by generating thousands of visible <think> words one token at a time — which can spiral for minutes on subtle code bugs or modular math. Latent looping feeds the middle 16 layers (layers 24..39) back into a learned recurrent workspace (T=2 or T=3 passes = 80 or 96 effective Transformer layers!) before emitting each token, while LoopCD-Hidden contrasts the deeper pass against the shallower pass (h_cd = (1 + ω) h_T − ω h_ref) to amplify the refined reasoning signal. On subtle algorithmic bugs (such as in-place Bellman–Ford relaxation), this cuts <think> spirals by 11.5×–18.5× (1,408 tokens → 76 tokens) and solves problems 5.2× faster in wall-clock time!
  2. Shrinking 54 GB into 13.4 GB Without Breaking Recurrent Passes (DioLLLE8 Hybrid D2): When a model loops through layers 24..51 two or three times per token, naive 3-bit quantization compounds rounding errors across passes (AND custom LUT kernels bottleneck dense 27B bandwidth at ≈ 4.3 tok/s). Our adversarial red-team audit solved both: we rotate weights with an irrational Golden-Ratio Diophantine Butterfly (U₆₄) to erase outlier spikes, keep all looped/coda layers (24..51), Attention, and GatedDeltaNet in 4-bit (21.2–22.2 dB SQNR, zero recurrent error compounding) while compressing non-looped outer MLPs (0..23, 52..63) to MSE-grid 3-bit on Apple M5's hardware mx.quantized_matmul units, and compress the 16 full-attention KV caches into 3-bit Nested-E₈ crystal slabs (1M context in ≈ 6.4 GiB KV).
  3. More Than Doubling Dense 27B Speed (2.13×–2.22× via 4-Bit MTP + tqllm Suffix-Copy): A dense 27B model running 80–96 effective layers is memory-bandwidth bound at 4.6–5.9 tok/s when generating 1 token per pass. By pairing the quantized 4-bit MTP head (95.9%–99.0% draft acceptance) with tqllm-style n-gram suffix copying, the target 27B model verifies 2–5 tokens in a single batched mx.quantized_matmul pass — jumping to 12.77 tok/s at T=2 (80L) (1.70× faster than unlooped T=1 without MTP!) with 100% identical greedy tokens.

Measured Speed, Perplexity & Intelligence Benchmarks (Apple M5, 32 GB RAM)

All benchmarks were executed on an idle MacBook Pro (Mac17,2, Base Apple M5 153.6 GB/s, 32 GB Unified Memory) via diollle8_mlx/benchmark_v2_mtp_and_looped.py (raw JSON in benchmark_v2_looped_intelligence_and_speed.json):

1. Memory Footprint, Load Time & Held-Out Perplexity

  • Total .safetensors Bundle Size: 13.430 GiB (12.973 GiB base shards + 0.234 GiB v3.1/ckpt_200.safetensors + 0.223 GiB model-mtp-diollle8.safetensors)
  • Resting Unified GPU RAM (All Components Loaded & Fused): 13.43 GiB (0.0 MB swap, cold load: 2.57 s)
  • Held-Out WikiText-2 Test Perplexity (8,192 tokens): 7.3993 (40.75 s)
  • Held-Out Python 3.12 Stdlib Code Perplexity (4,096 tokens): 1.6855 (21.28 s — outperforming even 35B MoE's 1.7000 Python PPL!)

2. Lossless Speculative Decoding Speedup Across Recurrent Depths (T=1, T=2, T=3)

Evaluated at temp = 0 on structured Python class refactoring (max_tokens = 480), verifying 100% exact token-for-token parity (r_mtp == r_nonspec and r_hybrid == r_nonspec) and valid ast.parse() syntax at every depth:

Recurrent Depth ModeEffective LayersNon-Spec (tok/s)4-Bit MTP (tok/s)Hybrid MTP + Suffix (tok/s)SpeedupMTP AcceptanceExact Token Parity
T=1 (Base Pass)64 L7.5113.7516.70 tok/s2.22×99.0%100% Exact
T=2 + LoopCD (ω=0.25, first)80 L5.9210.4512.77 tok/s2.16×95.9%100% Exact
T=3 + LoopCD (ω=0.15, prev)96 L4.598.199.79 tok/s2.13×95.9%100% Exact

3. Hard Reasoning, Modular Math & Algorithmic Bug-Fix Intelligence + <think> Token Efficiency

Evaluated on a paired 8-problem competition math & algorithmic coding suite (crt_smallest_gt_1000, bugfix_bellman_k_stops, math_mod_pairs, algo_max_subarray_one_del, math_nonhomog_recurrence, dp_weighted_palindrome, aime_lcm_triples, math_constrained_derangements) under strict token budgets (1,408 unassisted cap + thinking_budget = 512 tqllm live-cache closure + enable_thinking = False pure latent mode):

  • Suite-Wide Fixed-Budget Gain (cap = 1,408 tokens):
    • T=1 Base: 12.5% (1/8), mean <think> length 1,361.4 tokens (7/8 hit cap).
    • T=2 + LoopCD: 25.0% (2/8 — 2.0× solve rate), mean <think> length reduced to 1,247.2 tokens.
    • T=3 + LoopCD: 25.0% (2/8 — 2.0× solve rate), mean <think> length reduced further to 1,150.8 tokens (−15.5% across all 8 problems).
  • Adding tqllm Live-Cache --thinking-budget 512 (max_tokens = 896):
    • Gracefully closing </think>\n\n at 512 tokens doubled T=1's score (12.5% → 25.0%) while cutting total 8-problem wall-clock time by 1.82× (935.6 s → 513.0 s), and unlocked algo_max_subarray_one_del in 718 tokens at T=3 (vs. 837 tokens at T=1).
Representative Hard ProblemT=1 (64L Base)T=2 + LoopCD (80L)T=3 + LoopCD (96L)Latent-Depth Impact
bugfix_bellman_k_stops (subtle Bellman–Ford k-stops relaxation bug, <think> on)FAIL (1,408 <think> tok, 119.8 s)PASS (122 <think> tok, 24.6 s)PASS (76 <think> tok, 22.9 s)18.5× fewer <think> tokens & 5.23× faster wall-clock!
bugfix_bellman_k_stops (pure latent enable_thinking=False)PASS (347 tok, 25.3 s)PASS (141 tok, 11.1 s)PASS (141 tok, 13.8 s)2.46× fewer tokens & 2.28× faster wall-clock!
crt_smallest_gt_1000 (3-modulus Chinese Remainder Theorem)FAIL (1,035 <think> tok, wrong int)Cap (1,408 <think> tok)PASS (682 <think> tok, exact int)Fixes arithmetic error in −34.1% fewer <think> tokens!
math_mod_pairs (modular counting)FAIL (1,408 <think> tok)PASS (1,408 tok)Cap (1,408 tok)T=2 unlocks solution under fixed budget

Complete Setup & Usage Instructions

System Requirements

  • Hardware: Apple Silicon Mac (M1–M5) with 24 GB+ Unified Memory recommended (13.43 GiB resting GPU RAM; runs up to 256K context on 24 GB Macs and 1,000,000 tokens swap-free on 32 GB+ Macs).
  • OS & Python: macOS 14.0+, Python 3.11+ (3.12 recommended).

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/Looped-Qwen3.8-27B-DioLLLE8-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 Dependencies & 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/Looped-Qwen3.8-27B-DioLLLE8-1M-MLX --local-dir ./Looped-Qwen3.8-27B-DioLLLE8-1M-MLX
cd ./Looped-Qwen3.8-27B-DioLLLE8-1M-MLX

Step 2: Python API (T=1/2/3 Recurrent Depth + LoopCD + MTP Speculative + --thinking-budget)

import sys
from huggingface_hub import snapshot_download

model_dir = snapshot_download("tejadabheja/Looped-Qwen3.8-27B-DioLLLE8-1M-MLX")
sys.path.insert(0, model_dir)

from diollle8_mlx import load_looped_qwen38_diollle8, generate_looped_diollle8

# Loads 4-bit/3-bit Hybrid D2 base + BF16 v3.1 recurrent adapter + 4-bit MTP head in ≈ 2.6s (13.43 GiB RAM)
model, tokenizer = load_looped_qwen38_diollle8(
    model_dir,
    num_passes=2,          # Default T=2 (80 effective layers); override per-call with num_passes=1, 2, or 3
    enable_mtp=True,
    fuse_projections=True,
    yarn_mode="auto",
)

# Recommended LoopCD-Hidden settings (auto-selected if omitted):
#   T=1: loop_cd_omega=0.0
#   T=2: loop_cd_omega=0.25, loop_cd_ref="first"  (~12.8 tok/s with MTP + SuffixCopy!)
#   T=3: loop_cd_omega=0.15, loop_cd_ref="prev"   (~9.8 tok/s with MTP + SuffixCopy!)
res = generate_looped_diollle8(
    model,
    "Fix any bug in Bellman-Ford with at most k stops when relaxing dist[v] = min(dist[v], dist[u] + w) in-place.",
    tokenizer=tokenizer,
    num_passes=2,
    max_tokens=1024,
    speculative=True,
    enable_suffix_copy=True,
    enable_thinking=True,
    thinking_budget=512,   # Optional tqllm-style live-cache </think> closure!
    loop_cd_omega=0.25,
    loop_cd_ref="first",
)
print(res["text"])
print(f"Speed: {res['tok_per_s']} tok/s | MTP Accept: {res['mtp_acceptance_rate']:.1%}")

Step 3A: 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='Looped-Qwen3.8-27B-DioLLLE8-1M-MLX[1m]' \
ANTHROPIC_SMALL_FAST_MODEL=Looped-Qwen3.8-27B-DioLLLE8-1M-MLX \
ANTHROPIC_DEFAULT_HAIKU_MODEL=Looped-Qwen3.8-27B-DioLLLE8-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 3 minutes at the default T=3 on a base M5 (~19.5K tokens at ~106 tok/s prefill; decode ~4-5 tok/s exact). We measured later turns at a few seconds of prefill. For interactive agent use, prefer --num-passes 1 or 2, or the 35B-A3B sibling. 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="Looped-Qwen3.8-27B-DioLLLE8-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 2: main agent + auto-mode classifier), --kv-bits (default 3), --chunk-size, --speculative / --num-draft / --suffix-copy, --num-passes {1,2,3} (recurrent depth; default 3 from config.json; measured exact-path decode on a base M5: ~7.8 tok/s at --num-passes 1 vs ~4.5 tok/s at T=3), --loop-cd-omega / --loop-cd-ref. Note: the server's default looped decode is exact and prefix-cached. --speculative switches to the lossless MTP + SuffixCopy stream (faster decode, but no cross-request prefix reuse). 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 3B: Interactive 1M-Context Terminal Chat REPL

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

Step 4: CLI Smoke Test & Verification Suite

python -m diollle8_mlx.looped_qwen38_diollle8 --model-dir . --num-passes 2 --thinking-budget 512 \
  --prompt "Find the smallest integer N > 1000 with N ≡ 7 (mod 13), N ≡ 11 (mod 17), N ≡ 3 (mod 19)."

# Run automated 6-part fused parity, LoopCD, MTP+Suffix exactness, and 1M KV slab test suite:
python -m diollle8_mlx.test_looped_qwen38

Citation

Please cite the upstream Looped-Qwen3.8-27B, tqllm, LoopCD, and DioLLLE8 works when building on this checkpoint:

@misc{titus2026loopedqwen38,
  title        = {Looped-Qwen3.8-27B: Calibrated Latent-Depth Recurrence and LoopCD-Hidden for Qwen3.8-27B},
  author       = {Titus, Jason},
  year         = {2026},
  howpublished = {\url{https://huggingface.co/sliderforthewin/Looped-Qwen3.8-27B}}
}

@misc{tan2026tqllm,
  title        = {tqllm: Training-Free Speculative Decoding and Thinking-Budget Control for Qwen on Apple Silicon MLX},
  author       = {Tan, David Y.},
  year         = {2026},
  howpublished = {\url{https://github.com/turbo-tan/tqllm}}
}

@misc{diollle8_looped27b_2026,
  title        = {Looped-Qwen3.8-27B-DioLLLE8-1M-MLX: Diophantine-Butterfly Hybrid Quantization, 4-Bit MTP Speculative Decoding, and 1M Nested-{E8} KV Cache on Apple Silicon},
  author       = {Phatak, Tejas},
  note         = {AI-Primary Engineering by Gemini Carbon/Nano, Claude Fable, GPT Astra 6.0, and Google DeepMind Antigravity},
  year         = {2026},
  howpublished = {\url{https://huggingface.co/tejadabheja/Looped-Qwen3.8-27B-DioLLLE8-1M-MLX}}
}

Honest Limitations

  • Token Budget on Multi-Page Olympiad Proofs: While T=2/T=3 + LoopCD dramatically compresses <think> spirals on algorithmic bug-fixes (18.5× shorter) and modular number theory (−34% shorter), heavy Olympiad combinatorics (aime_lcm_triples) still write 2,000–4,000 <think> tokens before concluding; use max_tokens >= 4096 (or thinking_budget = 2048) on competition proofs rather than tight 512–1,400 caps.
  • Dense 27B vs. Sparse MoE Throughput: Because all 27B parameters (plus 16 × (T−1) recurrent layer passes) execute on every token, Looped-Qwen3.8-27B runs at 9.8–16.7 tok/s (even after our 2.13×–2.22× MTP+Suffix speedup), whereas sparse-MoE Qwen3.6-35B-A3B-DioLLLE8-3bit-1M-MLX activates 3.0B parameters/token and runs at 51.3–53.4 tok/s. Use 35B-A3B for high-speed interactive coding/agents and Looped-27B when dense representations + 80L–96L recurrent depth are desired.

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

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

GPU в ailist

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

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

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

Класс архитектуры
Qwen3_5ForConditionalGeneration
Ревизия весов
1576f6d

0 моделей