Thirty-30M-Instruct: ultra-compact language model with JSON and function calling support
2 min read
Thirty-30M-Instruct is a dense AI model with an architecture (thought-out AI model structure) of only 30.1M parameters. Despite its modest size, it supports a context length starting at 8192 tokens (text fragments for processing), handles reasoning mode with special tags, and strictly follows JSON schemas. The model was trained on top of Thirty-30M-Base using filtered datasets (data collections) and is available in formats ranging from the original BF16 down to 4-bit INT4. It is an ideal choice for developers looking to test local agents, perform quick automation tasks on lightweight hardware, and build embedded systems.
Key features
- Native context: support for long texts starting at 8192 tokens for working with large documents.
- Dual mode: support for direct answers and step-by-step reasoning within reasoning tags.
- Formatting: strict compatibility with JSON schemas and parallel tool calling.
- Efficiency: quantization formats (reducing weight precision to save memory) ranging from FP16 to INT4 for running on modest hardware.
What you can do
- Local agent: deploy an autonomous assistant or bot for working with JSON responses on a low-spec server or PC.
- Tool integration: utilize the model for parallel function calling and structured data processing.
- Text analysis: use the long context for fast document review and summarization directly on the CPU.
Example
import torch
from pathlib import Path
from tokenizers import Tokenizer
from model import TurboSynthesis
model_dir = Path(".")
tok = Tokenizer.from_file(str(model_dir / "tokenizer.json"))
model = TurboSynthesis.from_pretrained(model_dir / "model.safetensors", config_path=model_dir / "config.json")
messages = [{ "role": "user", "content": "Given f(x) = 2*x - 1, what is f(6)?" }]
Read more
DetailsParameters: 30.1M, 15 layers, hidden dimension of 384.
Architecture: GQA (grouped-query attention), QK-Norm, 32768-element tokenizer.
Metrics: outperforms SmolLM2-135M in function calling accuracy and JSON format compliance while having a smaller size.










Comments