cannot fit 'int' into an index-sized integer

#25
by FortMinor0417 - opened

when i run these code :

self.base_model = StableDiffusion3Pipeline.from_pretrained(
self.model_id, torch_dtype=torch.float16)
self.base_model.to("cuda")
image = self.base_model(
'A golden haired puppy, holding a sign that says "Hello World"',
num_inference_steps=28,
guidance_scale=9.0,
negative_prompt="").images

i got an error, for example:
File "D:\EasyGC\ENV\lib\site-packages\transformers\tokenization_utils_base.py", line 3736, in _pad
encoded_inputs["attention_mask"] = encoded_inputs["attention_mask"] + [0] * difference
OverflowError: cannot fit 'int' into an index-sized integer

i can't understand this error ,who could help me?

Sign up or log in to comment