-
Notifications
You must be signed in to change notification settings - Fork 478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unsupported operand type(s) for %: 'int' and 'NoneType' #8222
Comments
that code is most likely deprecated right now, do you just need to run some code to confirm it works or you want to run stable diffusion specifically? Otherwise I would recommend examples under https://github.com/pytorch/xla/tree/master/examples |
I want to run stable diffusion specifically. I can not find any stable diffusion code in https://github.com/pytorch/xla/tree/master/examples. I want to get a minimum working example for stable diffusion in huggingface diffusers. |
@zpcore can you share our sd reference code that can be run? |
If you can please give me a minimum working example for stable diffustion and use all tpu cores in kaggle v3-8. Not just one tpu core. |
I need to check if the code is compatible with tpu v3 or not in kaggle. Will update. Just for reference for now, here is the script we use for SD2: https://github.com/pytorch-tpu/diffusers/blob/main/examples/text_to_image/train_text_to_image_xla.py, and we use this command to run:
|
The kaggle code is kind of outdated. A fast work around is to manual add Just wrap the code in |
❓ Questions and Help
I follow the https://github.com/pytorch/xla/blob/master/contrib/kaggle/pytorch-xla-2-0-on-kaggle.ipynb
but the code in image = pipeline(prompt, callback=lambda *args: xm.mark_step(), generator=generator).images[0]
get
how to fix the problem?
The text was updated successfully, but these errors were encountered: