deepspeedai / deepspeedai/DeepSpeed
[BUG] deep inference on T4 get Triton Error [CUDA]: invalid argument
Nobody has claimed this yet.
- 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
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.
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