Instructions to use zai-org/CogView4-6B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use zai-org/CogView4-6B with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("zai-org/CogView4-6B", 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 Settings
- Draw Things
- DiffusionBee
Download tokenizer/tokenizer.json from zai-org/CogView4-6B: direct link, hf CLI and curl.
- Browser
- Download file 20 MB
-
https://huggingface.co/zai-org/CogView4-6B/resolve/refs%2Fpr%2F13/tokenizer/tokenizer.json
- Command line
-
hf download hf://zai-org/CogView4-6B@refs/pr/13/tokenizer/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/zai-org/CogView4-6B/resolve/refs%2Fpr%2F13/tokenizer/tokenizer.json
20 MB
- Xet hash:
- 6f5da082ac07ef20f0eafcb95adc67ba6c3259b05ba1b7158dee609d85ed9581
- Size of remote file:
- 20 MB
- SHA256:
- 8a7269d6daa6328de533def0082ff9d3a825bb89036cbcc665c324f941f67fbf
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.