Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
YouTube Security VideosVisual Studio Code: VS Code Learn: Extending Agents(24.09.2026 um 21:00 Uhr)
•
YouTube Security VideosGoogle Cloud Tech: Turn Audio into Action with Gemini 3.5 Transcribe(24.09.2026 um 21:00 Uhr)
••••
Unix & Linux ServerUSN-8815-1: libass vulnerabilities(24.09.2026 um 16:57 Uhr)
•••••
YouTube Security VideosVisual Studio Code: VS Code Learn: Extending Agents(24.09.2026 um 21:00 Uhr)
•
YouTube Security VideosGoogle Cloud Tech: Turn Audio into Action with Gemini 3.5 Transcribe(24.09.2026 um 21:00 Uhr)
••••
Unix & Linux ServerUSN-8815-1: libass vulnerabilities(24.09.2026 um 16:57 Uhr)
•••••
Intelligence View
⚡ tsecurity.de Intelligence

Boosting Wan2.2 I2V Inference on 8 H100s — 2.5 Faster with Sequence Parallelism & Magcache

Author: Muhammad Ali Afridi, Morphic Date: November 2025 Originally published on the Morphic Blog. Reposted here with permission. If you’re working on diffusion-based video models and want faster inference, this guide covers o…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

 Author: Muhammad Ali Afridi, Morphic



Date: November 2025



Originally published on the Morphic Blog. Reposted here with permission.






If you’re working on diffusion-based video models and want faster inference, this guide covers optimizations we used to boost Wan2.2 by 2.5×.






Introduction



Open-source video generation models like Wan2.1 and Wan2.2 are closing the gap with closed-source systems. However, inference speed remains a bottleneck for real-time deployment.



In this post, we share how we accelerated Wan2.2’s image-to-video (I2V) inference pipeline using several optimization techniques.



The result: 2.5× faster performance on 8× NVIDIA H100 GPUs.



This work is part of Morphic’s ongoing effort to optimize diffusion-based video generation pipelines. You can find the detailed benchmarks and results on Morphic’s official blog.









Experiment Setup





  • Hardware: 8× NVIDIA H100 (80 GB)


  • Resolution: 1280×720


  • Frames: 81


  • Steps: 40


  • Framework: PyTorch with FSDP and custom parallelism



Clone the repository to get started: https://github.com/morphicfilms/wan2.2_optimizations.git









1. Baseline — Flash Attention 2



Default Wan2.2 with Flash Attention 2 took 250.7 seconds to generate one 81-frame 720p video on 8xH100.




torchrun --nproc_per_node=8 generate.py \
--task i2v-A14B --size 1280*720 \
--ckpt_dir ./Wan2.2-I2V-A14B \
--image examples/i2v_input.JPG \
--dit_fsdp --t5_fsdp --ulysses_size 8 \
--prompt "Summer beach vacation style, a white cat wearing sunglasses sits on a surfboard..."






This baseline serves as the reference for all further optimizations.









2. Flash Attention 3 — +1.28x Speedup



Hopper GPUs perform significantly better with Flash Attention 3.



Install it separately:




git clone https://github.com/Dao-AILab/flash-attention.git
cd flash-attention && pip install wheel
cd hopper && python setup.py install







Re-running inference yields 195.13 seconds, a 1.28× speedup, with no quality loss.









3. TensorFloat32 Tensor Cores — +1.57x Speedup



Enable TF32 matmul and convolution acceleration:




torch.backends.cuda.matmul.allow_tf32 = True
torch.backends.cudnn.allow_tf32 = True







Or use the flag --tf32 True.



This reduces inference time to 159.55 seconds (1.57× faster).









4. Quantization (int8_weight_only)



Quantization allows both low-noise and high-noise models to fit on a single GPU, eliminating FSDP overhead.




pip install -U torchao






And then use the flag --quantize True.



Result: 170.24 seconds (1.47× speedup).



TF32 has no effect here because matrix multiplies are now in int8.









5. Magcache — Smarter Diffusion Caching



We extended Magcache for multi-GPU use. Using parameters E012K2R20 (threshold 0.12, K = 2, retention = 0.2) balanced quality and performance.



To enable and use magcache, pass in additional parameters:




--use_magcache --magcache_K 2 \
--magcache_thresh 0.12 --retention_ratio 0.2







Performance: 157.1 seconds (1.6×), and 121.56 seconds (1.97×) when combined with TF32.









6. Torch Compile — Autotuned Kernels



Enable torch.compile with "max-autotune-no-cudagraphs" mode by passing:




--compile True --compile_mode "max-autotune-no-cudagraphs"










Benchmarks

































Optimization Combo Time (s) Speedup
FA3 + Compile 172.87 1.45×
FA3 + TF32 + Compile 142.73 1.76×
FA3 + Quant + Compile 142.40 1.76×
FA3 + TF32 + Magcache + Compile 109.81 2.28×


Pushing Magcache parameters (E024K2R10) achieves 98.87 seconds (2.53×) but introduces slight artifacts.









Final Results




























Configuration Time (s) Speedup
Baseline (FA2) 250.7 1.0×
FA3 + TF32 + Magcache + Compile 109.8 2.28×
Aggressive (E024K2R10) 98.9 2.53×








Conclusion



These optimizations collectively cut Wan2.2 I2V inference time by more than half, without any quality degradation.



Such improvements bring open-source diffusion models closer to real-time video generation on modern GPUs.



Special thanks to Modal for powering our multi-GPU inference setup.









References




  1. Wan2.1 Repository

  2. Wan2.2 Repository

  3. PyTorch CUDA Docs

  4. FSDP API

  5. TorchAO Quantization

  6. Magcache Paper

  7. Torch Compile Tutorial






Tags: #pytorch #deeplearning #gpu #videogeneration #opensource






Written by Muhammad Ali Afridi — ML Engineer at Morphic, building next-gen generative video systems.

SOC Incident Playbook: Remote Code Execution (RCE) Defense
Syntax validiert (0 Fehler)
title: Detect Exploitation - Boosting Wan2.2 I2V Inference on 8 H100s — 2.5 Faster with Sequence Parallelism & Magcache
id: feb34c29-081b-4986-aa8b-2316cd9d4b23
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-24
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
Syntax validiert (0 Fehler)
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-24"
        description = "YARA Signature for "
    strings:
        $str = "Boosting Wan2.2 I2V Inference " ascii wide
    condition:
        any of them
}
Syntax validiert (0 Fehler)
index=security sourcetype IN ("cisco:asa", "pan:traffic", "zeek_conn", "suricata", "WinEventLog:Security")
("Boosting Wan22 I2V Inference on 8 H100s ")
| stats count earliest(_time) as first_seen latest(_time) as last_seen by src_ip, dest_ip, dest_host, signature
| eval first_seen=strftime(first_seen, "%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen, "%Y-%m-%d %H:%M:%S")
| sort - count
Syntax validiert (0 Fehler)
message: "*Boosting Wan22 I2V Inference on 8 H100s *"
Syntax validiert (0 Fehler)
CommonSecurityLog
| where Message has "Boosting Wan22 I2V Inference on 8 H100s "
| summarize EventCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, DestinationIP, DestinationPort, Activity
| extend DetectionRule = "iShareStuff-CTI-Compiled"
| sort by EventCount desc
🎯
MITRE ATT&CK Matrix Navigator 14 Taktiken
Reconnaissance
-
Resource Development
-
Initial Access
Execution
Persistence
-
Privilege Escalation
Defense Evasion
Credential Access
-
Discovery
-
Lateral Movement
-
Collection
-
Command and Control
Exfiltration
-
Impact
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich Boosting Wan2.2 I2V Inference on 8 H100s.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

⚡ Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Boosting Wan2.2 I2V Inference on 8 H100s — 2.5 Faster with Sequence Parallelism & Magcache

Thematisch verwandte Begriffe: Boosting, Wan22, Inference, H100s · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-61823 | code16 Sharp is a Laravel-based framework for building content-managemen…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel • Rechts: nächster Artikel • unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel TTP ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...
↗ Original-Quelle