
🔬 Not a general-purpose or SOTA model. It is a small model, built from scratch and still in progress: don't expect it to get everything right yet.

| Parameters | Context | Languages | Pretraining | License |
|---|---|---|---|---|
| 1.03B | 128K (256K with YaRN ×2) | EN · IT · code | ~176B tokens | Apache 2.0 |
Use it
The examples are in Italian, the language Skylar is built for. Every output below is real.
1. Install and start the server
pip install "skylar[serve,grammar,hybrid]>=0.7.12"
skylar serve --model Skyl4r-Ai/Skylar2-1B-Instruct
The server speaks the OpenAI API and the Anthropic Messages API on http://127.0.0.1:8000, on a GPU or on the CPU.
from openai import OpenAI
client = OpenAI(base_url="http://127.0.0.1:8000/v1", api_key="none")
MODEL = "Skyl4r-Ai/Skylar2-1B-Instruct"
import anthropic
anthropic_client = anthropic.Anthropic(base_url="http://127.0.0.1:8000", api_key="none")
msg = anthropic_client.messages.create(
model="Skyl4r-Ai/Skylar2-1B-Instruct",
max_tokens=200,
messages=[{"role": "user", "content": "Riscrivi in modo più cortese, in una frase: «Mandatemi il contratto firmato entro domani.»"}],
)
print(msg.content[0].text)
Ecco una versione più cortese: «Vi prego di inviarmi il contratto firmato entro domani.»
2. Explain a document
Put the document in <document title="…">…</document>. Skylar answers from it and says so when the answer isn't there.
CLAUSE = ("Art. 7 – Recesso. Il cliente può recedere dal contratto in qualsiasi momento con un preavviso scritto di 60 "
"giorni, inviato via PEC. Se il recesso avviene entro i primi 12 mesi, il cliente paga una penale pari a due "
"canoni mensili. I canoni già pagati non vengono rimborsati.")
prompt = ("Rispondi alla domanda usando solo il documento. Se il documento non contiene la risposta, dillo chiaramente "
"invece di rispondere. Rispondi in italiano, in modo breve.\n\n"
f'<document title="Contratto, art. 7.txt">{CLAUSE}</document>\n\n'
"Domanda: Con quanto preavviso devo comunicare il recesso, e come?")
r = client.chat.completions.create(model=MODEL, messages=[{"role": "user", "content": prompt}], temperature=0)
print(r.choices[0].message.content)
Devi inviare il recesso via PEC con un preavviso scritto di 60 giorni.
3. Call a tool
Skylar asks for the call, your code runs it, the result goes back.
import json
tools = [{"type": "function", "function": {
"name": "get_order_status",
"description": "Restituisce lo stato di spedizione di un ordine dal suo codice.",
"parameters": {"type": "object",
"properties": {"order_id": {"type": "string", "description": "Il codice dell'ordine, es. A-10482"}},
"required": ["order_id"]}}}]
msgs = [{"role": "user", "content": "Dov'è il mio ordine A-10482?"}]
r = client.chat.completions.create(model=MODEL, messages=msgs, tools=tools, temperature=0)
m = r.choices[0].message
print([(c.function.name, c.function.arguments) for c in m.tool_calls])
msgs.append(m.model_dump(exclude_none=True))
for c in m.tool_calls: # your code runs the tool here
msgs.append({"role": "tool", "tool_call_id": c.id, "content": json.dumps(
{"order_id": "A-10482", "stato": "spedito", "corriere": "BRT", "consegna_prevista": "2026-11-12"})})
r = client.chat.completions.create(model=MODEL, messages=msgs, tools=tools, temperature=0)
print(r.choices[0].message.content)
[('get_order_status', '{"order_id": "A-10482"}')]
Il tuo ordine A-10482 è stato spedito con BRT. La consegna è prevista per il 12 novembre 2026.
4. JSON with a fixed schema
With response_format the server guarantees an answer that matches the schema.
EMAIL = ("Buongiorno, sono Marco Bianchi di Tecnoservizi Srl. Vi confermo l'ordine di 12 risme di carta A4, da consegnare "
"entro venerdì 13 novembre 2026 in via Roma 21, Bologna. Per qualsiasi domanda scrivetemi a "
"marco.bianchi@tecnoservizi.example.")
schema = {"type": "object", "additionalProperties": False,
"required": ["cliente", "azienda", "prodotto", "quantita", "consegna_entro", "indirizzo", "email"],
"properties": {"cliente": {"type": "string"}, "azienda": {"type": "string"}, "prodotto": {"type": "string"},
"quantita": {"type": "integer"},
"consegna_entro": {"type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"},
"indirizzo": {"type": "string"}, "email": {"type": "string"}}}
r = client.chat.completions.create(
model=MODEL, temperature=0, max_tokens=300,
messages=[{"role": "user", "content": f"Estrai i dati dell'ordine da questa email:\n\n{EMAIL}"}],
response_format={"type": "json_schema", "json_schema": {"name": "ordine", "schema": schema}},
)
print(r.choices[0].message.content)
{
"cliente": "Marco Bianchi",
"azienda": "Tecnoservizi Srl",
"prodotto": "12 risme di carta A4",
"quantita": 12,
"consegna_entro": "2026-11-13",
"indirizzo": "via Roma 21, Bologna",
"email": "marco.bianchi@tecnoservizi.example"
}
5. COBOL
r = client.chat.completions.create(model=MODEL, temperature=0, max_tokens=700, messages=[
{"role": "user", "content": "Scrivi un programma COBOL che calcola la somma dei numeri da 1 a 10 e la stampa."}])
print(r.choices[0].message.content)
Ecco il programma:
IDENTIFICATION DIVISION.
PROGRAM-ID. SOMMA10.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS-SOMMA PIC 9(5) VALUE 0.
01 WS-IDX PIC 9(2) VALUE 0.
PROCEDURE DIVISION.
PERFORM VARYING WS-IDX FROM 1 BY 1
UNTIL WS-IDX > 10
COMPUTE WS-SOMMA = WS-SOMMA + WS-IDX
END-PERFORM
DISPLAY 'SOMMA 1-10 = ' WS-SOMMA
STOP RUN.
END PROGRAM SOMMA10.
It compiles and runs with GnuCOBOL (cobc -x):
SOMMA 1-10 = 00055
With transformers
import skylar registers the Skylar 2 architecture with transformers, so AutoModelForCausalLM loads the model:
pip install "skylar[hybrid]>=0.7.12" transformers
import torch
import skylar # noqa: F401 (importing it teaches transformers the Skylar 2 architecture)
from huggingface_hub import hf_hub_download
from skylar import encode_chatml
from tokenizers import Tokenizer
from transformers import AutoModelForCausalLM
REPO = "Skyl4r-Ai/Skylar2-1B-Instruct"
model = AutoModelForCausalLM.from_pretrained(REPO, torch_dtype="auto").eval()
tok = Tokenizer.from_file(hf_hub_download(REPO, "tokenizer.json"))
messages = [{"role": "user", "content": "Traduci in inglese: «La riunione è spostata a giovedì alle 15, nella sala grande.»"}]
ids = encode_chatml(messages, tok, add_generation_prompt=True)
with torch.no_grad():
out = model.generate(torch.tensor([ids]), max_new_tokens=64, temperature=0.0,
eos_token_id=tok.token_to_id("<|im_end|>"))
print(tok.decode(out[0].tolist()[len(ids):]))
The meeting is moved to Thursday at 3 p.m., in the large room.
As written it runs on the CPU. To load exactly one version, pass its code as revision in the two calls:
model = AutoModelForCausalLM.from_pretrained(REPO, revision="GDE2MV2", torch_dtype="auto").eval()
tok = Tokenizer.from_file(hf_hub_download(REPO, "tokenizer.json", revision="GDE2MV2"))
Benchmarks
Plain greedy decoding, each model with its own chat template; our model's numbers with the server's loop guard off. Bold: the best of each row.
| Benchmark | Skylar2-1B-Instruct | Qwen3-0.6B | Gemma 3 1B IT | LFM2.5-1.2B-Instruct | Llama 3.2 1B Instruct | Emma-6 | Minerva-7B-instruct-v1.0 |
|---|---|---|---|---|---|---|---|
| Answering from documents and RAG | |||||||
| Documents (877, ours): score, −100…100 | 67.0 | −6.0 | −22.1 | 23.9 | −18.4 | −83.7 | −37.1 |
| Documents (ours): right when the answer is there | 79.5% | 42.9% | 39.4% | 44.3% | 31.3% | 9.5% | 31.7% |
| Documents (ours): abstains when it is not | 94.5% | 49.8% | 37.9% | 81.4% | 48.2% | 5.1% | 28.6% |
| Documents (ours): cites the right document | 82.7% | 28.1% | 14.2% | 10.8% | 4.6% | 1.2% | 0.0% |
| SQuAD 2.0 (1,000): score | 52.6 | 2.8 | −1.0 | 53.5 | 11.5 | −75.8 | −11.1 |
| SQuAD 2.0: right when answerable | 75.2% | 75.6% | 82.0% | 44.7% | 61.3% | 22.8% | 80.6% |
| SQuAD 2.0: abstains when not | 87.6% | 24.8% | 16.6% | 84.4% | 40.3% | 1.0% | 8.2% |
| MuSiQue (1,000): score | 20.5 | −10.7 | −85.8 | −68.1 | −11.8 | −96.1 | −75.4 |
| MuSiQue: right when answerable | 16.8% | 10.0% | 13.4% | 10.6% | 6.8% | 3.0% | 18.6% |
| MuSiQue: abstains when not | 80.0% | 58.4% | 0.6% | 16.6% | 54.6% | 0.4% | 4.2% |
| FaithEval (999): score | 19.9 | −38.5 | −45.0 | 32.1 | −31.0 | −92.7 | −62.5 |
| FaithEval: right when answerable | 14.8% | 28.6% | 29.6% | 18.0% | 29.8% | 5.8% | 30.4% |
| FaithEval: abstains when not | 85.2% | 30.9% | 24.8% | 90.4% | 34.7% | 0.8% | 6.2% |
| FaithEval counterfactual: score | −4.0 | 37.0 | 43.5 | −3.5 | 42.0 | −79.0 | 48.0 |
| FaithEval inconsistent: score | −48.0 | −89.3 | −95.3 | −25.0 | −80.3 | −92.3 | −94.3 |
| FaithEval unanswerable: score | 70.3 | −38.3 | −50.3 | 80.8 | −30.7 | −98.4 | −87.6 |
| Tool calling (BFCL v3, AST match) | |||||||
| BFCL: mean of the five categories | 71.9 | 74.9 | 21.0 | 74.4 | 10.8 | 20.0 | 23.9 |
| BFCL simple | 82.7 | 83.2 | 12.9 | 88.9 | 11.1 | 0.0 | 14.2 |
| BFCL multiple | 87.4 | 77.8 | 9.1 | 88.4 | 0.0 | 0.0 | 3.5 |
| BFCL parallel | 68.4 | 62.2 | 1.0 | 61.7 | 1.0 | 0.0 | 4.1 |
| BFCL parallel multiple | 51.5 | 63.0 | 4.5 | 42.5 | 1.0 | 0.0 | 6.5 |
| BFCL irrelevance (no call) | 69.3 | 88.2 | 77.3 | 90.3 | 40.8 | 100.0 | 91.2 |
| BFCL-ita: mean of the five categories | 71.0 | 67.8 | 17.5 | 62.2 | 12.4 | 20.0 | 22.5 |
| BFCL-ita simple | 72.4 | 65.5 | 8.0 | 83.9 | 2.3 | 0.0 | 8.0 |
| BFCL-ita multiple | 75.7 | 56.8 | 5.4 | 78.4 | 2.7 | 0.0 | 2.7 |
| BFCL-ita parallel | 65.9 | 58.5 | 0.0 | 43.9 | 4.9 | 0.0 | 4.9 |
| BFCL-ita parallel multiple | 56.8 | 62.2 | 0.0 | 10.8 | 0.0 | 0.0 | 2.7 |
| BFCL-ita irrelevance (no call) | 84.0 | 96.0 | 74.0 | 94.0 | 52.0 | 100.0 | 94.0 |
| Following instructions | |||||||
| IFEval (541) | 49.2 | 58.2 | 56.7 | 82.6 | 47.9 | 10.5 | 17.2 |
| IFEval-it (542) | 37.3 | 45.0 | 41.7 | 60.5 | 27.5 | 10.3 | 18.5 |
| IFBench (300) | 14.3 | 18.0 | 15.3 | 43.3 | 16.7 | 11.0 | 13.7 |
| Multi-IF, turn 1 | 59.0 | 66.1 | 67.8 | 85.8 | 54.1 | 21.0 | 26.9 |
| Multi-IF, turn 3 | 50.8 | 58.1 | 57.2 | 78.2 | 48.9 | 19.0 | 29.5 |
| Hallucinations, without a document | |||||||
| SimpleQA (892): right | 1.0% | 1.6% | 2.1% | 2.8% | 1.1% | 0.1% | 3.9% |
| SimpleQA: invented (lower is better) | 80.9% | 91.5% | 96.7% | 90.0% | 13.1% | 30.2% | 85.0% |
| SimpleQA: «I don't know» | 18.0% | 7.0% | 1.1% | 7.2% | 85.8% | 69.7% | 11.1% |
| FalseQA: goes along with the false premise (lower is better) | 66.7% | 54.6% | 77.3% | 47.5% | 46.6% | 11.9% | 69.3% |
| FalseQA: corrects it | 9.0% | 39.6% | 18.6% | 48.6% | 41.2% | 12.7% | 22.1% |
| FalseQA-it: goes along with the false premise (lower is better) | 62.3% | 68.4% | 79.0% | 51.8% | 54.3% | 33.8% | 59.8% |
| FalseQA-it: corrects it | 21.3% | 23.3% | 18.2% | 43.5% | 13.2% | 21.4% | 23.7% |
| FalseQA: true premise wrongly rejected (lower is better) | 2.0% | 8.7% | 3.2% | 4.7% | 5.5% | 28.5% | 2.6% |
| FalseQA-it: true premise wrongly rejected (lower is better) | 11.5% | 9.6% | 3.1% | 6.3% | 2.3% | 28.1% | 1.9% |
| COBOL (COBOLEval, 146) | |||||||
| COBOLEval: compiles (programs with code) | 91.8% | 0.0% | 2.1% | 0.0% | 0.0% | 0.0% | 0.0% |
| COBOLEval: passes the tests | 15.1% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| Long context (RULER, 13 tasks), our model only | |||||||
| RULER 64K, 40 rows a task | 64.2 | — | — | — | — | — | — |
The models
| Model | Parameters | Pretraining tokens | Context (card) | License |
|---|---|---|---|---|
| Skylar2-1B-Instruct | 1.03B | ~176B | 128K (256K with YaRN ×2) | Apache 2.0 |
| Qwen3-0.6B | 0.6B | 36T | 32K | Apache 2.0 |
| Gemma 3 1B IT | 1.0B | 2T | 32K | Gemma Terms of Use |
| LFM2.5-1.2B-Instruct | 1.17B | 28T | 32K | LFM Open License v1.0 |
| Llama 3.2 1B Instruct | 1.23B | up to 9T | 128K | Llama 3.2 Community License |
| Emma-6 | ~1.55B | ~25B unique (141.6B processed, ~5.7 passes) | 4K | OpenRAIL |
| Minerva-7B-instruct-v1.0 | 7B | ~2.5T (1.14T IT, 1.14T EN, 0.2T code) | 4K | Apache 2.0 |
Training tokens and context as declared on each model card.
| Model | Architecture | Design | Layers |
|---|---|---|---|
| Skylar2-1B-Instruct | Skylar2ForCausalLM | Hybrid decoder: linear attention and full attention | 36 |
| Qwen3-0.6B | Qwen3ForCausalLM | Dense Transformer, grouped-query attention, QK-norm | 28 |
| Gemma 3 1B IT | Gemma3ForCausalLM | Dense Transformer, local (512-token window) and global attention | 26 |
| LFM2.5-1.2B-Instruct | Lfm2ForCausalLM | Hybrid: gated short convolutions and grouped-query attention | 16 (10 conv + 6 attention) |
| Llama 3.2 1B Instruct | LlamaForCausalLM | Dense Transformer, grouped-query attention | 16 |
| Emma-6 | decoder-only Transformer | Dense Transformer, Llama layout: grouped-query attention, RMSNorm, SwiGLU, RoPE | 32 |
| Minerva-7B-instruct-v1.0 | MistralForCausalLM | Dense Transformer, Mistral layout: grouped-query attention (32 query / 8 KV heads), no sliding window | 32 |
Use it for · Don't use it for
| ✅ Use it for | ❌ Don't use it for |
|---|---|
| Q&A over your documents, with citations | Facts without a source in the prompt |
| Function / tool calling | Multi-step math and pricing rules |
| Long documents (check answers against the source) | Large programs written from scratch |
| Italian & English: emails, summaries, translation | Medical, legal or financial advice |
| COBOL snippets that compile | Unsupervised decisions |
Model details
| Architecture | Hybrid decoder: linear attention and full attention |
| Size | 1.03B parameters (1,026,781,656) |
| Vocabulary | 64K |
| Context | 128K (256K with YaRN ×2) |
| Weights | float32 (4.1 GB); bfloat16 (2.1 GB) |
| Framework | Skylar, open source |
| Serving | We recommend skylar serve. |
Versions
| Version | Date | What is new |
|---|---|---|
GDE2MV2 | 2026-11-13 | Says more often that the answer is not in the document (SQuAD 2.0, FaithEval); uses the name and the company written in the system prompt; follows the rules about tools written in the system prompt more often; loads a skill listed in the system prompt when the request needs it. |
Every version is a tag of this repository, and main is always the latest one. To run exactly version GDE2MV2, download that tag and serve the folder (release.json inside it says which version it is):
hf download Skyl4r-Ai/Skylar2-1B-Instruct --revision GDE2MV2 --exclude "model.fp32.safetensors" --local-dir ./Skylar2-1B-Instruct-GDE2MV2
skylar serve --model ./Skylar2-1B-Instruct-GDE2MV2
Limitations
- A small model (about 1B parameters) and a work in progress, not a state-of-the-art model: do not expect the quality of much larger models.
- It can state false things with confidence, and sometimes adds a detail that is not in the document you gave it: check facts, numbers and quotes.
- It reads what a document says, but it can get conditions and comparisons wrong (deadlines, thresholds, "within the first 12 months"): check them.
- When the answer is not in the document it says so in 94.5% of the cases of our own test, in 87.6% on SQuAD 2.0 and in 85.2% on FaithEval: in the other cases it answers anyway (SQuAD 2.0 score 52.6, FaithEval score 19.9).
- Parallel tool calls: when a request needs several calls in one turn it can write only one (BFCL parallel 68.4, parallel multiple 51.5).
- Without a document it makes things up: on short factual questions (SimpleQA) it invents an answer in 80.9% of the cases and says it does not know in 18.0%; when the question carries a false premise it goes along with it in 66.7% (FalseQA).
- After it loads a skill, and on long lists, the answer can fall into a loop and repeat the same lines until the token limit.
skylar servecan cut a repeated tail: the guard is off by default, turn it on with--loop-guard on(or"loop_guard": truein a request) and setmax_tokens. - Little world knowledge of its own: give it the document or the tool.
- Exact formatting instructions (word counts, fixed layouts) are followed less reliably.
- Arithmetic across several rules, and long programs, are unreliable.
- Do not use it without human supervision for anything that matters.
- When it gets something wrong it is already doing its best for its size: tell us (see «Help us improve it»).
- A few tokens decode to «�»: serve the model with
skylar≥ 0.7.5, which skips them.
Help us improve it
Skylar gets better from real use. If an answer is wrong, loops, invents something or ignores an instruction, open an issue with the prompt and the answer. Every report becomes a test for the next version. Please leave out personal or confidential data.
In italiano
Skylar2-1B-Instruct è un LLM italiano a pesi aperti: un modello linguistico da circa 1 miliardo di parametri, addestrato da zero da SKYL4R e rilasciato con licenza Apache 2.0. Lavora in italiano e in inglese: risponde dai documenti che gli dai e dice quando la risposta non c'è (RAG), chiama strumenti (function calling) e scrive codice COBOL.
Non è un modello generalista né allo stato dell'arte: è piccolo e può sbagliare. I numeri e i limiti sono scritti sopra.
Acknowledgements
We acknowledge EuroHPC JU for awarding the project ID EHPC-AIF-2026PG01-1492 access to resources on Leonardo BOOSTER hosted by CINECA, Italy. The initial pretraining of the base model was performed on Leonardo BOOSTER; later training stages were carried out on other resources, not provided by EuroHPC.
Citation
@misc{skyl4r2026skylar2,
author = {A. Ivanovitch and Eco},
title = {Skylar2-1B-Instruct},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/Skyl4r-Ai/Skylar2-1B-Instruct}
}
License & attribution
© A. Ivanovitch
Released under Apache 2.0. The license covers the weights, not the name: a modified model should not be called Skylar. If you publish a fine-tune or another model derived from this one, please link it back here through the base_model field of its model card. Please use it responsibly: it is a small model that can be wrong or make things up, so keep a person in the loop and don't use it to mislead or harm anyone.
Code & framework: github.com/skyl4r-ai/skylar