Instructions to use ostris/Flex.2-preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ostris/Flex.2-preview with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("ostris/Flex.2-preview", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download text_encoder_2/model-00002-of-00002.safetensors from ostris/Flex.2-preview: direct link, hf CLI and curl.
- Browser
- Download file 4.53 GB
-
https://huggingface.co/ostris/Flex.2-preview/resolve/3f5118104643101fa4e1cae66fe6da6dea024bce/text_encoder_2/model-00002-of-00002.safetensors
- Command line
-
hf download hf://ostris/Flex.2-preview@3f5118104643101fa4e1cae66fe6da6dea024bce/text_encoder_2/model-00002-of-00002.safetensors
-
curl -L -o model-00002-of-00002.safetensors https://huggingface.co/ostris/Flex.2-preview/resolve/3f5118104643101fa4e1cae66fe6da6dea024bce/text_encoder_2/model-00002-of-00002.safetensors
4.53 GB
- Xet hash:
- 65b0cc40f50cac5edf11f8b6b89fb03c51e097cac28cc3ccc992d3756864e072
- Size of remote file:
- 4.53 GB
- SHA256:
- a5640855b301fcdbceddfa90ae8066cd9414aff020552a201a255ecf2059da00
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.