Instructions to use tencent/SRPO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use tencent/SRPO with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("tencent/SRPO", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Improve model card: add pipeline tag, correct library_name, and fix abstract heading typo
#3
by nielsr HF Staff - opened
This PR improves the model card by:
- Updating
library_nametodiffusersto correctly reflect the model's compatibility with the Hugging Facediffuserslibrary, which is evidenced by the provided inference snippet (from diffusers import FluxPipeline). This ensures the interactive code snippet on the model page functions correctly. - Adding the
pipeline_tag: text-to-imageto enhance discoverability on the Hugging Face Hub under the appropriate pipeline. - Correcting the typo in the abstract heading from `
Zhiminli changed pull request status to merged