deepspeedai / deepspeedai/DeepSpeed

[BUG] deep inference on T4 get Triton Error [CUDA]: invalid argument

Open
#2,942 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug compression
Dominant language
Python
Stars
43.1k
Forks
5k
Avg merge
4d 15h
Merged PRs (30d)
112

Description

May I missing something ?

env:
accelerate==0.16.0
deepspeed==0.7.4+fffca7df
diffusers==0.12.0
tokenizers==0.12.1
torch==1.11.0+cu113
torchvision==0.12.0+cu113
tqdm==4.65.0
transformers==4.26.1

error message:

ValueError: model must be a torch.nn.Module, got <class.
'diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion.StableDiffusionPipeline'>

model = StableDiffusionPipeline.from_pretrained(
    HF_MODEL_ID,
    torch_dtype=torch.float16,
    revision="fp16")


model = deepspeed.init_inference(model=model.to("cuda"), dtype=torch.float16)
model("a photo of an astronaut riding a horse on moon")

Contributor guide

Open the contributing guide

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

No repository file is named. Start by reproducing the StableDiffusionPipeline.from_pretrained and deepspeed.init_inference calls with the listed package versions, then inspect the init_inference entry point and the model-type validation. Done means identifying the compatibility problem and documenting a confirmed supported usage or limitation.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.