Instructions to use aina-tech/Anima-Lightning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use aina-tech/Anima-Lightning with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("aina-tech/Anima-Lightning", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Cosmos
How to use aina-tech/Anima-Lightning with Cosmos:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
|
Download PUBLISH.md from aina-tech/Anima-Lightning: direct link, hf CLI and curl.
- Browser
- Download file 1.02 kB
-
https://huggingface.co/aina-tech/Anima-Lightning/resolve/main/PUBLISH.md
- Command line
-
hf download hf://aina-tech/Anima-Lightning/PUBLISH.md
-
curl -L -o PUBLISH.md https://huggingface.co/aina-tech/Anima-Lightning/resolve/main/PUBLISH.md
1.02 kB
Publish to Hugging Face
Use the current hf CLI, not the deprecated huggingface-cli command.
If hf is not available in the active environment, update the Hub package:
python -m pip install -U huggingface_hub
Log in:
hf auth login
Create the model repo. Keep it private while you inspect the uploaded card and files:
hf repos create YOUR_USERNAME/Anima-Lightning --repo-type model --private --exist-ok
Upload this folder to the root of the model repo:
hf upload YOUR_USERNAME/Anima-Lightning . . --repo-type model --commit-message "Upload Anima-Lightning distilled model"
After upload, check:
README.mdrenders with thedistilled_generation_config.jsonruntime note.LICENSE.mdandNOTICE.mdare present.- The model files remain in the same Diffusers subfolders:
transformer/,text_encoder/,text_conditioner/,vae/,scheduler/,tokenizer/, andt5_tokenizer/. - The repo can stay private until you are ready to publish it.