Instructions to use ModelsLab/lcm-chinese with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ModelsLab/lcm-chinese with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("ModelsLab/lcm-chinese", 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 tokenizer/tokenizer.model from ModelsLab/lcm-chinese: direct link, hf CLI and curl.
- Browser
- Download file 1.02 MB
-
https://huggingface.co/ModelsLab/lcm-chinese/resolve/main/tokenizer/tokenizer.model
- Command line
-
hf download hf://ModelsLab/lcm-chinese/tokenizer/tokenizer.model
-
curl -L -o tokenizer.model https://huggingface.co/ModelsLab/lcm-chinese/resolve/main/tokenizer/tokenizer.model
1.02 MB
- Xet hash:
- 2d298e57b6acbc61ddd46b042c2a2c03b42becb9a074e65f7c12bf482ae12af9
- Size of remote file:
- 1.02 MB
- SHA256:
- e7dc4c393423b76e4373e5157ddc34803a0189ba96b21ddbb40269d31468a6f2
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.