Run this model with HF Jobs
Run SV212/Qwen3.6-35B-A3B-Looped 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/SV212/Qwen3.6-35B-A3B-Looped. 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/SV212/Qwen3.6-35B-A3B-Looped 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 SV212/Qwen3.6-35B-A3B-Looped with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use SV212/Qwen3.6-35B-A3B-Looped with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("/content/hf-model") model = PeftModel.from_pretrained(base_model, "SV212/Qwen3.6-35B-A3B-Looped") - Notebooks
- Google Colab
- Kaggle
Qwen3.6-35B-A3B Loop-V3
LoRA adapter for a layer-looped Qwen/Qwen3.6-35B-A3B.
Inner layers 12-27 are executed three times with learned per-block gates
(0.39023, 0.2784), turning the 40-layer model into a 72-effective-layer model at ~1.4x the
decode cost. The adapter (band r256, outer r64, router r64) was trained for 600 steps on the
looped graph (seq 8192, lr 8e-6, gate lr 1e-3, BF16, gradient checkpointing).
What's in this repo
| File | What |
|---|---|
adapter_model.safetensors |
PEFT LoRA — attention + shared-expert MLP on the loop band (673 MB) |
router_weights.safetensors |
unfrozen MoE router deltas (84 MB) |
adapter_config.json |
PEFT config |
gates.txt |
learned loop gates |
tokenizer*, chat_template.jinja |
tokenizer used at training time |
train_log.jsonl, train_meta.json |
full training log and stage-3 config |
Results
Stock UD-Q4_K_XL vs loop + adapter, same engine build/slots/KV, same sampling per benchmark.
Token volume = prompt + completion tokens for that run. Snapshot 2026-12-02 22:17 CST.
| Benchmark | Config & sampling | Base (stock Q4, no loop) | Loop-V3 (step600, native loop) |
|---|---|---|---|
| HumanEval (164) | 65,536 ctx/slot · max 8,192 out · greedy (T=0) | 155/164 (94.5%) · 426k tok | 154/164 (93.9%) · 281k tok · avg 1.5k |
| LCB test6 (40) | 65,536 · max 60,000 · T=0.6, top_p 0.95, top_k 20, thinking ON | 27/40 (67.5%) · 1.53M tok · avg 37.7k | 35/40 (87.5%) · 1.10M tok · avg 27.0k |
| AIME 2026 (30) | 65,536 · max 60,000 · T=1.0, pres=1.5, top_p 0.95, top_k 20 | 27/30 (90.0%) · 1.04M tok · avg 34.6k | 28/30 (93.3%) · 879k tok · avg 29.2k |
| HMMT Feb 2026 (33) | 65,536 · max 60,000 · T=1.0, pres=1.5, top_p 0.95, top_k 20 | 26/33 (78.8%) · 1.33M tok · avg 40.1k | 28/33 (84.8%) · 1.19M tok · avg 36.0k |
| Terminal-Bench 2.1 (89) | Docker · mini-swe-agent | cancelled | cancelled |
| SWE-bench Lite (300) | Docker · 8 workers | cancelled | cancelled |
Using it
The adapter is only meaningful on the looped graph, so it needs a llama.cpp build with
QWEN_LOOP_NATIVE support (or the matching HF loop patch). Export the adapter to GGUF with
convert_lora_to_gguf.py from the patched llama.cpp tree, then:
QWEN_LOOP_NATIVE=1 QWEN_LOOP_GATES="0.39023,0.2784" \
llama-server -m Qwen3.6-35B-A3B-UD-Q4_K_XL-v3-f16dense.gguf \
--lora <exported-step600-lora>.gguf \
-c 524288 -np 8 --kv-unified --kv-unified-per-slot 65536 \
-ctk q8_0 -ctv q8_0 -fa on --split-mode tensor
PEFT form: load the base model, apply the loop transform to layers 12-27 with the gates above,
then PeftModel.from_pretrained(base, "SV212/Qwen3.6-35B-A3B-Looped") and re-apply the router
deltas from router_weights.safetensors.
Only the final step-600 adapter is published (757 MB total: 673 MB adapter + 84 MB routers); the earlier step-200 checkpoint is not distributed.
Code, scripts and raw per-problem results: https://github.com/saatvik-viniak/qwen36-loop-v3
Citation
@software{viniak2026qwen36loopv3,
author = {Viniak, Saatvik},
title = {{Qwen3.6-35B-A3B Loop-V3}: Layer Looping with a Trained LoRA Adapter},
year = {2026},
month = {12},
url = {https://github.com/saatvik-viniak/qwen36-loop-v3},
note = {Adapter: https://huggingface.co/SV212/Qwen3.6-35B-A3B-Looped}
}
Please also cite the base model: Qwen/Qwen3.6-35B-A3B (Apache-2.0).
Hardware
Trained and served on 3x Tesla V100-PCIE-16GB (sm_70) with a patched llama.cpp; cross-checked on an A100 80 GB.
- Downloads last month
- 50
Model tree for SV212/Qwen3.6-35B-A3B-Looped
Base model
Qwen/Qwen3.6-35B-A3B