Run this model with HF Jobs

Run ModelsLab/Filmier-Qwen4-35B-A3B-Director 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/ModelsLab/Filmier-Qwen4-35B-A3B-Director. 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/ModelsLab/Filmier-Qwen4-35B-A3B-Director 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.

Filmier-Qwen4-35B-A3B-Director (Apache-2.0)

Specialized 20L Looped Transformer Adapter (L12..31, 5 QSA Mixers, 28.64M params) for Maximum-Quality Theatrical Screenplay Writing, Anti-Robotic Creative Fiction, Cinematography/Shotlist Directing, and Multimodal Video Understanding on Qwen/Qwen4-35B-A3B (Qwen/Qwen4-35B-A3B-FP8) β€” 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:


Training Recipe (Strictly Open, Zero-Contaminated, Apache-2.0 Clean)

Filmier-Director was warm-started from our Pure-Recurrence 20L checkpoint (L12..31, 5 QSA cross-pass mixers [15, 19, 23, 27, 31], delta_rms_match=True) and continual-trained for 60 steps (lam_kl=0.40, lora_lr=1.2e-5, T ∈ {2, 3, 4}) on 981 Boundary-12 anchor traces (2.65M tokens):

  • 491 verified on-policy filmmaking & writing traces rejection-sampled strictly from open training splits (100% disjoint from all evaluation splits):
    • 136 Theatrical Screenplay Scenes (rohitsaxena/MovieSum train.jsonl summaries β€” Hollywood sluglines, physical blocking, dialogue economy, zero AI-slop)
    • 85 Anti-Robotic Creative Fiction Stories (SAA-Lab/LitBench-Train rows[4000:] β€” zero AI-slop clichΓ©s, sentence-length rhythm variance, concrete sensory texture)
    • 60 Screenplay β†’ H3/FLUX Shotlists (MovieSum train.jsonl β€” 14-point director craft rubric)
    • 138 Human Story Taste Critiques (LitBench-Train rows[4000:] β€” verified against real human preference labels)
    • 72 Multi-Shot Editorial & Cinematography Breakdowns (mhan/Shot2Story-20K train)
  • 550 general KL-replay traces (math, coding, tool calling, bugfix, narrative comprehension) to prevent catastrophic forgetting.

Monotonic Multi-Pass Validation Scaling

Warm-starting from 20L boosted held-out multi-pass validation loop gain by +25.3% (+0.00971 at step 0 β†’ +0.01217 at step 60), strictly monotonic across T=1 β†’ 2 β†’ 3 β†’ 4:

Depth Effective Layers Val NLL Loop Gain vs T=1 State Gain (vs anchor-only)
T=1 (base) 40L 0.46192 β€” β€”
T=2 60L 0.45028 +0.01164 +0.00945
T=3 80L 0.45019 +0.01174 β€”
T=4 100L 0.44975 +0.01217 β€”

Comprehensive Benchmarks (ALL reasoning_effort="xhigh", Native MTP k=3)

Evaluated identically on 1Γ— NVIDIA RTX PRO 6000 Blackwell (Qwen/Qwen4-35B-A3B-FP8, reasoning_effort="xhigh"):

1. Held-Out Scriptwriting, Creative Fiction & Director Craft

Benchmark Suite stock_t1 (40L) f20L_t4 (100L, general) dir_t2 (60L) dir_t4 (100L, Recommended) Delta (dir_t4 vs Stock)
Theatrical Screenplay Writing (MovieSum test, n=20) 80.0% (86.9c, 10% trunc) 65.0% (65.0c, 35% trunc) 85.0% (88.8c, 10% trunc) 95.0% (95.0c, 5% trunc) +15.0 pp (+30.0 pp vs f20L_t4)
Anti-Robotic Creative Fiction (LitBench [:4000], n=20) 45.0% (42.9c, 55% trunc) 45.0% (45.0c, 55% trunc) 50.0% (49.3c, 50% trunc) 60.0% (60.0c, 40% trunc) +15.0 pp (detail 30% β†’ 60%)
Screenplay β†’ H3 Shotlists (14-pt rubric, n=20) 85.0% (82.5c, 10% trunc) 55.0% (53.6c, 45% trunc) 60.0% (57.5c, 40% trunc) 75.0% (74.3c, 25% trunc) -10.0 pp vs stock / +20.0 pp vs f20L_t4
LitBench Human Story Taste (n=40) 50.0% 60.0% 55.0% 57.5% +7.5 pp

Rule highlights on screenplay_writing_test (dir_t4): 95.0% pass across every rule (dialogue_economy, physical_sensory_staging, rhythmic_cadence, sufficient_dialogue_turns, valid_slugline, zero_ai_slop, no_markdown_meta, good_length), cutting thinking-cap truncation in half vs stock (10% β†’ 5%) and 7Γ— vs general f20L_t4 (35% β†’ 5%).
Honest trade-off on Screenplay β†’ H3 Shotlists: Every non-truncated dir_t4 completion passes the 14-point rubric cleanly (restated_floor_plan jumped 40% β†’ 70% vs f20L_t4), though dir_t4 still uses ~1.35K more reasoning tokens than stock_t1 on dense multi-shot JSON (25% vs 10% truncation at the 16K eval cap β€” use max_tokens >= 20480 in production for 0% truncation).

2. Multimodal Video, Long-Story & Core Capability Sanity (Zero Catastrophic Forgetting)

Benchmark Suite stock_t1 (40L) dir_t2 (60L) dir_t4 (100L) Best dir Delta vs Stock
Video-MME Real (n=90, 24 frames, no subs) 53.33% 52.22% 56.67% +3.34 pp
Video-NIAH Retrieval (n=30) 96.67% 100.00% 100.00% +3.33 pp (30/30)
VideoFeedback AI-Video Critique (30 .mp4s, pairwise) 93.70% (r=0.651) 77.17% (r=0.417) 89.37% (r=0.583) -4.33 pp (30/30 parsed)
Story Continuity Bench (n=40) 100.00% 100.00% 100.00% 0.00 pp (40/40)
LongBench-v2 Story 128K (n=37) 43.24% 45.95% 37.84% +2.71 pp (at T=2)
NarrativeQA Test F1 (n=24) 15.39% 14.26% 18.49% +3.10 pp F1 (at T=4)
BFCL Tool Calling (n=120) 89.17% 91.67% 91.67% +2.50 pp
AIME 2025 (n=30) 86.67% 90.00% 86.67% +3.33 pp (at T=2)
LCB-Hard All-33 (n=33) 30.30% 27.27% 30.30% 0.00 pp (0 forgetting)

Recommended Depth Selection:

  • T=4 (100L) for maximum creative/scriptwriting quality (95% screenplay writing, 60% creative fiction, 75% H3 shotlists, 57.5% human taste, 56.67% Video-MME, 18.49% NarrativeQA F1).
  • T=2 (60L) for fast interactive iteration, 128K detective/story QA (45.95% LongBench-v2), and math/tool agents (90.0% AIME 2025, 91.67% BFCL, 183.8 tok/s single-user with MTP k=3).

Native Qwen4 MTP Speculative Decoding (1.67×–1.84Γ— Speedup)

Because Qwen4 ships with a built-in Qwen4ExpMTP draft head (wired directly into _LoopedQwen4Model._mtp_hidden_buffer), speculative decoding accelerates 100L T=4 to be faster than un-accelerated 60L T=2:

Configuration (1Γ— RTX PRO 6000 Blackwell) Batch=1 Decode Speedup Batch=8 Decode Cold Init
20L T=2 (60L), No MTP, CPU PLE 110.3 tok/s 1.00Γ— 385.0 tok/s 96.8s
20L T=2 (60L), MTP k=3, GPU PLE (cpu_offload=False) 183.8 tok/s 1.67Γ— 523.9 tok/s 52.8s
20L T=4 (100L), No MTP, CPU PLE 63.8 tok/s 1.00Γ— 254.8 tok/s 79.3s
20L T=4 (100L), MTP k=3, CPU PLE 117.2 tok/s 1.84Γ— 331.3 tok/s 88.8s

Quick Start (vLLM + Native MTP k=3)

Requires the vllm_looped_qwen38 vLLM plugin and a Qwen4-compatible vLLM build (vllm/vllm-openai:qwen4):

export VLLM_LOOPED_CKPT=/path/to/ckpt_best_alesha_v3.safetensors
export VLLM_LOOPED_NUM_PASSES=4      # 4 (100L max writing/directing quality) or 2 (60L fast)
export VLLM_LOOPED_CD_OMEGA=0.0

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}'

Multimodal Video Inference Note (patches/modeling_looped_qwen4_exp_patched.py)

For multimodal image/video serving (LoopedQwen4MoeForConditionalGeneration), we include patches/modeling_looped_qwen4_exp_patched.py, which fixes an upstream multi-shard safetensors loading bug where load_loop_adapters() wrapped SlicedLoRALinear before all shards had loaded (deferring adapter loading until super().load_weights(weights) completes).

Apple Silicon (MLX / Hibana / Sushi)

Point your sidecar loader directly to hibana_sidecars/filmier_director_t4/ (100L), filmier_director_t3/ (80L), or filmier_director_t2/ (60L).

Joint Composability with Native Audio (Stage 8 Verified)

Verified end-to-end (scorecards/stage8_joint_verify_director.json: STATUS: JOINT_LOOP_AUDIO_OK): Filmier-Director (L12..31) composes cleanly with ModelsLab/Filmier-Qwen4-35B-A3B-Audio v4 (<L0 Conv1D projector + 75 L0..L11 Prelude LoRA layers) across T=1/2/3 with zero layer or parameter overlap.


License & Attribution

Downloads last month

-

Downloads are not tracked for this model. How to track
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for ModelsLab/Filmier-Qwen4-35B-A3B-Director

Finetuned
(200)
this model