--- license: apache-2.0 base_model: - Qwen/Qwen4-35B-A3B - Qwen/Qwen4-35B-A3B-FP8 tags: - qwen4 - qwen4_moe - looped-transformer - test-time-compute - pure-recurrence - long-context - 1m-context - filmier - vllm - mlx - hibana library_name: vllm --- # Filmier-Qwen4-35B-A3B-Looped (Apache-2.0) **Pure-Recurrence Wider-Core (`20L`, `L12..31`, 5 QSA Mixers) Looped Transformer Adapter for `Qwen/Qwen4-35B-A3B` (`Qwen/Qwen4-35B-A3B-FP8`)** — trained with **zero base-weight drift** and **zero active LoRA weights** (`lora_b == 0.0`, 100% frozen Qwen4 weights, `28.64M` pure workspace-entry + cross-pass boundary mixer weights), plus pre-exported **Hibana / Sushi / MLX sidecars** for `T=2` (`60L`), `T=3` (`80L`), and `T=4` (`100L`). Part of the **Filmier** open-source Apache-2.0 AI Filmmaking Model Ecosystem: - **General Pure-Recurrence `20L` Looped Core (this repo):** `ModelsLab/Filmier-Qwen4-35B-A3B-Looped` — strongest on hard math (`93.33%` AIME 2025), coding (`61.67%` LiveCodeBench v6), real multimodal video (`58.89%` Video-MME, `+5.56 pp`), human story taste (`60.0%` LitBench), and verified **`100.0%` `8K → 1,000K (1M)` context recall with `0.0%` hallucination**. - **Specialized Screenwriting, Creative Fiction & Directing:** [`ModelsLab/Filmier-Qwen4-35B-A3B-Director`](https://huggingface.co/ModelsLab/Filmier-Qwen4-35B-A3B-Director) — continual SFT warm-started from `20L` (`95.0%` theatrical screenplay writing, `60.0%` anti-robotic creative fiction, `75.0%` 14-pt H3 shotlists, `91.67%` BFCL, zero catastrophic forgetting). - **Composable Native Audio Backbone (` 1M cliff, hallucination & compaction report + JSONs patches/modeling_looped_qwen4_exp_patched.py # Multi-shard VLM loader fix for LoopedQwen4MoeForConditionalGeneration scorecards/ # Complete 16-suite JSON scorecards, MTP bench & Stage 8 audio-composability proof ``` ```bash export VLLM_LOOPED_CKPT=/path/to/20L/ckpt_best_alesha_v3.safetensors export VLLM_LOOPED_NUM_PASSES=2 # 2 (60L fast+93.3% AIME), 3 (80L), or 4 (100L max video/coding/taste) export VLLM_LOOPED_CD_OMEGA=0.0 # or 0.15 for T=3/T=4 LoopCD vllm serve Qwen/Qwen4-35B-A3B-FP8 \ --trust-remote-code \ --kv-cache-dtype fp8 \ --hf-overrides '{"architectures":["LoopedQwen4MoeForCausalLM"]}' \ --worker-extension-cls vllm_looped_qwen38.worker_ext.LoopedWorkerExtension \ --compilation-config '{"mode":0,"cudagraph_mode":"FULL_DECODE_ONLY"}' \ --additional-config '{"gdn_prefill_backend":"triton"}' \ --attention-config '{"indexer_kv_dtype":"fp8"}' \ --engram-config '{"cpu_offload":false}' \ --speculative-config '{"method":"mtp","num_speculative_tokens":3}' ``` For multimodal video (`LoopedQwen4MoeForConditionalGeneration`), apply `patches/modeling_looped_qwen4_exp_patched.py` to fix upstream multi-shard safetensors `SlicedLoRALinear` initialization. --- ## License & Attribution - **License:** Apache-2.0 - **Base Model:** [`Qwen/Qwen4-35B-A3B`](https://huggingface.co/Qwen/Qwen4-35B-A3B) (Alibaba Qwen Team) - **Looped Transformer Framework & Reference:** [`jasontitus/loopedqwen`](https://github.com/jasontitus/loopedqwen), [`jasontitus/loopedqwen-next`](https://github.com/jasontitus/loopedqwen-next), and [`sliderforthewin/Looped-Qwen4-35B-A3B`](https://huggingface.co/sliderforthewin/Looped-Qwen4-35B-A3B) - **Companion Ecosystem Models:** [`ModelsLab/Filmier-Qwen4-35B-A3B-Director`](https://huggingface.co/ModelsLab/Filmier-Qwen4-35B-A3B-Director) | [`ModelsLab/Filmier-Qwen4-35B-A3B-Audio`](https://huggingface.co/ModelsLab/Filmier-Qwen4-35B-A3B-Audio)