MiniPolaris-3-Lucy
A compact language model for local tasks and tool use
2 min readupdated
MiniPolaris-3-Lucy is a small 220.63M-parameter Chinese language model trained from scratch, designed for fixed tool use on edge devices. Built using a Qwen3-style dense architecture with 16 layers, a custom 9,600 BPE tokenizer, and 16k token context support, it targets developers experimenting with running compact models locally on consumer hardware like Intel Arc graphics cards.
Key features
- Lightweight: Just 220M parameters, fully trained and fine-tuned on a single Intel Arc B580 (12GB) card.
- Tool use: Optimized for a fixed set of tasks and external function calling.
- Context: Supports working with texts up to 16k tokens during inference.
- Production-ready: Ships with a configured chat template and recommended optimal decoding parameters.
What you can do
- Run a lightweight local assistant for basic Russian or Chinese chats and short text generation.
- Test fixed tool-use scenarios on modest or custom hardware.
- Use it for fine-tuning experiments and researching ultra-small language model architectures.
Example
An example of initialization and response generation using the transformers library:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "PP12546/MiniPoalris-3-Lucy"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype=torch.float16).eval()
messages = [
{"role": "system", "content": "你是一个乐于助人的中文助手,回答简洁、准确。"},
{"role": "user", "content": "用三句话解释什么是梯度下降。"},
];
text = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tok(text, return_tensors="pt")
out = model.generate(**inputs, max_new_tokens=256, do_sample=True, temperature=0.7)
print(tok.decode(out[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))Read more
DetailsBenchmarks: pretrain val PPL 35.07@1280; tool calling score 6-7/8.
Hardware requirements: Runs smoothly on a single Intel Arc B580 (12GB VRAM) level graphics card.
Limitations: Not suited for general knowledge, fact-checking, or complex open-ended tasks; running contexts >16k may trigger OOM.
Training details: 254M pretrain tokens, float16 safetensors weight format.










Comments