modelscope / modelscope/DiffSynth-Studio

Loading a single safetensor checkpoint file for wan that was saved/combined with comfyui (non-diffuser)

Open
#689 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
13.1k
Forks
1.3k
Avg merge
13h 12m
Merged PRs (30d)
45

Description

As the title says, is it possible?

pipe = WanVideoPipeline.from_pretrained(
    torch_dtype=torch.bfloat16,
    device="cuda",
    model_configs=[
        ModelConfig(path=[f"{models}/aniWan2114BFp8E4m3fn_i2v480pNew.safetensors"], offload_dtype=torch.float8_e4m3fn)
    ],
    skip_download=True
)
pipe.enable_vram_management()

The above results in:

Loading models from: ['/path/to/aniWan2114BFp8E4m3fn_i2v480pNew.safetensors']

We cannot detect the model type. No models are loaded.
No wan_video_text_encoder models available.
No wan_video_dit models available.
No wan_video_vae models available.
No wan_video_image_encoder models available.
No wan_video_motion_controller models available.
No wan_video_vace models available.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with WanVideoPipeline.from_pretrained and ModelConfig, then trace the model-type detection that reports no models are loaded for the single checkpoint. Compare the expected Wan component layout with the combined ComfyUI safetensor input. Done means the issue's checkpoint is detected and its required Wan components load successfully, or the unsupported format is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.