Instructions to use AuroraSystem/Velary-1.2-Flash-1.2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AuroraSystem/Velary-1.2-Flash-1.2B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AuroraSystem/Velary-1.2-Flash-1.2B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AuroraSystem/Velary-1.2-Flash-1.2B") model = AutoModelForCausalLM.from_pretrained("AuroraSystem/Velary-1.2-Flash-1.2B", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AuroraSystem/Velary-1.2-Flash-1.2B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AuroraSystem/Velary-1.2-Flash-1.2B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AuroraSystem/Velary-1.2-Flash-1.2B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AuroraSystem/Velary-1.2-Flash-1.2B
- SGLang
How to use AuroraSystem/Velary-1.2-Flash-1.2B 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 "AuroraSystem/Velary-1.2-Flash-1.2B" \ --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": "AuroraSystem/Velary-1.2-Flash-1.2B", "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 "AuroraSystem/Velary-1.2-Flash-1.2B" \ --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": "AuroraSystem/Velary-1.2-Flash-1.2B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use AuroraSystem/Velary-1.2-Flash-1.2B with Docker Model Runner:
docker model run hf.co/AuroraSystem/Velary-1.2-Flash-1.2B
Velary 1.2 Flash
English
Velary 1.2 Flash is a 1.17B-parameter bilingual (Russian/English) instruction model built on LiquidAI/LFM2.5-1.2B-Thinking (LFM2 architecture, 128K context) with switchable reasoning depth via a control tag appended to the user message.
Benchmarks (ABench75, 375 tasks, automatic regex scoring)
| Category | none | medium | high |
|---|---|---|---|
| Overall | 76.8% | 82.7% | 81.6% |
| Math | 91% | 97% | 96% |
| Logic | 69% | 49% | 43% |
| Code | 71% | 85% | 85% |
| Cybersecurity | 88% | 96% | 96% |
| General | 65% | 85% | 88% |
| English | 85% | 84% | 81% |
| Russian | 65% | 81% | 83% |
Training details
- Base model:
LiquidAI/LFM2.5-1.2B-Thinking(Lfm2ForCausalLM, 1.17B, vocab 65536, native thinking). - Method: LoRA, r=32, alpha=32, all-linear, dropout 0.05, merged into the base weights.
- Data: approximately 8.7k generated domain examples (cybersecurity, code, math, logic, Russian language rules, identity, general) plus level data (none/medium/high) and a replay set for retention.
- Stages: supervised fine-tuning on the domain pack (2 epochs), followed by two low-LR balancing stages (learning rate 3e-5) mixing level data, replay and a no-reasoning slice; adapters were merged between stages.
- Precision and batching: fp16, batch size 1-2, gradient accumulation 8-32, maximum sequence length 1024-2048, gradient checkpointing.
Reasoning levels
The reasoning depth is selected by appending <|effort=none|>, <|effort=medium|> or <|effort=high|> to the user message. The system prompt should be:
You are Aurora, a helpful AI assistant. Respond in the user's language.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("AuroraSystem/Velary-1.2-Flash-1.2B")
model = AutoModelForCausalLM.from_pretrained(
"AuroraSystem/Velary-1.2-Flash-1.2B", dtype="bfloat16", device_map="auto")
messages = [
{"role": "system", "content": "You are Aurora, a helpful AI assistant. Respond in the user's language."},
{"role": "user", "content": question + "\n<|effort=medium|>"},
]
text = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
Limitations
- Logic is the weakest category across all levels.
- Casual conversation and open-ended creative writing are limited.
- Longer reasoning increases token usage; set
max_new_tokensof at least 512 for medium and high. - The model is not safety-aligned beyond the training data.
ะ ัััะบะธะน
Velary 1.2 Flash โ ะดะฒััะทััะฝะฐั (ััััะบะธะน/ะฐะฝะณะปะธะนัะบะธะน) ะธะฝััััะบัะธะฒะฝะฐั ะผะพะดะตะปั ะฝะฐ 1.17B ะฟะฐัะฐะผะตััะพะฒ ะฝะฐ ะฑะฐะทะต LiquidAI/LFM2.5-1.2B-Thinking (ะฐัั
ะธัะตะบัััะฐ LFM2, ะบะพะฝัะตะบัั 128K) ั ะฟะตัะตะบะปััะฐะตะผะพะน ะณะปัะฑะธะฝะพะน ัะฐัััะถะดะตะฝะธะน ัะตัะตะท ัะฟัะฐะฒะปัััะธะน ัะตะณ ะฒ ัะพะพะฑัะตะฝะธะธ ะฟะพะปัะทะพะฒะฐัะตะปั.
ะะตะฝัะผะฐัะบะธ (ABench75, 375 ะทะฐะดะฐั, ะฐะฒัะพะผะฐัะธัะตัะบะฐั ะฟัะพะฒะตัะบะฐ ะฟะพ ัะตะณัะปััะบะต)
| ะะฐัะตะณะพัะธั | none | medium | high |
|---|---|---|---|
| ะะฑัะธะน ะฑะฐะปะป | 76.8% | 82.7% | 81.6% |
| ะะฐัะตะผะฐัะธะบะฐ | 91% | 97% | 96% |
| ะะพะณะธะบะฐ | 69% | 49% | 43% |
| ะะพะด | 71% | 85% | 85% |
| ะะธะฑะตัะฑะตะทะพะฟะฐัะฝะพััั | 88% | 96% | 96% |
| ะะฑัะธะต ะทะฝะฐะฝะธั | 65% | 85% | 88% |
| ะะฝะณะปะธะนัะบะธะน | 85% | 84% | 81% |
| ะ ัััะบะธะน | 65% | 81% | 83% |
ะะตัะฐะปะธ ะพะฑััะตะฝะธั
- ะะฐะทะพะฒะฐั ะผะพะดะตะปั:
LiquidAI/LFM2.5-1.2B-Thinking(Lfm2ForCausalLM, 1.17B, ัะปะพะฒะฐัั 65536, ะฝะฐัะธะฒะฝัะน thinking). - ะะตัะพะด: LoRA, r=32, alpha=32, ะฒัะต ะปะธะฝะตะนะฝัะต ัะปะพะธ, dropout 0.05, ั ะฟะพัะปะตะดัััะธะผ ะผะตัะดะถะตะผ ะฒ ะฑะฐะทะพะฒัะต ะฒะตัะฐ.
- ะะฐะฝะฝัะต: ะพะบะพะปะพ 8.7k ัะณะตะฝะตัะธัะพะฒะฐะฝะฝัั ะดะพะผะตะฝะฝัั ะฟัะธะผะตัะพะฒ (ะบะธะฑะตัะฑะตะทะพะฟะฐัะฝะพััั, ะบะพะด, ะผะฐัะตะผะฐัะธะบะฐ, ะปะพะณะธะบะฐ, ะฟัะฐะฒะธะปะฐ ััััะบะพะณะพ ัะทัะบะฐ, ะธะดะตะฝัะธัะฝะพััั, ะพะฑัะธะต ะทะฝะฐะฝะธั), ะฟะปัั ััะพะฒะฝะตะฒัะต ะดะฐะฝะฝัะต (none/medium/high) ะธ replay-ะฝะฐะฑะพั ะดะปั ัะพั ัะฐะฝะตะฝะธั ะฝะฐะฒัะบะพะฒ.
- ะญัะฐะฟั: SFT ะฝะฐ ะดะพะผะตะฝะฝะพะผ ะฟะฐะบะตัะต (2 ัะฟะพั ะธ), ะทะฐัะตะผ ะดะฒะฐ ััะฐะฟะฐ ะฑะฐะปะฐะฝัะธัะพะฒะบะธ ั ะผะฐะปัะผ learning rate (3e-5) ะฝะฐ ัะผะตัะธ ััะพะฒะฝะตะฒัั ะดะฐะฝะฝัั , replay ะธ ััะตะทะฐ ะฑะตะท ัะฐัััะถะดะตะฝะธะน; ะฐะดะฐะฟัะตัั ะผะตัะดะถะธะปะธัั ะผะตะถะดั ััะฐะฟะฐะผะธ.
- ะขะพัะฝะพััั ะธ ะฑะฐััะธ: fp16, batch 1-2, ะฝะฐะบะพะฟะปะตะฝะธะต ะณัะฐะดะธะตะฝัะฐ 8-32, ะผะฐะบัะธะผะฐะปัะฝะฐั ะดะปะธะฝะฐ 1024-2048, gradient checkpointing.
ะฃัะพะฒะฝะธ ัะฐัััะถะดะตะฝะธะน
ะะปัะฑะธะฝะฐ ะฒัะฑะธัะฐะตััั ัะตะณะพะผ <|effort=none|>, <|effort=medium|> ะธะปะธ <|effort=high|> ะฒ ะบะพะฝัะต ัะพะพะฑัะตะฝะธั ะฟะพะปัะทะพะฒะฐัะตะปั. ะกะธััะตะผะฝัะน ะฟัะพะผั:
You are Aurora, a helpful AI assistant. Respond in the user's language.
ะะณัะฐะฝะธัะตะฝะธั
- ะะพะณะธะบะฐ โ ัะฐะผะฐั ัะปะฐะฑะฐั ะบะฐัะตะณะพัะธั ะฝะฐ ะฒัะตั ััะพะฒะฝัั .
- ะกะปะฐะฑะพ ัะฐะทะฒะธัะฐ ัะฒะตััะบะฐั ะฑะตัะตะดะฐ ะธ ะพัะบัััะพะต ะบัะตะฐัะธะฒะฝะพะต ะฟะธััะผะพ.
- ะะปะธะฝะฝัะต ัะฐัััะถะดะตะฝะธั ัะฒะตะปะธัะธะฒะฐัั ัะฐัั
ะพะด ัะพะบะตะฝะพะฒ; ะดะปั medium ะธ high ััะฐะฒััะต
max_new_tokensะฝะต ะผะตะฝััะต 512. - ะะพะดะตะปั ะฝะต ะฒััะพะฒะฝะตะฝะฐ ะฟะพ ะฑะตะทะพะฟะฐัะฝะพััะธ ัะฒะตัั ะพะฑััะฐััะธั ะดะฐะฝะฝัั .
- Downloads last month
- 121