fix RuntimeError: Input type (float) and bias type (c10::Half) should be the same#6208
fix RuntimeError: Input type (float) and bias type (c10::Half) should be the same#6208mwkldeveloper wants to merge 2 commits intohuggingface:mainfrom mwkldeveloper:main
Conversation
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
|
Can you provide a comment to reproduce the issue? |
|
@sayakpaul just follow lora training will have error After fix this issue #6080 this error mentioned in #6086 (comment) after apply the change, works fine. |
|
I think this can be solved by running the inference under an autocast block. Could you instead try that? Here is an example: |
|
@sayakpaul problem can be solved by using |
|
Yup. Feel free to update the PR accordingly then :) |
When run train_text_to_image_lora.py , RuntimeError: Input type (float) and bias type (c10::Half) should be the same
occur
this is the same issues as #4796
apply the update to pipeline_stable_diffusion.py too
Fixes # (issue)
RuntimeError: Input type (float) and bias type (c10::Half) should be the same