mlc-ai / mlc-ai/web-stable-diffusion
How to use fp16 precison version of Stable Diffusion 1.5?
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 3.7k
- Forks
- 238
- PR merge metrics
- No merged PRs in 30d
Description
when I use fp16 version ,I got an capture error on my 3090TI.
pipe = StableDiffusionPipeline.from_pretrained(
"runwayml/stable-diffusion-v1-5", revision='fp16', torch_dtype=torch.float16, local_files_only=True
)
RuntimeError: "LayerNormKernelImpl" not implemented for 'Half'
Contributor guide
No contributing guide indexed for this repository
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
Start by reproducing the provided StableDiffusionPipeline call with the fp16 revision, torch.float16, and local_files_only on the reported 3090Ti. Investigate the LayerNormKernelImpl error and the project's documented model-loading path; done means establishing a supported fp16 workflow or documenting the confirmed 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