Views
No views yet
[!NOTE] This README has been auto-generated by the HF Job run linked below and the whole repository is a reproducible artifact of this Job
torch.compile needed)1
2import spaces
3import torch
4from diffusers import FlowMatchEulerDiscreteScheduler
5from diffusers.pipelines.wan.pipeline_wan_i2v import WanImageToVideoPipeline
6from diffusers.models.transformers.transformer_wan import WanTransformer3DModel
7from torchao.quantization import quantize_
8from torchao.quantization import Float8DynamicActivationFloat8WeightConfig
9from torchao.quantization import Int8WeightOnlyConfig
10
11pipeline = WanImageToVideoPipeline.from_pretrained(
12 'Wan-AI/Wan2.2-I2V-A14B-Diffusers',
13 transformer=WanTransformer3DModel.from_pretrained('cbensimon/Wan2.2-I2V-A14B-bf16-Diffusers',
14 subfolder='transformer',
15 torch_dtype=torch.bfloat16,
16 device_map='cuda',
17 ),
18 transformer_2=WanTransformer3DModel.from_pretrained('cbensimon/Wan2.2-I2V-A14B-bf16-Diffusers',
19 subfolder='transformer_2',
20 torch_dtype=torch.bfloat16,
21 device_map='cuda',
22 ),
23 torch_dtype=torch.bfloat16,
24)
25pipeline.scheduler = FlowMatchEulerDiscreteScheduler.from_config(pipeline.scheduler.config, shift=8.0)
26pipeline.to('cuda')
27
28quantize_(pipeline.text_encoder, Int8WeightOnlyConfig())
29quantize_(pipeline.transformer, Float8DynamicActivationFloat8WeightConfig())
30quantize_(pipeline.transformer_2, Float8DynamicActivationFloat8WeightConfig())
31
32spaces.aoti_load(
33 module=pipeline.transformer,
34 repo_id='cbensimon/WanTransformer3DModel-sm120-cu130-rc8',
35)1# Install hf CLI
2curl -LsSf https://hf.co/cli/install.sh | bash
3
4# Login
5hf auth login
6
7# Get the job file and edit (user section) if needed
8hf download cbensimon/WanTransformer3DModel-sm120-cu130-rc8 job.py --local-dir .
9
10# Run the job and change flavor or image if needed
11hf jobs uv run job.py \
12 --flavor rtx-6000 \
13 --image pytorch/pytorch:2.11.0-cuda13.0-cudnn9-devel \
14 --secrets HF_TOKENOUTPUT_REPO_NAMESPACE: taken from HF_TOKEN otherwiseOUTPUT_REPO_BASE_NAME: defaults to module class nameOUTPUT_REPO_ID: fully overtakes name generationPyTorch version: 2.11.0+cu130
Is debug build: False
CUDA used to build PyTorch: 13.0
ROCM used to build PyTorch: N/A
OS: Ubuntu 24.04.4 LTS (x86_64)
GCC version: (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0
Clang version: Could not collect
CMake version: version 4.2.3
Libc version: glibc-2.39
Python version: 3.10.20 (main, Mar 10 2026, 18:16:33) [Clang 21.1.4 ] (64-bit runtime)
Python platform: Linux-6.17.0-1013-aws-x86_64-with-glibc2.39
Is CUDA available: True
CUDA runtime version: 13.0.88
CUDA_MODULE_LOADING set to:
GPU models and configuration: GPU 0: NVIDIA RTX PRO 6000 Blackwell Server Edition
Nvidia driver version: 595.58.03
cuDNN version: Could not collect
Is XPU available: False
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
Caching allocator config: N/A
CPU:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 46 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 192
On-line CPU(s) list: 0-191
Vendor ID: GenuineIntel
Model name: Intel(R) Xeon(R) Platinum 8559C
CPU family: 6
Model: 207
Thread(s) per core: 2
Core(s) per socket: 48
Socket(s): 2
Stepping: 2
BogoMIPS: 4800.00
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq monitor ssse3 fma cx16 pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault ssbd ibrs ibpb stibp ibrs_enhanced fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves avx_vnni avx512_bf16 wbnoinvd ida arat avx512vbmi umip pku ospke waitpkg avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg tme avx512_vpopcntdq rdpid cldemote movdiri movdir64b md_clear serialize amx_bf16 avx512_fp16 amx_tile amx_int8 flush_l1d arch_capabilities
Hypervisor vendor: KVM
Virtualization type: full
L1d cache: 4.5 MiB (96 instances)
L1i cache: 3 MiB (96 instances)
L2 cache: 192 MiB (96 instances)
L3 cache: 640 MiB (2 instances)
NUMA node(s): 2
NUMA node0 CPU(s): 0-47,96-143
NUMA node1 CPU(s): 48-95,144-191
Vulnerability Gather data sampling: Not affected
Vulnerability Ghostwrite: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Old microcode: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Mitigation; Enhanced / Automatic IBRS; IBPB conditional; PBRSB-eIBRS SW sequence; BHI BHI_DIS_S
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
Versions of relevant libraries:
[pip3] Could not collect
[conda] Could not collect