Text Generation
Transformers
Safetensors
English
qwen2
animation
lottie
svg
animtoon
vector-animation
text-to-animation
conversational
text-generation-inference
Instructions to use srk0102200/AnimTOON-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use srk0102200/AnimTOON-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="srk0102200/AnimTOON-3B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("srk0102200/AnimTOON-3B") model = AutoModelForCausalLM.from_pretrained("srk0102200/AnimTOON-3B") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use srk0102200/AnimTOON-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "srk0102200/AnimTOON-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "srk0102200/AnimTOON-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/srk0102200/AnimTOON-3B
- SGLang
How to use srk0102200/AnimTOON-3B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "srk0102200/AnimTOON-3B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "srk0102200/AnimTOON-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "srk0102200/AnimTOON-3B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "srk0102200/AnimTOON-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use srk0102200/AnimTOON-3B with Docker Model Runner:
docker model run hf.co/srk0102200/AnimTOON-3B
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,6 +11,8 @@ tags:
|
|
| 11 |
- animtoon
|
| 12 |
- vector-animation
|
| 13 |
- text-to-animation
|
|
|
|
|
|
|
| 14 |
datasets:
|
| 15 |
- OmniLottie/MMLottie-2M
|
| 16 |
pipeline_tag: text-generation
|
|
@@ -75,7 +77,7 @@ print(result)
|
|
| 75 |
## Convert to .lottie
|
| 76 |
|
| 77 |
```python
|
| 78 |
-
# Clone: git clone https://github.com/srk0102/
|
| 79 |
import sys; sys.path.insert(0, 'src')
|
| 80 |
from toon_animator import animtoon_to_dotlottie_full
|
| 81 |
|
|
@@ -97,7 +99,7 @@ lottie_dict = anim.to_dict()
|
|
| 97 |
# Output: .lottie file with real SVG shapes + AI animations
|
| 98 |
```
|
| 99 |
|
| 100 |
-
See full pipeline: [test_svg_pipeline.py](https://github.com/srk0102/
|
| 101 |
|
| 102 |
## Benchmark Results (Measured)
|
| 103 |
|
|
@@ -156,7 +158,8 @@ OmniLottie generates everything in one model → hallucinated shapes, token bloa
|
|
| 156 |
|
| 157 |
## Links
|
| 158 |
|
| 159 |
-
- **GitHub:** [github.com/srk0102/
|
|
|
|
| 160 |
- **OmniLottie (comparison):** [arxiv.org/abs/2603.02138](https://arxiv.org/abs/2603.02138)
|
| 161 |
- **MMLottie-2M Dataset:** [huggingface.co/datasets/OmniLottie/MMLottie-2M](https://huggingface.co/datasets/OmniLottie/MMLottie-2M)
|
| 162 |
|
|
@@ -167,10 +170,10 @@ OmniLottie generates everything in one model → hallucinated shapes, token bloa
|
|
| 167 |
title={AnimTOON: Token-Efficient Vector Animation Generation via Compact Text Format},
|
| 168 |
author={Siva RamaKrishna},
|
| 169 |
year={2026},
|
| 170 |
-
url={https://github.com/srk0102/
|
| 171 |
}
|
| 172 |
```
|
| 173 |
|
| 174 |
## License
|
| 175 |
|
| 176 |
-
MIT License - see [LICENSE](https://github.com/srk0102/
|
|
|
|
| 11 |
- animtoon
|
| 12 |
- vector-animation
|
| 13 |
- text-to-animation
|
| 14 |
+
- conversational
|
| 15 |
+
- text-generation-inference
|
| 16 |
datasets:
|
| 17 |
- OmniLottie/MMLottie-2M
|
| 18 |
pipeline_tag: text-generation
|
|
|
|
| 77 |
## Convert to .lottie
|
| 78 |
|
| 79 |
```python
|
| 80 |
+
# Clone: git clone https://github.com/srk0102/AnimTOON.git
|
| 81 |
import sys; sys.path.insert(0, 'src')
|
| 82 |
from toon_animator import animtoon_to_dotlottie_full
|
| 83 |
|
|
|
|
| 99 |
# Output: .lottie file with real SVG shapes + AI animations
|
| 100 |
```
|
| 101 |
|
| 102 |
+
See full pipeline: [test_svg_pipeline.py](https://github.com/srk0102/AnimTOON/blob/master/test_svg_pipeline.py)
|
| 103 |
|
| 104 |
## Benchmark Results (Measured)
|
| 105 |
|
|
|
|
| 158 |
|
| 159 |
## Links
|
| 160 |
|
| 161 |
+
- **GitHub:** [github.com/srk0102/AnimTOON](https://github.com/srk0102/AnimTOON)
|
| 162 |
+
- **PitchHut:** [pitchhut.com/project/animtoon-lottie-animation](https://www.pitchhut.com/project/animtoon-lottie-animation)
|
| 163 |
- **OmniLottie (comparison):** [arxiv.org/abs/2603.02138](https://arxiv.org/abs/2603.02138)
|
| 164 |
- **MMLottie-2M Dataset:** [huggingface.co/datasets/OmniLottie/MMLottie-2M](https://huggingface.co/datasets/OmniLottie/MMLottie-2M)
|
| 165 |
|
|
|
|
| 170 |
title={AnimTOON: Token-Efficient Vector Animation Generation via Compact Text Format},
|
| 171 |
author={Siva RamaKrishna},
|
| 172 |
year={2026},
|
| 173 |
+
url={https://github.com/srk0102/AnimTOON}
|
| 174 |
}
|
| 175 |
```
|
| 176 |
|
| 177 |
## License
|
| 178 |
|
| 179 |
+
MIT License - see [LICENSE](https://github.com/srk0102/AnimTOON/blob/master/LICENSE)
|