RuntimeError: Tensor dimension mismatch in I2V sampling with bf16 model on macOS
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
Research direction
Start by reproducing the reported I2V run with the bf16 14B model, euler scheduler, 16 frames, and 4 steps on macOS MPS. Then inspect wanvideo/schedulers/fm_solvers_unipc.py around line 511 and the cited Diffusers scheduler location; done means the reported tensor-dimension mismatch no longer occurs.
Written by the indexing model from the issue text.
Description
Issue
When using Wan2_1-I2V-14B-480P_bf16.safetensors model with euler scheduler,
getting tensor dimension mismatch: "The size of tensor a (45) must match the size of tensor b (44) at non-singleton dimension 4"
Environment
- Device: macOS M3 Max (MPS backend)
- Model: wan2.1_i2v_480p_14B_bf16
- Frames: 16, Steps: 4
- Scheduler: euler
- Precision: bf16
Error Location
File: wanvideo/schedulers/fm_solvers_unipc.py, line 511
File: diffusers/schedulers/scheduling_flow_match_euler_discrete.py, line 513
Workaround
Works fine with 1.3B model (Wan2_1-T2V-1_3B_bf16.safetensors)
- Dominant language
- Python
- Stars
- 6.8k
- Forks
- 712
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from kijai/ComfyUI-WanVideoWrapper
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
kijai/ComfyUI-WanVideoWrapper#2060 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
kijai/ComfyUI-WanVideoWrapper#2055 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
kijai/ComfyUI-WanVideoWrapper#2046 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
kijai/ComfyUI-WanVideoWrapper#2058 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
kijai/ComfyUI-WanVideoWrapper#2057 ·
All issues in kijai/ComfyUI-WanVideoWrapper
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
OCA/account-invoicing#2529 ·
Maintainers usually reply within 1 day
-
area/ci
Difficulty 1/5 Under an hour Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
ImageGen generate-batch aborts valid JSONL jobs containing a Unicode line separator in poster textOpenbug imagen skills
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Email validation accepts a trailing newlinePossibly taken @marcello-pichini claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day