Using Collab and trying to generate in Stable Diffusion, I get this Error message: 'RuntimeError: Expected tensor for argument #1...'
Author: GrandWebsterCreated Sep 23, 2026Updated Sep 23, 2026
So I got Stable Diffusion to work after finding solution here to fix the:
"No module named 'pyngork' problem.
I switched to an old runtime: >2026/7
and Implemented a new cell and added this code in:
!pip install "sentencepiece>=0.1.99,<0.2.0" --force-reinstall
!pip uninstall -y xformers
!pip install -U xformersIt Finally worked and I got access to Stable Diffusion through Collab. but now everytime I try to generate I get this message in Stable Diffusion generator:
"RuntimeError: Expected tensor for argument #1 'indices' to have one of the following scalar types: Long, Int; but got torch.cuda.HalfTensor instead (while checking arguments for embedding)"
So Im very lost now.
Source: TheLastBen/fast-stable-diffusion