Downloads Β· 30 days
22
17% of all-time downloads
vikramlingam/VLQM-1.5B-Coder
VLQM-1.5B-Coder is a text generation model from vikramlingam. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
A fine-tuned language model for generating Manim animation code from natural language descriptions.
Downloads Β· 30 days
22
17% of all-time downloads
All-time downloads
131
Public
Parameters
1.5B
3.1 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors3.1 GB Β· 99%
From the Hugging Face model README
A fine-tuned language model for generating Manim animation code from natural language descriptions.
VLQM-1.5B-Coder is a specialized language model fine-tuned to generate Manim Python code from natural language descriptions. Manim is the mathematical animation engine famously used by 3Blue1Brown.
Given a natural language prompt:
"Create a blue circle that moves to the right"
The model generates valid Manim Python code:
from manim import *
class GenScene(Scene):
def construct(self):
circle = Circle(color=BLUE)
self.add(circle)
self.play(circle.animate.shift(RIGHT * 3))
| Property | Value |
|---|---|
| Base Model | Qwen/Qwen2.5-Coder-1.5B-Instruct |
| Parameters | 1.5 Billion |
| Training Method | LoRA (Low-Rank Adaptation) |
| Dataset | generaleoley/manim-codegen |
| Training Examples | 1,459 |
| Validation Examples | 163 |
| Training Framework | Apple MLX |
| Hardware | MacBook Pro (Apple Silicon) |
| Parameter | Value |
|---|---|
| Iterations | 300 |
| Batch Size | 2 |
| Gradient Accumulation | 8 |
| Learning Rate | 5e-5 |
| LoRA Layers | 16 |
| Max Sequence Length | 8,192 |
The model shows a strong convergence pattern, with validation loss stabilizing around 0.71 and training loss reaching 0.48.

axes.get_sine())from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"vikramlingam/VLQM-1.5B-Coder",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("vikramlingam/VLQM-1.5B-Coder")
prompt = "Create a red square that rotates"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0]))
python -m mlx_lm.generate \
--model vikramlingam/VLQM-1.5B-Coder \
--prompt "Create a circle animation" \
--max-tokens 256
VLQM-1.5B-Coder/
βββ config.json # Model configuration
βββ model.safetensors # Model weights (~3 GB)
βββ tokenizer.json # Tokenizer
βββ tokenizer_config.json
βββ vocab.json
βββ merges.txt
βββ generation_config.json
βββ special_tokens_map.json
βββ README.md # This file
This model is released under the Apache 2.0 License.
If you use this model, please cite:
@misc{vlqm-1.5b-coder,
author = {Vikram Lingam},
title = {VLQM-1.5B-Coder: Manim Code Generation Model},
year = {2025},
publisher = {Hugging Face},
url = {https://huggingface.co/vikramlingam/VLQM-1.5B-Coder}
}
For questions or issues, please open a discussion on the model's Hugging Face page.