MLX
vllm
apple-silicon
cuda
looped-transformer
recurrent-depth
speculative-decoding
dflash
Mixture of Experts
qwen3.8
qwen4_exp
coding
math
Run this model with HF Jobs
Run sliderforthewin/Looped-Qwen3.8-Flash-Next on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/sliderforthewin/Looped-Qwen3.8-Flash-Next. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/sliderforthewin/Looped-Qwen3.8-Flash-Next on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use sliderforthewin/Looped-Qwen3.8-Flash-Next with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use sliderforthewin/Looped-Qwen3.8-Flash-Next with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download sliderforthewin/Looped-Qwen3.8-Flash-Next --local-dir Looped-Qwen3.8-Flash-Next
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Release Looped Qwen3.8-Flash-Next (Merged v3.1 + SFT-v2.1 + pre-folded MLX sidecars)
Browse filesFiles changed (18)
- LICENSEAdded+21
- README.mdAdded+142
- SHA256SUMSAdded+13
- ckpt_final.jsonAdded+34
- ckpt_final.safetensorsAdded+3
- export_mlx_serve_loop.pyAdded+162
- mlx/merged_v31_t2/loop_adapter_mlx.jsonAdded+40
- mlx/merged_v31_t2/loop_adapter_mlx.safetensorsAdded+3
- mlx/merged_v31_t3/loop_adapter_mlx.jsonAdded+40
- mlx/merged_v31_t3/loop_adapter_mlx.safetensorsAdded+3
- mlx/sft_v21_t3/loop_adapter_mlx.jsonAdded+28
- mlx/sft_v21_t3/loop_adapter_mlx.safetensorsAdded+3
- results/final_paired_scorecards_2026-12-01.jsonAdded+373
- results/merge_v31_metrics.jsonlAdded+25
- sft_v21_direct/ckpt_0024.jsonAdded+47
- sft_v21_direct/ckpt_0024.safetensorsAdded+3
- v1/ckpt_merged_v1.jsonAdded+56
- v1/ckpt_merged_v1.safetensorsAdded+3
123456789101112131415161718192021MIT License
Copyright (c) 2026 Jason Titus
Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142---license: mitbase_model: - Qwen/Qwen3.8-Flash-Next - Qwen/Qwen3.8-Flash-Next-FP8tags: - mlx - vllm - apple-silicon - cuda - looped-transformer - recurrent-depth - speculative-decoding - dflash - moe - qwen3.8 - qwen4_exp - coding - mathlibrary_name: mlx---
# Looped Qwen3.8-Flash-Next (`Merged v3.1` + `SFT-v2.1` + Pre-Folded `MLX` Sidecars)
**Recurrent latent-depth adapters (`132–268 MB`) for frozen `Qwen/Qwen3.8-Flash-Next` (`180B` total / `~6B` active hybrid GDN+QSA MoE + `51.2B` 3-gram PLE, `model_type: qwen4_exp`) — combining [`@superalesha`](https://huggingface.co/alesha-pro)'s GSPO RLVR `<think>` recurrence scaffold with readout-protected `Direct` continual merging, dual-format `vLLM` / `Strata` / PyTorch compatibility, and pre-folded BF16 Apple Silicon (`MLX` / `mlx-serve`) sidecar bundles.**
- **Code, Kernels, `vLLM` Plugin, & `MLX` Exporter:** [`jasontitus/loopedqwen-next`](https://github.com/jasontitus/loopedqwen-next) (MIT)- **Built Upon & Compatible With:** [`alesha-pro/Looped-Qwen3.8-Flash-Next`](https://huggingface.co/alesha-pro/Looped-Qwen3.8-Flash-Next) & [`alesha-pro/Strata`](https://github.com/alesha-pro/Strata) (MIT)
---
## Highlights (`336`-Item Paired Greedy Evaluation vs. `Stock T=1` & `@superalesha v3`)
Looping only the middle 16 layers (`L16..31`) **twice** (`T = 2`, or `T = 3` on `Direct` code) while keeping Prelude `L0..15` (including the `51.2B` `L1` PLE table) and Coda `L32..47` single-pass delivers massive `<think>` accuracy gains in a third fewer tokens **without** sacrificing non-thinking (`Direct`) code generation:
- **`AIME 2025` (`n = 30`, `<think> @ 24k`):** `63.33%` (`Stock T=1`) $\rightarrow$ `80.00%` (`@superalesha v3`) $\rightarrow$ **`86.67%` (`26/30`, `Merged v3.1`, `+23.33 pp` vs. `Stock T=1`, `p = 0.016`; `+6.67 pp` over `v3`)** with **`-31.5%` fewer tokens** (`9,438` vs. `13,771`).- **`GPQA-Diamond` (`n = 50`, `<think> @ 24k`):** `80.00%` (`Stock T=1`) $\rightarrow$ `90.00%` (`@superalesha v3`) $\rightarrow$ **`92.00%` (`46/50`, `Merged v3.1`, `+12.00 pp` vs. `Stock T=1`, `p = 0.031`; `+2.00 pp` over `v3`)** with **`-36.0%` fewer tokens** (`5,798` vs. `9,057`).- **`LiveCodeBench v6 Gate-2` (`n = 40`, `<think> @ 24k`):** `57.50%` (`Stock T=1`) $\rightarrow$ **`80.00%` (`32/40`, `Merged v3.1`, `+22.50 pp` vs. `Stock T=1`, `p = 0.012`)** with **`-38.3%` fewer tokens** (`9,212` vs. `14,927`).- **Fixes Non-Thinking (`Direct`) Regressions:** - **`HumanEval+ Direct` (`n = 164`, `direct @ 2k`):** Recovers `@superalesha v3` from `91.46%` (`150/164`) $\rightarrow$ **`93.90%` (`154/164`, `+4` wins / `0` losses, `+2.44 pp`)**, verified identically on both `vLLM 0.34.0` Cutlass FP8 (`470.6 tok/s`) and PyTorch FP8. - **`LCB v6 Medium Direct52` (`n = 52`, `direct @ 4k`):** `Merged v3.1` (`T=3`) recovers `51.92%` $\rightarrow$ **`55.77%` (`29/52`, `0.00 pp` vs. `Stock T=1` in `-67.4%` fewer tokens)**, while our included **`sft_v21_direct/ckpt_0024.safetensors`** specialist reaches **`61.54%` (`32/52`, `+5.77 pp` over `Stock T=1`)**.- **`556.6 tok/s` Batched `vLLM 0.34.0` Throughput on `1× NVIDIA H200`** (`Qwen/Qwen3.8-Flash-Next-FP8` with `51.2B` PLE in pinned host RAM + CUDA Graphs) and **`~132 MB` Pre-Folded BF16 Sidecars for Apple Silicon (`MLX` / `mlx-serve`)**.
---
## Complete 4-Way Paired Scorecard (`temperature = 0.0` Greedy)
| Benchmark Suite | `Stock T=1` | `SFT-v2.1` (`T=3` Direct Specialist) | `@superalesha v3` (`T=2`) | **`Merged v3.1` (`ckpt_final.safetensors`)** | `Merged v3.1` Paired Flips & Token $\Delta$ ||---|---:|---:|---:|---:|---|| **`AIME 2025`** (`n=30`, `xhigh @ 24,576`) | `63.33%` (`19/30`) | — | `80.00%` (`24/30`) | **`86.67%` (`26/30`, `T=2`)** | **`+7/-0` vs `T=1` (`p=0.016`), `+3/-1` vs `v3`; `-31.5%` tok (`9,438`)** || **`GPQA-Diamond`** (`n=50`, `xhigh @ 24,576`) | `80.00%` (`40/50`) | `86.67%`* (`26/30`) | `90.00%` (`45/50`) | **`92.00%` (`46/50`, `T=2`)** | **`+6/-0` vs `T=1` (`p=0.031`), `+1/-0` vs `v3`; `-36.0%` tok (`5,798`)** || **`LCB v6 Gate-2`** (`n=40`, `xhigh @ 24,576`) | `57.50%` (`23/40`) | — | `80.0`–`82.5%` (`32`–`33`) | **`80.00%` (`32/40`, `T=2`)** | **`+10/-1` vs `T=1` (`p=0.012`), `p=1.0` vs `v3`; `-38.3%` tok (`9,212`)** || **`HumanEval+ Direct`** (`n=164`, `direct @ 2,048`) | **`95.12%`** (`156/164`) | — | `91.46%` (`150/164`) | **`93.90%` (`154/164`, `T=2,3`)** | **`+4/-0` vs `v3` (`+2.44 pp`), `p=0.688` vs `T=1`; `223.7` tok** || **`LCB Medium Direct52`** (`n=52`, `direct @ 4,096`) | `55.77%` (`29/52`) | **`61.54%` (`32/52`)** | `51.92%` (`27/52`) | **`55.77%` (`29/52`, `T=3`)** / `53.85%` (`T=2`) | **`+3.85 pp` vs `v3` (`100%` drop erased); `-67.4%` tok (`531`)** || **Aggregate `<think>` Gate-2 (`120` items)** | `68.33%` (`82/120`) | — | `84.2`–`85.0%` (`101`–`102`) | **`86.67%` (`104/120`, `T=2`)** | **`+23/-1` vs `T=1` (`+18.33 pp`), `+2`–`3` items over `v3`** || **Aggregate All `336` Items** | `79.46%` (`267/336`) | — | `82.7`–`83.0%` (`278`–`279`) | **`85.12%` (`T=2`) / `85.42%` (`T=3/2`)** | **`+5.65` to `+5.95 pp` over `T=1`, `+2.08` to `+2.38 pp` over `v3`** |
*\*`SFT-v2.1` GPQA guard was evaluated on the 30-item `xhigh @ 20,480` subset (`Stock T=1 = 27/30 = 90.0%`).*
---
## How `Merged v3.1` Was Built (Option 2 Frozen-Scaffold Continual Merge)
Naive linear weight averaging of two independently trained looped adapters fails because low-rank `WorkspaceEntry` / `CrossPassMixer` bases live in arbitrary rotated coordinate systems and use different stream-RMS conventions (`mul_ref_rms` + 16 `core_exit` mixers vs. `rms_match` + 4 `layer_tap` mixers).
Instead, **`Merged v3.1`** (`scripts/run_option2_continual_merge.py` in [`jasontitus/loopedqwen-next`](https://github.com/jasontitus/loopedqwen-next)) performs a **24-step Frozen-Scaffold Continual Merge** directly on top of [`alesha-pro/Looped-Qwen3.8-Flash-Next`](https://huggingface.co/alesha-pro/Looped-Qwen3.8-Flash-Next):1. **Bit-Exact Frozen Recurrence Scaffold (`max_diff == 0.0`):** Freezes `workspace_entry.*`, all 16 `cross_pass_mixers.*`, and `lora_pass_delta_raw` (preserving 100% of `@superalesha`'s 1,200-step SFT + 200-step GSPO RLVR latent-state geometry as well as all 9 `dflash_bridges.*` speculative-decoding tensors).2. **Readout-Protected LoRA Merge + Online `<think>` Teacher KL:** Adapts only the Core `L16..31` and Coda `L32..39` base LoRAs + `mlp.gate` router LoRAs (keeping the final lexical readout macro-block **`L40..47` 100% frozen** beneath `lm_head`) on verified `Direct` code supervision (`sqrt` per-doc CE) interleaved 50/50 with online teacher-KL retention (`lam_kl = 1.0`) against unmodified `@superalesha v3` on `<think>` traces (`think_kl = 0.001425` nats/tok at `T=2`, `stop_vs_alesha == 0.000000`).
---
## Repository Contents & Which File to Use
| Path | Size | Format | Recommended Use ||---|---:|---|---|| **`ckpt_final.safetensors`** + `ckpt_final.json` | `268 MB` | `version: 3` (`alesha_v3` schema, `dflash_bridges.*` preserved) | **Default All-Purpose (`Merged v3.1`)** — drop-in for `vLLM 0.34.0`, `Strata`, and `jasontitus/loopedqwen-next` (`T=2` recommended for `<think>`, `T=2` or `T=3` for `Direct`). || **`mlx/merged_v31_t2/`** (`loop_adapter_mlx.safetensors` + `.json`) | `131.8 MB` | Pre-folded BF16 `MLX` / `mlx-serve` sidecar (`T=2`) | **Apple Silicon Mac Default (`Merged v3.1`, `T=2`)** — all pass/horizon gates, RMSNorm offsets, and `(A^T, B_eff^T)` LoRAs pre-folded in BF16. || **`mlx/merged_v31_t3/`** (`loop_adapter_mlx.safetensors` + `.json`) | `157.1 MB` | Pre-folded BF16 `MLX` / `mlx-serve` sidecar (`T=3`) | **Apple Silicon Mac 3-Pass (`Merged v3.1`, `T=3`)** — pre-folded BF16 sidecar for 3 core passes. || **`sft_v21_direct/ckpt_0024.safetensors`** + `.json` | `127 MB` | `looped-qwen4-exp-v1` (`coda=8`, `gate_lora=8`) | **Hard Non-Thinking (`Direct`) Competitive-Coding Specialist (`T=3`)** — `61.54%` (`32/52`) on `LCB v6 Medium Direct52`. || **`mlx/sft_v21_t3/`** (`loop_adapter_mlx.safetensors` + `.json`) | `83.0 MB` | Pre-folded BF16 `MLX` / `mlx-serve` sidecar (`T=3`) | **Apple Silicon Mac `Direct`-Code Specialist (`SFT-v2.1`, `T=3`)**. || **`v1/ckpt_merged_v1.safetensors`** + `.json` | `264 MB` | `looped-qwen4-exp-v1` | `Merged v3.1` in native `looped-qwen4-exp-v1` key layout. || `export_mlx_serve_loop.py` | `12 KB` | Python CLI | Re-export any `v1` or `v3` checkpoint to a pre-folded BF16 `MLX` sidecar for any target `T`. || `results/final_paired_scorecards_2026-12-01.json` | `18 KB` | JSON | Full paired benchmark telemetry & validation trajectories. |
---
## Quickstart
### 1. Serve with `vLLM 0.34.0+` (`1× H200` @ `556 tok/s` or `2× GPU` Tensor Parallel)
Works out of the box with **either** [`jasontitus/loopedqwen-next`](https://github.com/jasontitus/loopedqwen-next) (`vllm_looped_qwen4_exp`) **or** [`alesha-pro/Strata`](https://github.com/alesha-pro/Strata) (`vllm_looped_qwen38`):
```bashpip install "git+https://github.com/jasontitus/loopedqwen-next.git"
# Download ckpt_final.safetensors (+ ckpt_final.json) or pass HF repo:file directlyVLLM_LOOPED_CKPT="sliderforthewin/Looped-Qwen3.8-Flash-Next:ckpt_final.safetensors" \VLLM_LOOPED_NUM_PASSES=2 \VLLM_LOOPED_CD_OMEGA=0.0 \vllm serve Qwen/Qwen3.8-Flash-Next-FP8 \ --hf-overrides '{"architectures": ["LoopedQwen4ExpForCausalLM"]}' \ --engram-config '{"cpu_offload": true}' \ --max-model-len 26624```
### 2. Apple Silicon (`MLX` / `mlx-serve`) Pre-Folded BF16 Sidecars
Download `mlx/merged_v31_t2/` directly (zero PyTorch required on Mac), or re-export for any pass count `T`:
```bashpython export_mlx_serve_loop.py \ --ckpt sliderforthewin/Looped-Qwen3.8-Flash-Next:ckpt_final.safetensors \ --out-dir ./mlx_merged_v31_t2 \ --num-passes 2```
Because Prelude `L0..15` (including the `51.2B` `L1` 3-gram PLE table) and Coda `L32..47` run **once** per token, `T=2` only loops `L16..31` one extra time (`~42 KB/token` extra hybrid cache: 4 QSA KV layers + 12 constant-size GDN states). See [`jasontitus/loopedqwen-next`](https://github.com/jasontitus/loopedqwen-next#2-export-pre-folded-bf16-sidecar-for-mac-mlx--mlx-serve) for the 40-line `MLX` integration recipe.
### 3. PyTorch 2-GPU Zero-Sync Hybrid KV+GDN+PLE Engine
```pythonfrom looped_qwen_next import LoopedQwen4Expfrom looped_qwen_next.infer_cache import BatchedLoopedKVGenerator, load_qwen4_fp8_pipeline_2gpu
base_lm = load_qwen4_fp8_pipeline_2gpu("Qwen/Qwen3.8-Flash-Next-FP8", ple_device="cpu")model = LoopedQwen4Exp.from_checkpoint( base_lm, "sliderforthewin/Looped-Qwen3.8-Flash-Next:ckpt_final.safetensors").eval()gen = BatchedLoopedKVGenerator(model)```
---
## Credits & Acknowledgments
- **[`@superalesha` (`alesha-pro`)](https://huggingface.co/alesha-pro):** Huge credit for training and open-sourcing [`alesha-pro/Looped-Qwen3.8-Flash-Next`](https://huggingface.co/alesha-pro/Looped-Qwen3.8-Flash-Next) (MIT) and [`Strata`](https://github.com/alesha-pro/Strata) — scaling recurrent-depth `Qwen3.8-Flash-Next` through 1,200 SFT steps + 200 GSPO RLVR steps (`T=2..4`), per-layer `core_exit` cross-pass mixers, MoE router LoRAs, and `dflash` speculative bridges, which form the frozen recurrence backbone of `Merged v3.1`.- **Qwen Team:** For open-sourcing `Qwen3.8-Flash-Next` and `Qwen3.8-Flash-Next-FP8`.- **[`@beamivalice`](https://github.com/beamivalice), `mlx-serve` (`@ddalcu`), & Apple `LoopCD` Authors (`arXiv:2610.02185`):** For `Sushi` STQ quantization on Apple Silicon, `LoopCD` contrastive decoding (`ddalcu/mlx-serve#1348`), and the open-source Apple Silicon / MLX community pushing fast local MoE + recurrent-depth inference forward.
## License
MIT — see [`LICENSE`](LICENSE).123456789101112137983fffb67455f4e4c26758de9619223ee0b4e2e722f9c3a2a803cbde7d9b04c ckpt_final.json43d88b48fac6721978301cb424fdf7fffc5617653df03fd211b2a4fa467aca81 ckpt_final.safetensors5cfa49edde05ab3a7d7a51d9bae4f637d355678c8c08373df7cf9f30e2061173 mlx/merged_v31_t2/loop_adapter_mlx.jsonb5840135e53b4d6e1f17f0a5d2dd9b1858f1de17202a51076fc797ebe09e04f7 mlx/merged_v31_t2/loop_adapter_mlx.safetensorsab69d3c95b32c55fd3a9837df9a9317aadeccdc2b7f07142442a9fd02f63c1ec mlx/merged_v31_t3/loop_adapter_mlx.json532f0c43fb2f36fd46c438f1177ed5375b68ac37bd04c2e826973ebc03b5f445 mlx/merged_v31_t3/loop_adapter_mlx.safetensors7499bac4c019e481d9092735ebaa4b1a2babf6afb5aeea81bde9edaeb9df89b7 mlx/sft_v21_t3/loop_adapter_mlx.json29d717b3b33cb4733f83f4db3944855bd151867481ccd4194d99705df7a896b0 mlx/sft_v21_t3/loop_adapter_mlx.safetensors6da4f96d58acd532523b7e152f0372bf9c65346ca5dc0b5988ff74444b81aec7 results/final_paired_scorecards_2026-12-01.jsona06b74d617bef9e26ce22db54dbde0d02a2c70f3666c41327a28c8a05c1132f6 sft_v21_direct/ckpt_0024.jsonea409d32aec66cb603d0c7f4f47a63f858b9605e38d1c81df0fd557342b5d096 sft_v21_direct/ckpt_0024.safetensors3e89605d95e9415c7fc0c73097994a60066d835dfa68e24bf2d1420736363ba7 v1/ckpt_merged_v1.jsona05deb7fbcf975ab3ba8f1f69467039807424668302638f556b05fb1508f4cba v1/ckpt_merged_v1.safetensors12345678910111213141516171819202122232425262728293031323334{ "version": 3, "step": 24, "sha256": "43d88b48fac6721978301cb424fdf7fffc5617653df03fd211b2a4fa467aca81", "T_max": 9, "num_tensors": 863, "num_parameters": 70222976, "loop_config": { "mode": "gated_workspace", "core_start": 16, "core_end": 32, "num_passes": 4, "max_passes": 8, "max_trained_passes": 9, "hc_count": 4, "hidden_size": 2560, "entry_rank": 128, "mixer_rank": 128, "lora_rank": 16, "lora_alpha": 32.0, "coda_lora_rank": 16, "coda_lora_layers": 8, "lora_moe_router": true, "router_lora_rank": 16, "coda_router_lora_rank": 16, "per_pass_conditioning": true, "loop_cd_omega": 0.0, "loop_cd_ref": "prev" }, "recipe": "option2_frozen_scaffold_continual_merge_v31", "selected_from": "ckpt_merge_0024.safetensors", "best_direct_nll_avg": 0.0965, "base_adapter": "alesha-pro/Looped-Qwen3.8-Flash-Next:ckpt_final.safetensors"}123version https://git-lfs.github.com/spec/v1oid sha256:43d88b48fac6721978301cb424fdf7fffc5617653df03fd211b2a4fa467aca81size 280990760123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162#!/usr/bin/env python3"""Export a trained `LoopedQwen4Exp` `.safetensors` checkpoint into pre-folded `mlx-serve`sidecar format (`loop_adapter_mlx.safetensors` + `loop_adapter_mlx.json`) for zero-overheadApple Silicon (`M5 Max` / `MacStudio`) recurrent-depth inference on `qwen4_exp`.
Pre-folds `(p_eff, rem_eff)` horizon scales into `B_eff^{(p)}` and `tanh(g_state^{(p)})`for a target `num_passes = T` (default `T = 3`, `loop_cd_omega = 0.15`), so `mlx-serve`executes pure BF16 low-rank matmuls + 4-stream workspace entry without runtime gate algebra."""
from __future__ import annotations
import argparseimport hashlibimport jsonimport sysfrom pathlib import Pathfrom typing import Dict
import safetensors.torch as st_torchimport torch
ROOT = Path(__file__).resolve().parents[1]if str(ROOT / "src") not in sys.path: sys.path.insert(0, str(ROOT / "src"))
from looped_qwen_next.loop_math import LoopNextConfig # noqa: E402from looped_qwen_next.model import ( # noqa: E402 convert_alesha_v3_state_dict, infer_loop_config_from_ckpt, is_alesha_v3_state_dict, resolve_checkpoint_spec,)
def main() -> None: ap = argparse.ArgumentParser(description="Pre-fold LoopedQwen4Exp checkpoint for mlx-serve qwen4_exp runtime") ap.add_argument( "--ckpt", required=True, help="Input ckpt_XXXX.safetensors or HF spec (e.g. alesha-pro/Looped-Qwen3.8-Flash-Next:ckpt_final.safetensors)", ) ap.add_argument("--out-dir", required=True, help="Output directory for mlx-serve sidecar bundle") ap.add_argument("--num-passes", type=int, default=3) ap.add_argument("--cd-omega", type=float, default=None, help="LoopCD omega override (defaults to checkpoint config)") ap.add_argument("--dtype", choices=["bfloat16", "float16"], default="bfloat16") args = ap.parse_args()
ckpt_path, meta_path = resolve_checkpoint_spec(str(args.ckpt)) meta = json.loads(meta_path.read_text(encoding="utf-8")) if (meta_path and meta_path.exists()) else {} raw_loaded = st_torch.load_file(str(ckpt_path), device="cpu") was_alesha_v3 = is_alesha_v3_state_dict(raw_loaded) lcfg = infer_loop_config_from_ckpt(meta, raw_loaded) cd_omega = float(lcfg.loop_cd_omega if args.cd_omega is None else args.cd_omega) out_dt = torch.bfloat16 if args.dtype == "bfloat16" else torch.float16
if was_alesha_v3: raw, bridges = convert_alesha_v3_state_dict( raw_loaded, core_start=lcfg.core_start, core_end=lcfg.core_end, hc_count=lcfg.hc_count, hidden_size=lcfg.hidden_size, ) else: raw = raw_loaded bridges = {} T = int(args.num_passes) exported: Dict[str, torch.Tensor] = {}
# 1. Pre-fold `FourStreamWorkspaceEntry` per extra pass `p = 1 .. T - 1` exported["workspace_entry.norm_s.weight"] = raw["workspace_entry.norm_s.weight"].float() exported["workspace_entry.norm_a.weight"] = raw["workspace_entry.norm_a.weight"].float() exported["workspace_entry.entry_a_t"] = raw["workspace_entry.entry_a"].to(out_dt).t().contiguous() exported["workspace_entry.entry_b_t"] = raw["workspace_entry.entry_b"].to(out_dt).t().contiguous()
for p in range(1, T): p_eff, r_eff = lcfg.pass_indices(p, T) gs = raw["workspace_entry.g_state_base"].float() gm = raw["workspace_entry.g_mix_base"].float() if "workspace_entry.g_state_pass" in raw: gs = gs + raw["workspace_entry.g_state_pass"][p_eff].float() + raw["workspace_entry.g_state_rem"][r_eff].float() gm = gm + raw["workspace_entry.g_mix_pass"][p_eff].float() + raw["workspace_entry.g_mix_rem"][r_eff].float() exported[f"pass.{p}.workspace_entry.gs_tanh"] = torch.tanh(gs).contiguous() exported[f"pass.{p}.workspace_entry.gm"] = gm.contiguous()
# 2. Pre-fold `GroupedCrossPassMixer` per macro-block boundary & pass `p = 1 .. T - 1` for lid in lcfg.mixer_layers: pfx = f"cross_pass_mixers.{lid}" exported[f"mixer.{lid}.norm.weight"] = raw[f"{pfx}.norm.weight"].float() exported[f"mixer.{lid}.mix_a_t"] = raw[f"{pfx}.mix_a"].to(out_dt).t().contiguous() exported[f"mixer.{lid}.mix_b_t"] = raw[f"{pfx}.mix_b"].to(out_dt).t().contiguous() for p in range(1, T): p_eff, r_eff = lcfg.pass_indices(p, T) g = raw[f"{pfx}.gamma"].float() dk = raw[f"{pfx}.delta_kappa"].float() if f"{pfx}.gamma_pass" in raw: g = g + raw[f"{pfx}.gamma_pass"][p_eff].float() + raw[f"{pfx}.gamma_rem"][r_eff].float() dk = dk + raw[f"{pfx}.dkappa_pass"][p_eff].float() + raw[f"{pfx}.dkappa_rem"][r_eff].float() exported[f"pass.{p}.mixer.{lid}.gamma"] = g.contiguous() exported[f"pass.{p}.mixer.{lid}.one_plus_dkappa"] = (1.0 + dk).contiguous()
# 3. Pre-fold Core (`p = 1..T-1`) and Coda Stem LoRA pairs `(A.T, B_eff.T)` lora_bases = sorted({k[: -len(".lora_a")] for k in raw if k.endswith(".lora_a")}) for base_k in lora_bases: a = raw[f"{base_k}.lora_a"].float() b = raw[f"{base_k}.lora_b"].float() r = a.shape[0] scale = lcfg.lora_alpha / float(max(1, r)) lid = int(base_k.split(".")[1]) if lid < lcfg.core_end: for p in range(1, T): p_eff, r_eff = lcfg.pass_indices(p, T) gate = torch.ones(r, dtype=torch.float32) if f"{base_k}.pass_delta" in raw: gate = gate + raw[f"{base_k}.pass_delta"][p_eff].float() + raw[f"{base_k}.rem_delta"][r_eff].float() b_eff = (b * (gate.unsqueeze(0) * scale)).to(out_dt) exported[f"pass.{p}.{base_k}.a_t"] = a.to(out_dt).t().contiguous() exported[f"pass.{p}.{base_k}.b_eff_t"] = b_eff.t().contiguous() else: b_eff = (b * scale).to(out_dt) exported[f"coda.{base_k}.a_t"] = a.to(out_dt).t().contiguous() exported[f"coda.{base_k}.b_eff_t"] = b_eff.t().contiguous()
for bk, bt in bridges.items(): exported[bk] = bt.to(out_dt).contiguous() if bt.ndim >= 2 else bt.float().contiguous()
out_dir = Path(args.out_dir) out_dir.mkdir(parents=True, exist_ok=True) out_st = out_dir / "loop_adapter_mlx.safetensors" st_torch.save_file(exported, str(out_st)) sha = hashlib.sha256(out_st.read_bytes()).hexdigest()
sidecar = { "format": "mlx_serve_looped_qwen4_exp_v1", "source_ckpt": ckpt_path.name, "source_schema": "alesha_v3" if was_alesha_v3 else "looped_qwen4_exp_v1", "sha256": sha, "num_passes": T, "core_start": lcfg.core_start, "core_end": lcfg.core_end, "hc_count": lcfg.hc_count, "hidden_size": lcfg.hidden_size, "mixer_layers": list(lcfg.mixer_layers), "mixer_source": lcfg.mixer_source, "s_hat_mode": lcfg.s_hat_mode, "coda_lora_layers": lcfg.coda_lora_layers, "gate_lora_rank": lcfg.gate_lora_rank, "coda_gate_lora_rank": lcfg.coda_gate_lora_rank, "loop_cd_omega": cd_omega, "loop_cd_ref": lcfg.loop_cd_ref, "loop_cd_rms_mode": lcfg.loop_cd_rms_mode, "has_dflash_bridges": bool(bridges), "dtype": args.dtype, "tensor_count": len(exported), } (out_dir / "loop_adapter_mlx.json").write_text(json.dumps(sidecar, indent=2) + "\n", encoding="utf-8") print(json.dumps(sidecar, indent=2))
if __name__ == "__main__": main()12345678910111213141516171819202122232425262728293031323334353637383940{ "format": "mlx_serve_looped_qwen4_exp_v1", "source_ckpt": "ckpt_merged_v3.safetensors", "source_schema": "alesha_v3", "sha256": "b5840135e53b4d6e1f17f0a5d2dd9b1858f1de17202a51076fc797ebe09e04f7", "num_passes": 2, "core_start": 16, "core_end": 32, "hc_count": 4, "hidden_size": 2560, "mixer_layers": [ 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 ], "mixer_source": "core_exit", "s_hat_mode": "mul_ref_rms", "coda_lora_layers": 8, "gate_lora_rank": 16, "coda_gate_lora_rank": 16, "loop_cd_omega": 0.0, "loop_cd_ref": "prev", "loop_cd_rms_mode": "global", "has_dflash_bridges": true, "dtype": "bfloat16", "tensor_count": 515}123version https://git-lfs.github.com/spec/v1oid sha256:b5840135e53b4d6e1f17f0a5d2dd9b1858f1de17202a51076fc797ebe09e04f7size 13177340812345678910111213141516171819202122232425262728293031323334353637383940{ "format": "mlx_serve_looped_qwen4_exp_v1", "source_ckpt": "ckpt_merged_v3.safetensors", "source_schema": "alesha_v3", "sha256": "532f0c43fb2f36fd46c438f1177ed5375b68ac37bd04c2e826973ebc03b5f445", "num_passes": 3, "core_start": 16, "core_end": 32, "hc_count": 4, "hidden_size": 2560, "mixer_layers": [ 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 ], "mixer_source": "core_exit", "s_hat_mode": "mul_ref_rms", "coda_lora_layers": 8, "gate_lora_rank": 16, "coda_gate_lora_rank": 16, "loop_cd_omega": 0.0, "loop_cd_ref": "prev", "loop_cd_rms_mode": "global", "has_dflash_bridges": true, "dtype": "bfloat16", "tensor_count": 829}123version https://git-lfs.github.com/spec/v1oid sha256:532f0c43fb2f36fd46c438f1177ed5375b68ac37bd04c2e826973ebc03b5f445size 15709478412345678910111213141516171819202122232425262728{ "format": "mlx_serve_looped_qwen4_exp_v1", "source_ckpt": "ckpt_0024.safetensors", "source_schema": "looped_qwen4_exp_v1", "sha256": "29d717b3b33cb4733f83f4db3944855bd151867481ccd4194d99705df7a896b0", "num_passes": 3, "core_start": 16, "core_end": 32, "hc_count": 4, "hidden_size": 2560, "mixer_layers": [ 19, 23, 27, 31 ], "mixer_source": "layer_tap", "s_hat_mode": "rms_match", "coda_lora_layers": 8, "gate_lora_rank": 8, "coda_gate_lora_rank": 0, "loop_cd_omega": 0.0, "loop_cd_ref": "first", "loop_cd_rms_mode": "per_stream", "has_dflash_bridges": false, "dtype": "bfloat16", "tensor_count": 720}123version https://git-lfs.github.com/spec/v1oid sha256:29d717b3b33cb4733f83f4db3944855bd151867481ccd4194d99705df7a896b0size 87354776123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373{ "project": "looped-qwen3.8-flash-next-fp8", "base_model": "Qwen/Qwen3.8-Flash-Next-FP8", "completed_utc": "2026-12-02T04:01:49Z", "pod_cleanup_verified_404": true, "active_qwen4next_pods_remaining": 0, "budget_summary_usd": { "phase1_ceiling_usd": 100.0, "phase1_total_usd": 90.31, "phase2_option_ab_ceiling_usd": 30.0, "phase2_option_ab_pod_usd": 27.51, "phase3_choice2_sft_v21_ceiling_usd": 18.0, "phase3_choice2_pod_usd": 13.27, "phase4_option2_continual_merge_v31_ceiling_usd": 18.5, "phase4_option2_merge_and_direct_pod_usd": 12.19, "phase4_vllm_h200_preflight_pods_usd": 1.27, "phase4_vllm_h200_gate2_pod_usd": 3.53, "phase4_option2_total_usd": 16.99, "deepinfra_api_baselines_and_traces_usd": 2.18, "h200_preflight_and_sft150_usd": 31.9, "multi_gpu_eval_and_rlvr_pods_usd": 56.23, "grand_total_usd": 148.08 }, "sft_v1_heldout_val_nll_trajectory": [ {"step": 0, "nll_base_t1": 0.63266, "nll_t2": 0.63266, "nll_anchor_only_t2": 0.63266, "nll_t3": 0.63266, "loop_gain_t2": 0.0, "state_gain_t2": 0.0, "loop_gain_t3": 0.0}, {"step": 25, "nll_base_t1": 0.63266, "nll_t2": 0.61049, "nll_anchor_only_t2": 0.61405, "nll_t3": 0.61009, "loop_gain_t2": 0.02217, "state_gain_t2": 0.00357, "loop_gain_t3": 0.02257}, {"step": 50, "nll_base_t1": 0.63266, "nll_t2": 0.62265, "nll_anchor_only_t2": 0.62226, "nll_t3": 0.62229, "loop_gain_t2": 0.01001, "state_gain_t2": -0.00039, "loop_gain_t3": 0.01037}, {"step": 75, "nll_base_t1": 0.63266, "nll_t2": 0.61616, "nll_anchor_only_t2": 0.61701, "nll_t3": 0.61643, "loop_gain_t2": 0.0165, "state_gain_t2": 0.00085, "loop_gain_t3": 0.01623}, {"step": 100, "nll_base_t1": 0.63266, "nll_t2": 0.61672, "nll_anchor_only_t2": 0.61698, "nll_t3": 0.61578, "loop_gain_t2": 0.01594, "state_gain_t2": 0.00026, "loop_gain_t3": 0.01688}, {"step": 125, "nll_base_t1": 0.63266, "nll_t2": 0.61477, "nll_anchor_only_t2": 0.61622, "nll_t3": 0.61477, "loop_gain_t2": 0.01789, "state_gain_t2": 0.00145, "loop_gain_t3": 0.01789}, {"step": 150, "nll_base_t1": 0.63266, "nll_t2": 0.61292, "nll_anchor_only_t2": 0.61471, "nll_t3": 0.61244, "loop_gain_t2": 0.01973, "state_gain_t2": 0.00178, "loop_gain_t3": 0.02022} ], "sft_v2_heldout_val_nll_trajectory": [ {"step": 0, "nll_base_t1": 0.63266, "nll_t2": 0.63266, "nll_anchor_only_t2": 0.63266, "nll_t3": 0.63266, "loop_gain_t2": 0.0, "state_gain_t2": 0.0, "loop_gain_t3": 0.0, "state_gain_t3": 0.0}, {"step": 20, "nll_base_t1": 0.63266, "nll_t2": 0.60636, "nll_anchor_only_t2": 0.62414, "nll_t3": 0.60574, "loop_gain_t2": 0.02631, "state_gain_t2": 0.01779, "loop_gain_t3": 0.02693, "state_gain_t3": 0.01841} ], "sft_v21_heldout_val_nll_trajectory": [ {"step": 24, "nll_base_t1": 0.63248, "nll_t2": 0.60733, "nll_anchor_only_t2": 0.62398, "nll_t3": 0.60881, "loop_gain_t2": 0.02515, "state_gain_t2": 0.01665, "loop_gain_t3": 0.02368, "state_gain_t3": 0.01518}, {"step": 36, "nll_base_t1": 0.63248, "nll_t2": 0.60681, "nll_anchor_only_t2": 0.62384, "nll_t3": 0.60892, "loop_gain_t2": 0.02567, "state_gain_t2": 0.01703, "loop_gain_t3": 0.02357, "state_gain_t3": 0.01492}, {"step": 48, "nll_base_t1": 0.63248, "nll_t2": 0.60728, "nll_anchor_only_t2": 0.62386, "nll_t3": 0.61004, "loop_gain_t2": 0.02521, "state_gain_t2": 0.01659, "loop_gain_t3": 0.02244, "state_gain_t3": 0.01382} ], "paired_lcb_v6_medium_direct52": { "deepinfra_stock_t1": { "instance_type": "DeepInfra API (Qwen/Qwen3.8-Flash)", "num_passes": 1, "cd_omega": 0.0, "passed": 29, "total": 52, "acc": 0.5577, "max_completion_tokens": 4096, "mean_completion_tokens": 1630.0, "cap_hits": 11 }, "option_a_ckpt_0025_exact_4096_parity": { "ckpt": "sft_v1_ckpt_0025.safetensors", "instance_type": "2x NVIDIA H100 80GB HBM3", "pod_id": "pod-redacted-01", "hourly_rate_usd": 8.78, "arms": { "t3": { "num_passes": 3, "cd_omega": 0.0, "cd_ref": "first", "passed": 31, "total": 52, "acc": 0.5962, "delta_pp": 3.85, "wins": 4, "losses": 2, "mcnemar_p": 0.6875, "wall_time_s": 1338.19, "effective_tok_per_s": 62.4, "est_cost_usd": 3.2637, "total_prompt_tokens": 28675, "total_completion_tokens": 83518, "mean_completion_tokens": 1606.1, "median_completion_tokens": 1012.0, "max_completion_tokens": 4096, "cap_hits": 12, "base_subword_hits": 0, "order_subword_hits": 0, "prose_before_code": 11 }, "t3_cd15_first": { "num_passes": 3, "cd_omega": 0.15, "cd_ref": "first", "passed": 29, "total": 52, "acc": 0.5577, "delta_pp": 0.0, "wins": 4, "losses": 4, "mcnemar_p": 1.0, "wall_time_s": 1273.64, "effective_tok_per_s": 70.4, "est_cost_usd": 3.1063, "total_prompt_tokens": 28675, "total_completion_tokens": 89679, "mean_completion_tokens": 1724.6, "median_completion_tokens": 905.0, "max_completion_tokens": 4096, "cap_hits": 15, "base_subword_hits": 0, "order_subword_hits": 0, "prose_before_code": 11 } } }, "option_b_sft_v2_ckpt_0020_exact_4096_parity": { "ckpt": "sft_v2_ckpt_0020.safetensors", "recipe": { "coda_lora_layers": 8, "frozen_readout_layers": "L40..47", "gate_lora_rank": 8, "base_lr": 0.00012, "lora_lr": 3e-05, "spectral_out_dim_scaling": true, "ret_frac": 0.25, "per_doc_ce": true, "direct_sup_doc_frac": 0.2957, "valid_tokens_at_ckpt_0020": 670000 }, "instance_type": "2x NVIDIA H100 80GB HBM3", "pod_id": "pod-redacted-01", "hourly_rate_usd": 8.78, "arms": { "t3": { "num_passes": 3, "cd_omega": 0.0, "cd_ref": "first", "passed": 31, "total": 52, "acc": 0.5962, "delta_pp": 3.85, "wins": 7, "losses": 5, "mcnemar_p": 0.77441, "wall_time_s": 1282.62, "effective_tok_per_s": 30.7, "est_cost_usd": 3.1282, "total_prompt_tokens": 28675, "total_completion_tokens": 39389, "mean_completion_tokens": 757.5, "median_completion_tokens": 367.0, "mean_token_delta_vs_stock_t1": -872.6, "max_completion_tokens": 4096, "cap_hits": 3, "base_subword_hits": 0, "order_subword_hits": 0, "prose_before_code": 0 } }, "oracle_union_with_option_a_t3": { "passed": 37, "total": 52, "acc": 0.7115, "delta_pp_vs_stock_t1": 15.38 } }, "choice2_sft_v21_ckpt_0024_exact_4096_parity": { "ckpt": "sft_v21_ckpt_0024.safetensors", "recipe": { "coda_lora_layers": 8, "frozen_readout_layers": "L40..47", "gate_lora_rank": 8, "ce_doc_norm": "sqrt", "preserved_natural_direct_passes_le_2800": 42, "sft_steps_full_cosine": 48, "selected_step": 24 }, "instance_type": "2x NVIDIA RTX PRO 6000 Blackwell Server Edition", "pod_id": "pod-redacted-02", "hourly_rate_usd": 5.38, "arms": { "t3": { "num_passes": 3, "cd_omega": 0.0, "cd_ref": "first", "passed": 32, "total": 52, "acc": 0.6154, "delta_pp": 5.77, "wins": 5, "losses": 2, "mcnemar_p": 0.45312, "wall_time_s": 760.52, "effective_tok_per_s": 99.5, "peak_tok_per_s": 152.9, "est_cost_usd": 1.1366, "total_prompt_tokens": 28675, "total_completion_tokens": 75649, "mean_completion_tokens": 1454.8, "median_completion_tokens": 883.5, "mean_token_delta_vs_stock_t1": -175.2, "max_completion_tokens": 4096, "cap_hits": 7, "base_subword_hits": 0, "order_subword_hits": 0, "prose_before_code": 0 } }, "gpqa_diamond_30_xhigh_guard": { "num_passes": 3, "cd_omega": 0.0, "passed": 26, "stock_t1_passed": 27, "total": 30, "acc": 0.8667, "stock_t1_acc": 0.9, "delta_pp": -3.33, "wins": 0, "losses": 1, "mcnemar_p": 1.0, "wall_time_s": 3350.71, "effective_tok_per_s": 59.9, "peak_tok_per_s": 136.4, "est_cost_usd": 5.0075, "mean_completion_tokens": 6693.3, "median_completion_tokens": 3784.0, "max_completion_tokens": 20480, "cap_hits": 4 }, "oracle_union_opta_v2_v21_t3": { "passed": 38, "total": 52, "acc": 0.7308, "delta_pp_vs_stock_t1": 17.31 } }, "local_stock_t1_parity": { "instance_type": "2x NVIDIA H100 80GB HBM3", "pod_id": "pod-redacted-05", "hourly_rate_usd": 8.78, "num_passes": 1, "cd_omega": 0.0, "passed": 29, "total": 52, "acc": 0.5577, "delta_pp": 0.0, "flips_t1_fail_to_loop_pass": 4, "flips_t1_pass_to_loop_fail": 4, "mcnemar_p": 1.0, "wall_time_s": 2001.93, "effective_tok_per_s": 39.6, "est_cost_usd": 4.8825, "total_prompt_tokens": 28675, "total_completion_tokens": 79183, "mean_completion_tokens": 1522.8, "median_completion_tokens": 861.5, "max_completion_tokens": 4096, "cap_hits": 10 }, "sft_150_2x2_loopcd_x_depth_legacy_2048_cap": { "ckpt": "ckpt_0150_sft (ckpt_0300.safetensors)", "instance_type": "2x NVIDIA H100 80GB HBM3", "pod_id": "pod-redacted-06", "hourly_rate_usd": 8.78, "arms": { "t2": {"num_passes": 2, "cd_omega": 0.0, "passed": 22, "total": 52, "acc": 0.4231, "delta_pp": -13.46, "wins": 3, "losses": 10, "mcnemar_p": 0.09229, "wall_time_s": 1346.62, "effective_tok_per_s": 42.1, "est_cost_usd": 3.2843, "total_completion_tokens": 56707, "mean_completion_tokens": 1090.5, "median_completion_tokens": 900.0, "max_completion_tokens": 2048, "cap_hits": 16}, "t2_cd15": {"num_passes": 2, "cd_omega": 0.15, "passed": 24, "total": 52, "acc": 0.4615, "delta_pp": -9.62, "wins": 4, "losses": 9, "mcnemar_p": 0.26685, "wall_time_s": 1539.3, "effective_tok_per_s": 39.4, "est_cost_usd": 3.7542, "total_completion_tokens": 60588, "mean_completion_tokens": 1165.2, "median_completion_tokens": 1077.5, "max_completion_tokens": 2048, "cap_hits": 17}, "t3": {"num_passes": 3, "cd_omega": 0.0, "passed": 25, "total": 52, "acc": 0.4808, "delta_pp": -7.69, "wins": 4, "losses": 8, "mcnemar_p": 0.3877, "wall_time_s": 2173.51, "effective_tok_per_s": 26.7, "est_cost_usd": 5.301, "total_completion_tokens": 58018, "mean_completion_tokens": 1115.7, "median_completion_tokens": 837.5, "max_completion_tokens": 2048, "cap_hits": 15}, "t3_cd15": {"num_passes": 3, "cd_omega": 0.15, "passed": 21, "total": 52, "acc": 0.4038, "delta_pp": -15.38, "wins": 2, "losses": 10, "mcnemar_p": 0.03857, "wall_time_s": 2022.82, "effective_tok_per_s": 31.0, "est_cost_usd": 4.9334, "total_completion_tokens": 62777, "mean_completion_tokens": 1207.2, "median_completion_tokens": 1228.5, "max_completion_tokens": 2048, "cap_hits": 18} } }, "gspo_rlvr_6_2x2_loopcd_x_depth_legacy_2048_cap": { "ckpt": "rlvr_ckpt_0006.safetensors", "instance_type": "2x NVIDIA H100 80GB HBM3", "pod_id": "pod-redacted-06", "hourly_rate_usd": 8.78, "arms": { "t2": {"num_passes": 2, "cd_omega": 0.0, "passed": 10, "total": 52, "acc": 0.1923, "delta_pp": -36.54, "wins": 2, "losses": 21, "mcnemar_p": 7e-05, "wall_time_s": 1332.5, "effective_tok_per_s": 58.5, "est_cost_usd": 3.2498, "total_completion_tokens": 77936, "mean_completion_tokens": 1498.8, "median_completion_tokens": 2048.0, "max_completion_tokens": 2048, "cap_hits": 32}, "t2_cd15": {"num_passes": 2, "cd_omega": 0.15, "passed": 11, "total": 52, "acc": 0.2115, "delta_pp": -34.62, "wins": 4, "losses": 22, "mcnemar_p": 0.00053, "wall_time_s": 1324.84, "effective_tok_per_s": 58.7, "est_cost_usd": 3.2311, "total_completion_tokens": 77703, "mean_completion_tokens": 1494.3, "median_completion_tokens": 2048.0, "max_completion_tokens": 2048, "cap_hits": 30}, "t3": {"num_passes": 3, "cd_omega": 0.0, "passed": 9, "total": 52, "acc": 0.1731, "delta_pp": -38.46, "wins": 1, "losses": 21, "mcnemar_p": 1e-05, "wall_time_s": 1695.8, "effective_tok_per_s": 45.4, "est_cost_usd": 4.1359, "total_completion_tokens": 76910, "mean_completion_tokens": 1479.0, "median_completion_tokens": 2048.0, "max_completion_tokens": 2048, "cap_hits": 28}, "t3_cd15": {"num_passes": 3, "cd_omega": 0.15, "passed": 10, "total": 52, "acc": 0.1923, "delta_pp": -36.54, "wins": 3, "losses": 22, "mcnemar_p": 0.00016, "wall_time_s": 1853.31, "effective_tok_per_s": 40.4, "est_cost_usd": 4.52, "total_completion_tokens": 74865, "mean_completion_tokens": 1439.7, "median_completion_tokens": 2048.0, "max_completion_tokens": 2048, "cap_hits": 27} } } }, "option2_continual_merge_v31": { "recipe": { "base_adapter": "alesha-pro/Looped-Qwen3.8-Flash-Next:ckpt_final.safetensors", "frozen_recurrence_scaffold": [ "workspace_entry.*", "cross_pass_mixers.*", "lora_pass_delta_raw" ], "frozen_scaffold_max_diff": 0.0, "trainable_subspace": "Core L16..31 & Coda L32..39 base LoRAs + mlp.gate router LoRAs (L40..47 readout frozen)", "steps": 24, "lora_lr": 1.2e-05, "lam_kl_think_teacher": 1.0, "ce_doc_norm": "sqrt", "train_direct_sup_rows": 91, "train_think_ret_rows": 112, "exported_v3_sha256": "43d88b48fac6721978301cb424fdf7fffc5617653df03fd211b2a4fa467aca81", "exported_v1_sha256": "a05deb7fbcf975ab3ba8f1f69467039807424668302638f556b05fb1508f4cba", "dflash_bridges_preserved": 9 }, "heldout_val_trajectory_final_step24": { "direct_nll_t2_step0": 0.11087, "direct_nll_t2_step24": 0.10009, "direct_nll_t3_step0": 0.10106, "direct_nll_t3_step24": 0.0929, "think_kl_vs_alesha_t2_nats": 0.001425, "think_kl_vs_alesha_t3_nats": 0.001536, "stop_vs_alesha_diff": 0.0 }, "four_way_paired_comparison_336_items": { "humaneval_plus_direct_164": { "protocol": "direct @ 2048, greedy (Clean EvalPlus 164-item grading without 128KB argv truncation)", "stock_t1": {"passed": 156, "total": 164, "acc": 0.9512, "mean_tokens": 252.3}, "alesha_v3_t2": {"passed": 150, "total": 164, "acc": 0.9146, "delta_pp_vs_stock": -3.66, "mean_tokens": 222.0}, "merged_v31_t2": {"passed": 154, "total": 164, "acc": 0.939, "delta_pp_vs_stock": -1.22, "mcnemar_p_vs_stock": 0.6875, "delta_pp_vs_alesha_t2": 2.44, "wins_vs_alesha": 4, "losses_vs_alesha": 0, "mean_tokens": 223.7, "engines_verified_identical": ["vllm_0.34.0_fp8_h200", "pytorch_fp8_2x_blackwell"]}, "merged_v31_t3": {"passed": 154, "total": 164, "acc": 0.939, "delta_pp_vs_stock": -1.22, "delta_pp_vs_alesha_t2": 2.44, "wins_vs_alesha": 5, "losses_vs_alesha": 1, "mean_tokens": 227.1} }, "lcb_v6_medium_direct52": { "protocol": "direct @ 4096, greedy", "stock_t1": {"passed": 29, "total": 52, "acc": 0.5577, "mean_tokens": 1630.0}, "sft_v21_ckpt_0024_t3": {"passed": 32, "total": 52, "acc": 0.6154, "delta_pp_vs_stock": 5.77, "delta_pp_vs_alesha_t2": 9.62, "mean_tokens": 1454.8}, "alesha_v3_t2": {"passed": 27, "total": 52, "acc": 0.5192, "delta_pp_vs_stock": -3.85, "mean_tokens": 705.1}, "alesha_v3_t3": {"passed": 28, "total": 52, "acc": 0.5385, "delta_pp_vs_stock": -1.92, "mean_tokens": 584.0}, "merged_v31_t2": {"passed": 28, "total": 52, "acc": 0.5385, "delta_pp_vs_stock": -1.92, "delta_pp_vs_alesha_t2": 1.92, "wins_vs_alesha": 2, "losses_vs_alesha": 1, "mean_tokens": 712.9}, "merged_v31_t3": {"passed": 29, "total": 52, "acc": 0.5577, "delta_pp_vs_stock": 0.0, "delta_pp_vs_alesha_t2": 3.85, "wins_vs_alesha": 7, "losses_vs_alesha": 5, "mean_tokens": 531.4, "cap_hits": 0} }, "lcb_v6_gate2_40": { "protocol": "xhigh <think> @ 24576, greedy (1x NVIDIA H200 vLLM 0.34.0 FP8 @ 566.0 tok/s)", "stock_t1": {"passed": 23, "total": 40, "acc": 0.575, "mean_tokens": 14927.2}, "alesha_v3_t2": {"passed_raw_jsonl": 32, "passed_regraded": 33, "total": 40, "acc_raw_jsonl": 0.8, "acc_regraded": 0.825, "mean_tokens": 9480.2}, "merged_v31_t2": {"passed": 32, "total": 40, "acc": 0.8, "delta_pp_vs_stock": 22.5, "wins_vs_stock": 10, "losses_vs_stock": 1, "mcnemar_p_vs_stock": 0.01172, "mcnemar_p_vs_alesha_t2": 1.0, "mean_tokens": 9211.8, "token_reduction_vs_stock_pct": -38.3, "effective_tok_per_s": 566.0} }, "gpqa_diamond_gate2_50": { "protocol": "xhigh <think> @ 24576, greedy (1x NVIDIA H200 vLLM 0.34.0 FP8 @ 552.1 tok/s)", "stock_t1": {"passed": 40, "total": 50, "acc": 0.8, "mean_tokens": 9057.1}, "alesha_v3_t2": {"passed": 45, "total": 50, "acc": 0.9, "delta_pp_vs_stock": 10.0, "mean_tokens": 5064.7}, "merged_v31_t2": {"passed": 46, "total": 50, "acc": 0.92, "delta_pp_vs_stock": 12.0, "wins_vs_stock": 6, "losses_vs_stock": 0, "mcnemar_p_vs_stock": 0.03125, "delta_pp_vs_alesha_t2": 2.0, "wins_vs_alesha": 1, "losses_vs_alesha": 0, "mean_tokens": 5798.4, "token_reduction_vs_stock_pct": -36.0, "effective_tok_per_s": 552.1} }, "aime_2025_30": { "protocol": "xhigh <think> @ 24576, greedy (1x NVIDIA H200 vLLM 0.34.0 FP8 @ 562.3 tok/s)", "stock_t1": {"passed": 19, "total": 30, "acc": 0.6333, "mean_tokens": 13771.2}, "alesha_v3_t2": {"passed": 24, "total": 30, "acc": 0.8, "delta_pp_vs_stock": 16.67, "mean_tokens": 10155.2}, "merged_v31_t2": {"passed": 26, "total": 30, "acc": 0.8667, "delta_pp_vs_stock": 23.33, "wins_vs_stock": 7, "losses_vs_stock": 0, "mcnemar_p_vs_stock": 0.01562, "delta_pp_vs_alesha_t2": 6.67, "wins_vs_alesha": 3, "losses_vs_alesha": 1, "mean_tokens": 9438.0, "token_reduction_vs_stock_pct": -31.5, "effective_tok_per_s": 562.3} }, "aggregate_gate2_think_120": { "stock_t1": {"passed": 82, "total": 120, "acc": 0.6833}, "alesha_v3_t2": {"passed_raw": 101, "passed_regraded": 102, "total": 120, "acc_raw": 0.8417, "acc_regraded": 0.85}, "merged_v31_t2": {"passed": 104, "total": 120, "acc": 0.8667, "delta_pp_vs_stock": 18.33, "wins_vs_stock": 23, "losses_vs_stock": 1, "delta_pp_vs_alesha_raw": 2.5, "delta_pp_vs_alesha_regraded": 1.67} }, "aggregate_all_336_items": { "stock_t1": {"passed": 267, "total": 336, "acc": 0.7946}, "alesha_v3_t2": {"passed_raw": 278, "passed_regraded": 279, "total": 336, "acc_raw": 0.8274, "acc_regraded": 0.8304}, "merged_v31_t2": {"passed": 286, "total": 336, "acc": 0.8512, "delta_pp_vs_stock": 5.65, "delta_pp_vs_alesha_regraded": 2.08}, "merged_v31_hybrid_t3_direct_t2_think": {"passed": 287, "total": 336, "acc": 0.8542, "delta_pp_vs_stock": 5.95, "delta_pp_vs_alesha_regraded": 2.38} } } }, "mlx_serve_exports": { "export_root": "runs/mlx_serve_export", "recommended_all_purpose_bundle": "merged_v31_t2", "recommended_direct_code_specialist_bundle": "sft_v21_ckpt_0024_t3", "bundles": { "merged_v31_t2": {"source_schema": "alesha_v3", "num_passes": 2, "cd_omega": 0.0, "cd_ref": "prev", "coda_lora_layers": 8, "gate_lora_rank": 16, "coda_gate_lora_rank": 16, "tensor_count": 515, "sha256": "b5840135e53b4d6e1f17f0a5d2dd9b1858f1de17202a51076fc797ebe09e04f7"}, "merged_v31_t3": {"source_schema": "alesha_v3", "num_passes": 3, "cd_omega": 0.0, "cd_ref": "prev", "coda_lora_layers": 8, "gate_lora_rank": 16, "coda_gate_lora_rank": 16, "tensor_count": 829, "sha256": "532f0c43fb2f36fd46c438f1177ed5375b68ac37bd04c2e826973ebc03b5f445"}, "sft_v21_ckpt_0024_t3": {"num_passes": 3, "cd_omega": 0.0, "cd_ref": "first", "coda_lora_layers": 8, "gate_lora_rank": 8, "tensor_count": 720, "sha256": "29d717b3b33cb4733f83f4db3944855bd151867481ccd4194d99705df7a896b0"}, "sft_v2_ckpt_0020_t3": {"num_passes": 3, "cd_omega": 0.0, "cd_ref": "first", "coda_lora_layers": 8, "gate_lora_rank": 8, "tensor_count": 720, "sha256": "b0c988312f4a3e1e5a70f21e2b5e9b591dc1d337b929eccf87df4a161119fe52"}, "sft_v2_ckpt_0020_t3_cd15_first": {"num_passes": 3, "cd_omega": 0.15, "cd_ref": "first", "coda_lora_layers": 8, "gate_lora_rank": 8, "tensor_count": 720, "sha256": "b0c988312f4a3e1e5a70f21e2b5e9b591dc1d337b929eccf87df4a161119fe52"}, "sft_v1_ckpt_0025_t3": {"num_passes": 3, "cd_omega": 0.0, "coda_lora_layers": 16, "gate_lora_rank": 0, "tensor_count": 780, "sha256": "e7129061caae6a74a9cc912d7e3105d1c4d6869c12018259dbc788e04c7923aa"}, "sft_150_t2": {"num_passes": 2, "cd_omega": 0.0, "tensor_count": 522}, "sft_150_t2_cd15": {"num_passes": 2, "cd_omega": 0.15, "tensor_count": 522}, "sft_150_t3": {"num_passes": 3, "cd_omega": 0.0, "tensor_count": 780}, "sft_150_t3_cd15": {"num_passes": 3, "cd_omega": 0.15, "tensor_count": 780} } }}12345678910111213141516171819202122232425{"step": 0, "direct_nll_base_t1": 0.06926, "direct_nll_t2": 0.11087, "direct_nll_anchor_only_t2": 0.07496, "direct_nll_t3": 0.10106, "direct_loop_gain_t2": -0.04161, "direct_state_gain_t2": -0.03591, "direct_loop_gain_t3": -0.03179, "direct_state_gain_t3": -0.0261, "kl_vs_alesha_t2": 0.0, "stop_vs_alesha_t2": 0.0, "kl_vs_alesha_t3": 0.0, "stop_vs_alesha_t3": 0.0}{"step": 1, "T": 2, "lr_mult": 0.25, "direct_ce": 0.1452, "direct_kl_stock": 0.05642, "think_kl_alesha": 0.00131, "think_stop_alesha": 0.0, "gnorm_lora": 0.1397, "sup_valid_tok": 5972, "ret_valid_tok": 7502, "tok_per_s": 326.8}{"step": 2, "T": 3, "lr_mult": 0.5, "direct_ce": 0.29308, "direct_kl_stock": 0.10785, "think_kl_alesha": 0.00105, "think_stop_alesha": 0.0, "gnorm_lora": 0.2592, "sup_valid_tok": 3628, "ret_valid_tok": 6803, "tok_per_s": 525.7}{"step": 3, "T": 2, "lr_mult": 0.75, "direct_ce": 0.15467, "direct_kl_stock": 0.08584, "think_kl_alesha": 0.00068, "think_stop_alesha": 0.0, "gnorm_lora": 0.204, "sup_valid_tok": 6528, "ret_valid_tok": 6569, "tok_per_s": 801.2}{"step": 4, "T": 3, "lr_mult": 1.0, "direct_ce": 0.21483, "direct_kl_stock": 0.0882, "think_kl_alesha": 0.0008, "think_stop_alesha": 0.0, "gnorm_lora": 0.6541, "sup_valid_tok": 3402, "ret_valid_tok": 7196, "tok_per_s": 526.0}{"step": 5, "T": 2, "lr_mult": 1.0, "direct_ce": 0.12478, "direct_kl_stock": 0.03897, "think_kl_alesha": 0.00026, "think_stop_alesha": 0.0, "gnorm_lora": 0.1989, "sup_valid_tok": 3058, "ret_valid_tok": 6777, "tok_per_s": 735.9}{"step": 6, "T": 3, "lr_mult": 0.9945, "direct_ce": 0.17257, "direct_kl_stock": 0.03611, "think_kl_alesha": 0.0011, "think_stop_alesha": 0.0, "gnorm_lora": 0.2669, "sup_valid_tok": 5197, "ret_valid_tok": 7003, "tok_per_s": 530.0}{"step": 7, "T": 2, "lr_mult": 0.978, "direct_ce": 0.27887, "direct_kl_stock": 0.07386, "think_kl_alesha": 0.00091, "think_stop_alesha": 0.0, "gnorm_lora": 3.7763, "sup_valid_tok": 4100, "ret_valid_tok": 6712, "tok_per_s": 771.3}{"step": 8, "T": 3, "lr_mult": 0.951, "direct_ce": 0.29464, "direct_kl_stock": 0.11314, "think_kl_alesha": 0.00178, "think_stop_alesha": 0.0, "gnorm_lora": 0.3048, "sup_valid_tok": 3781, "ret_valid_tok": 6678, "tok_per_s": 530.9, "direct_nll_base_t1": 0.06926, "direct_nll_t2": 0.10466, "direct_nll_anchor_only_t2": 0.07349, "direct_nll_t3": 0.09572, "direct_loop_gain_t2": -0.0354, "direct_state_gain_t2": -0.03117, "direct_loop_gain_t3": -0.02646, "direct_state_gain_t3": -0.02223, "kl_vs_alesha_t2": 0.001094, "stop_vs_alesha_t2": 0.0, "kl_vs_alesha_t3": 0.001177, "stop_vs_alesha_t3": 0.0}{"step": 9, "T": 2, "lr_mult": 0.9141, "direct_ce": 0.27054, "direct_kl_stock": 0.06642, "think_kl_alesha": 0.00154, "think_stop_alesha": 0.0, "gnorm_lora": 0.3187, "sup_valid_tok": 4554, "ret_valid_tok": 7067, "tok_per_s": 789.1}{"step": 10, "T": 3, "lr_mult": 0.8682, "direct_ce": 0.2351, "direct_kl_stock": 0.054, "think_kl_alesha": 0.00126, "think_stop_alesha": 0.0, "gnorm_lora": 0.1288, "sup_valid_tok": 5082, "ret_valid_tok": 7080, "tok_per_s": 534.6}{"step": 11, "T": 2, "lr_mult": 0.8145, "direct_ce": 0.18473, "direct_kl_stock": 0.07155, "think_kl_alesha": 0.00121, "think_stop_alesha": 1e-06, "gnorm_lora": 0.1768, "sup_valid_tok": 5704, "ret_valid_tok": 6390, "tok_per_s": 779.4}{"step": 12, "T": 3, "lr_mult": 0.7543, "direct_ce": 0.13023, "direct_kl_stock": 0.04576, "think_kl_alesha": 0.00088, "think_stop_alesha": 0.0, "gnorm_lora": 0.1879, "sup_valid_tok": 6286, "ret_valid_tok": 6951, "tok_per_s": 536.4}{"step": 13, "T": 2, "lr_mult": 0.6891, "direct_ce": 0.19797, "direct_kl_stock": 0.05747, "think_kl_alesha": 0.0014, "think_stop_alesha": 0.0, "gnorm_lora": 0.1529, "sup_valid_tok": 5504, "ret_valid_tok": 7437, "tok_per_s": 797.6}{"step": 14, "T": 3, "lr_mult": 0.6204, "direct_ce": 0.27118, "direct_kl_stock": 0.11262, "think_kl_alesha": 0.00097, "think_stop_alesha": 0.0, "gnorm_lora": 0.1792, "sup_valid_tok": 3628, "ret_valid_tok": 5174, "tok_per_s": 505.5}{"step": 15, "T": 2, "lr_mult": 0.55, "direct_ce": 0.13571, "direct_kl_stock": 0.04969, "think_kl_alesha": 0.00118, "think_stop_alesha": 0.0, "gnorm_lora": 0.0916, "sup_valid_tok": 6287, "ret_valid_tok": 7333, "tok_per_s": 785.1}{"step": 16, "T": 3, "lr_mult": 0.4796, "direct_ce": 0.25854, "direct_kl_stock": 0.05935, "think_kl_alesha": 0.00255, "think_stop_alesha": 0.0, "gnorm_lora": 0.4466, "sup_valid_tok": 4553, "ret_valid_tok": 6666, "tok_per_s": 539.0, "direct_nll_base_t1": 0.06926, "direct_nll_t2": 0.10079, "direct_nll_anchor_only_t2": 0.07316, "direct_nll_t3": 0.09357, "direct_loop_gain_t2": -0.03153, "direct_state_gain_t2": -0.02763, "direct_loop_gain_t3": -0.02431, "direct_state_gain_t3": -0.02041, "kl_vs_alesha_t2": 0.001309, "stop_vs_alesha_t2": 0.0, "kl_vs_alesha_t3": 0.001412, "stop_vs_alesha_t3": 0.0}{"step": 17, "T": 2, "lr_mult": 0.4109, "direct_ce": 0.30967, "direct_kl_stock": 0.11592, "think_kl_alesha": 0.00112, "think_stop_alesha": 0.0, "gnorm_lora": 0.1942, "sup_valid_tok": 3781, "ret_valid_tok": 6832, "tok_per_s": 785.2}{"step": 18, "T": 3, "lr_mult": 0.3457, "direct_ce": 0.18701, "direct_kl_stock": 0.05169, "think_kl_alesha": 0.001, "think_stop_alesha": 0.0, "gnorm_lora": 0.1382, "sup_valid_tok": 5504, "ret_valid_tok": 7314, "tok_per_s": 533.7}{"step": 19, "T": 2, "lr_mult": 0.2855, "direct_ce": 0.13183, "direct_kl_stock": 0.0459, "think_kl_alesha": 0.00189, "think_stop_alesha": 0.0, "gnorm_lora": 0.1521, "sup_valid_tok": 5972, "ret_valid_tok": 7119, "tok_per_s": 799.7}{"step": 20, "T": 3, "lr_mult": 0.2318, "direct_ce": 0.12177, "direct_kl_stock": 0.05333, "think_kl_alesha": 0.00122, "think_stop_alesha": 0.0, "gnorm_lora": 0.1664, "sup_valid_tok": 6528, "ret_valid_tok": 6955, "tok_per_s": 551.9}{"step": 21, "T": 2, "lr_mult": 0.1859, "direct_ce": 0.21136, "direct_kl_stock": 0.09375, "think_kl_alesha": 0.00198, "think_stop_alesha": 0.0, "gnorm_lora": 0.2304, "sup_valid_tok": 3402, "ret_valid_tok": 7450, "tok_per_s": 766.0}{"step": 22, "T": 3, "lr_mult": 0.149, "direct_ce": 0.2308, "direct_kl_stock": 0.05335, "think_kl_alesha": 0.00139, "think_stop_alesha": 0.0, "gnorm_lora": 0.2205, "sup_valid_tok": 5082, "ret_valid_tok": 6035, "tok_per_s": 518.5}{"step": 23, "T": 2, "lr_mult": 0.122, "direct_ce": 0.17799, "direct_kl_stock": 0.06579, "think_kl_alesha": 0.00224, "think_stop_alesha": 0.0, "gnorm_lora": 0.1642, "sup_valid_tok": 5704, "ret_valid_tok": 7658, "tok_per_s": 816.7}{"step": 24, "T": 3, "lr_mult": 0.1055, "direct_ce": 0.10155, "direct_kl_stock": 0.03294, "think_kl_alesha": 0.00195, "think_stop_alesha": 0.0, "gnorm_lora": 0.1261, "sup_valid_tok": 3058, "ret_valid_tok": 7511, "tok_per_s": 520.5, "direct_nll_base_t1": 0.06926, "direct_nll_t2": 0.10009, "direct_nll_anchor_only_t2": 0.07285, "direct_nll_t3": 0.0929, "direct_loop_gain_t2": -0.03083, "direct_state_gain_t2": -0.02724, "direct_loop_gain_t3": -0.02364, "direct_state_gain_t3": -0.02005, "kl_vs_alesha_t2": 0.001425, "stop_vs_alesha_t2": 0.0, "kl_vs_alesha_t3": 0.001536, "stop_vs_alesha_t3": 0.0}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ "format": "looped-qwen4-exp-v1", "version": 1, "step": 24, "sha256": "ea409d32aec66cb603d0c7f4f47a63f858b9605e38d1c81df0fd557342b5d096", "num_tensors": 730, "num_parameters": 33177472, "loop_config": { "core_start": 16, "core_end": 32, "num_passes": 3, "max_passes": 8, "max_trained_passes": 3, "hc_count": 4, "hidden_size": 2560, "entry_rank": 128, "mixer_rank": 128, "mixer_layers": [ 19, 23, 27, 31 ], "lora_rank": 16, "lora_alpha": 32.0, "coda_lora_rank": 16, "coda_lora_layers": 8, "gate_lora_rank": 8, "per_pass_conditioning": true, "fp32_lora_eval": false, "grad_checkpoint": true, "loop_cd_omega": 0.15, "loop_cd_ref": "first", "loop_cd_rms_match": true }, "val": { "nll_base_t1": 0.6324842376709346, "nll_t2": 0.6073319100879792, "nll_anchor_only_t2": 0.623984344802841, "nll_t3": 0.6088061021793397, "loop_gain_t2": 0.02515232758295549, "state_gain_t2": 0.016652434714861886, "loop_gain_t3": 0.02367813549159492, "state_gain_t3": 0.015178242623501315 }, "recipe": "sft_v2.1_sqrt_ce"}123version https://git-lfs.github.com/spec/v1oid sha256:ea409d32aec66cb603d0c7f4f47a63f858b9605e38d1c81df0fd557342b5d096size 1327906881234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ "format": "looped-qwen4-exp-v1", "version": 1, "step": 24, "sha256": "a05deb7fbcf975ab3ba8f1f69467039807424668302638f556b05fb1508f4cba", "num_tensors": 854, "num_parameters": 69232256, "loop_config": { "core_start": 16, "core_end": 32, "num_passes": 4, "max_passes": 8, "max_trained_passes": 9, "hc_count": 4, "hidden_size": 2560, "entry_rank": 128, "mixer_rank": 128, "mixer_layers": [ 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 ], "lora_rank": 16, "lora_alpha": 32.0, "coda_lora_rank": 16, "coda_lora_layers": 8, "gate_lora_rank": 16, "coda_gate_lora_rank": 16, "per_pass_conditioning": true, "fp32_lora_eval": false, "grad_checkpoint": true, "s_hat_mode": "mul_ref_rms", "mixer_source": "core_exit", "loop_cd_omega": 0.0, "loop_cd_ref": "prev", "loop_cd_rms_match": true, "loop_cd_rms_mode": "global" }, "recipe": "option2_frozen_scaffold_continual_merge_v31", "selected_from": "ckpt_merge_0024.safetensors", "best_direct_nll_avg": 0.0965, "base_adapter": "alesha-pro/Looped-Qwen3.8-Flash-Next:ckpt_final.safetensors"}123version https://git-lfs.github.com/spec/v1oid sha256:a05deb7fbcf975ab3ba8f1f69467039807424668302638f556b05fb1508f4cbasize 277023976LICENSEAdded+21
README.mdAdded+142
SHA256SUMSAdded+13
ckpt_final.jsonAdded+34
ckpt_final.safetensorsAdded+3
export_mlx_serve_loop.pyAdded+162
mlx/merged_v31_t2/loop_adapter_mlx.jsonAdded+40
mlx/merged_v31_t2/loop_adapter_mlx.safetensorsAdded+3
mlx/merged_v31_t3/loop_adapter_mlx.jsonAdded+40
mlx/merged_v31_t3/loop_adapter_mlx.safetensorsAdded+3
mlx/sft_v21_t3/loop_adapter_mlx.jsonAdded+28
mlx/sft_v21_t3/loop_adapter_mlx.safetensorsAdded+3
results/final_paired_scorecards_2026-12-01.jsonAdded+373
results/merge_v31_metrics.jsonlAdded+25
sft_v21_direct/ckpt_0024.jsonAdded+47
sft_v21_direct/ckpt_0024.safetensorsAdded+3
v1/ckpt_merged_v1.jsonAdded+56
v1/ckpt_merged_v1.safetensorsAdded+3