loop-Qwen3.8-27B-FP8 (LoopUS Adapter)

Recurrent-Depth Latent Reasoning (LoopUS) Adapter for Qwen3.8-27B-FP8


Architecture Overview

This adapter equips the frozen 64-layer FP8 Qwen3.8-27B-FP8 backbone (hybrid GatedDeltaNet + Full Attention) with a 16-layer Recurrent Reasoning Core (Layers 24–39) controlled by input-dependent selective residual gates (in_gate, out_gate), step embeddings (step_embed), and shared Core LoRA (r=16, alpha=32).

  • Zero modification to base FP8 weights: The original FP8 weights remain completely untouched.
  • Native SGLang FP8 Serving: Runs with native FP8 kernels, independent per-pass RadixAttention KV caches & GatedDeltaNet recurrent states, Radix Prefix Caching, and CUDA Graphs (~390 tok/s at K=3 on 1Γ— 96 GB GPU, verified bit-level parity against PyTorch).

Benchmark Highlights (Qwen3.8-27B-FP8, K=3 vs Base K=1)

Benchmark Base Qwen3.8-27B-FP8 loop-Qwen3.8-27B-FP8 (K=3) Delta
BeyondAIME (100, Olympiad Math, think=True, 4k) 12.00% 16.00% +4.00 pp (+33% rel)
LiveCodeBench v6 Hard (80, think=False) 12.50% 15.00% +2.50 pp
BigCodeBench-Hard (Env-Valid 123) 30.89% 32.52% +1.63 pp
LiveCodeBench v6 Medium (52, think=True, 4k) 42.31% 42.31% +0.00 pp
HLE-Text-MC (513, 100% OOD Direct) 12.48% (lp=-3.24) K2 13.06% (Ξ”lp +0.66) +0.58 pp
SuperGPQA-Hard (1,000, Held-Out Direct) 23.10% (lp=-2.27) LoopCD_K2 24.20% (Ξ”lp +0.14) +1.10 pp

Quickstart: Serve with SGLang

# 1. Clone the repository & apply the one-time SGLang LoopUS patch
git clone https://github.com/yhfgyyf/looped-Qwen3.8-Qwen4.git
cd looped-Qwen3.8-Qwen4
SGLANG_DIR=/path/to/sglang bash scripts/apply_sglang_patch.sh

# 2. Download this adapter from HuggingFace
huggingface-cli download yhfgyyf/loop-Qwen3.8-27B-FP8 loopus_adapter.pt --local-dir ./checkpoints

# 3. Launch the OpenAI-compatible SGLang K=3 server
MODEL_DIR=/path/to/Qwen3.8-27B-FP8 \
CKPT_PATH=./checkpoints/loopus_adapter.pt \
LOOP_K=3 PORT=30028 \
bash scripts/serve_sglang.sh

# 4. Test chat completion
python3 scripts/chat_demo.py --url http://127.0.0.1:30028 --thinking \
  --prompt "Prove that there are infinitely many primes congruent to 3 mod 4."

Files in This Repository

  • loopus_adapter.pt β€” LoopUS adapter weights (config + 213 tensors: in_gate, out_gate, step_embed, Core LoRA r=16 on L24–L39)
  • adapter_config.json β€” Human-readable adapter configuration metadata
  • LICENSE β€” Apache-2.0 License
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for yhfgyyf/loop-Qwen3.8-27B-FP8

Base model

Qwen/Qwen3.8-27B
Finetuned
(13)
this model