Instructions to use hf-internal-testing/tiny-random-cogview4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use hf-internal-testing/tiny-random-cogview4 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("hf-internal-testing/tiny-random-cogview4", 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
- Draw Things
- DiffusionBee
- Xet hash:
- 32b3828ee5bd176a56fb05ad692ece4f06f2212dc5faf2eb1a273afd632eae45
- Size of remote file:
- 2.62 MB
- SHA256:
- 5a493598071550244b2ee7f26118f3edec2150b9dfa967929a99052ac83fe716
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.