Run this model with HF Jobs

Run stabilityai/stable-diffusion-3-medium-diffusers on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/stabilityai/stable-diffusion-3-medium-diffusers. Ask me which dataset to train on, then push the fine-tuned model to a new private model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/stabilityai/stable-diffusion-3-medium-diffusers on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

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