Instructions to use bytedance-research/OneReward with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use bytedance-research/OneReward with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("bytedance-research/OneReward", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
OneReward / flux.1-fill-dev-OneReward-transformer /diffusion_pytorch_model-00003-of-00003.safetensors
- Xet hash:
- e2446050296259133e75e71bcfac6874d0abcdce24509a2bebd6ebd61aaf6e37
- Size of remote file:
- 3.87 GB
- SHA256:
- 87c451f79704fe8efb62c4d93db548b8b8faae5245a6dbbd420bf47bc6209dd3
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.