Klyra-64M
is a compact language model family developed as an academic research project. The project was initiated and developed by
students of Informatics Engineering at Politeknik Negeri Jakarta (State Polytechnic of Jakarta)
, with a focus on efficient language modeling, staged post-training, reasoning, reinforcement learning, and model distillation at the sub-100M parameter scale.
The project explores how far a ~64M-parameter decoder-only language model can be pushed through staged pretraining, instruction tuning, reasoning-focused training, reinforcement learning, and specialist policy distillation.
Klyra is derived from the
MiniMind-compatible architecture/runtime
, with a custom training pipeline, data curriculum, post-training stages, evaluation workflow, and model checkpoints.
Current recommended checkpoint:
Klyra-64M-Reasoning-Fundamentals
Experimental post-RL checkpoint:
Klyra-64M-RL-OPD
Highlights
~64M trainable parameters
8 transformer layers
768 hidden size
8 attention heads / 4 KV heads
~6.4K Byte-Level BPE vocabulary
1024-token training context
~3B cumulative pretraining + midtraining tokens
General instruction tuning
Reasoning-fundamentals stage
Specialist GRPO branches
Online Policy Distillation (OPD)
Evaluated on the same five English benchmark families used in the MiniMind-3 objective evaluation suite
Klyra is designed as a compact research model suitable for low-resource inference, controlled experimentation, and future edge or mobile deployment studies.
Model Architecture
Component
Klyra-64M
Architecture
Decoder-only Transformer
Parameters
~63,912,192
Layers
8
Hidden size
768
Attention heads
8
KV heads
4
Vocabulary
~6,400
Context length
1,024
MoE
No
Weight tying
Yes
Training precision
BF16
Tokenizer
MiniMind 6.4K Byte-Level BPE
The model uses tied token embedding / LM-head weights. Parameter counts may therefore differ slightly depending on whether a tool counts tied tensors once or separately.
The public Klyra-64M release currently consists of the following five checkpoints. These are the
only model weights currently distributed as part of the public Klyra-64M release
.
This checkpoint is retained as an experimental research release. It broadly preserves aggregate benchmark capability, while its behavior differs from the recommended Reasoning-Fundamentals checkpoint on several manual reasoning and instruction-following tests.
Release note:
Klyra-64M-Reasoning-RL1
,
Klyra-64M-Reasoning-RL2
,
Klyra-64M-IF-RL
, and
Klyra-64M-General-RL
were intermediate specialist checkpoints used during the RL/OPD research pipeline. They are
not currently distributed as public Klyra-64M weights
.
Stage 1 — Foundation Pretraining
The model was initialized from random weights and pretrained on approximately
1B tokens
.
Primary corpus:
openbmb/Ultra-FineWeb-L1
configuration:
CC-MAIN-2025-30
Core settings:
Setting
Value
Sequence length
512
Peak LR
5e-4
Warmup
2%
Scheduler
Cosine
Weight decay
0.1
Precision
BF16
Effective tokens/update
~131K
Foundation validation result:
Metric
Result
Validation loss
2.3649
Perplexity
10.643
Stage 2 — Midtraining
Klyra was then continued for approximately
2B additional tokens
, giving approximately
3B cumulative pretraining + midtraining tokens
.
Training mixture:
Source
Approx. tokens
DCLM-Edu
720M
FineWeb-Edu
480M
Stack-Edu
500M
FineMath
120M
InfiMM-WebMath
80M
Cosmopedia v2
100M
Total additional
~2B
Core settings:
Setting
Value
Sequence length
1024
Peak LR
1.5e-4
Warmup
1%
Minimum LR ratio
0.1
AdamW betas
(0.9, 0.95)
Weight decay
0.1
Precision
BF16
Midtraining validation:
Metric
Result
Validation loss
2.3996
Perplexity
11.018
The midtraining validation set is not directly comparable with the foundation validation set.
Stage 3 — General Instruction SFT
Dataset:
HuggingFaceTB/smol-smoltalk
After assistant-target validation and filtering:
Split
Rows
Train
226,049
Eval
992
Training:
2 epochs
1024 context
assistant-only loss
dynamic padding
BF16
peak LR approximately
5e-4
10% warmup
Results:
Epoch
Validation loss
Perplexity
1
1.1315
3.100
2
0.9828
2.672
This produced:
Klyra-64M-Instruct
Stage 4 — Reasoning Fundamentals
The next stage used a conservative training strategy intended to strengthen fundamental reasoning while limiting degradation of previously acquired capabilities.
Instead of immediately pushing Klyra into difficult competition-style reasoning, the goal was to strengthen:
arithmetic
unit-rate reasoning
short multi-step reasoning
simple logical deduction
basic science
algorithm fundamentals
Training set:
30,000 total examples
18,000 reasoning examples
12,000 general-instruction replay
Evaluation set:
1,000 total examples
600 reasoning
400 general-instruction replay
Training:
Setting
Value
Epochs
1
Peak LR
~6e-5
Context
1024
Loss
Assistant-only
Precision
BF16
The resulting checkpoint is:
Klyra-64M-Reasoning-Fundamentals
This remains the
recommended Klyra-64M checkpoint
.
Stage 5 — Specialist Reinforcement Learning
The Klyra reinforcement-learning experiment started from
Klyra-64M-Reasoning-Fundamentals
.
The instruction-following branch used approximately
2,000 verified IFEval/RLVR-style prompts
.
Source:
sungyub/ifeval-rlvr-verl
The verifier used classic IFEval-compatible rule checks.
The objective emphasized constraints such as:
exact wording
keyword inclusion/exclusion
word/sentence counts
JSON formatting
capitalization rules
punctuation rules
section/title constraints
response-format restrictions
Checkpoint:
Klyra-64M-IF-RL
General-Capability RL
General RL used
train splits only
from benchmark-family datasets:
Dataset
Training prompts
ARC-Easy
700
PIQA
900
OpenBookQA
500
CommonsenseQA
900
Total
3,000
Checkpoint:
Klyra-64M-General-RL
Test splits were not used for this RL stage.
Stage 6 — Online Policy Distillation
The OPD student starts again from:
Klyra-64M-Reasoning-Fundamentals
Teachers:
Reasoning teacher → Klyra-64M-Reasoning-RL2
IF teacher → Klyra-64M-IF-RL
General teacher → Klyra-64M-General-RL
Only teacher trajectories that passed objective verification were accepted for distillation.
Training:
Setting
Value
OPD steps
500
Student batch size
4
Peak LR
8e-6
Weight decay
0.01
Teacher candidates
3
Student initialization
Reasoning-Fundamentals
Output:
Klyra-64M-RL-OPD
This checkpoint is designated as
experimental
and is not the recommended default checkpoint.
Benchmark Results
Evaluation protocol
Klyra is evaluated on the five English benchmark families used in the MiniMind-3 objective evaluation suite:
ARC-Easy
PIQA
OpenBookQA
HellaSwag
Social-IQA
The Klyra rows below were produced with the same Klyra evaluation notebook, using conditional-likelihood scoring and the same task family across checkpoints. For the Klyra evaluation, the primary metrics are
acc_norm
for ARC-Easy, PIQA, OpenBookQA, and HellaSwag, and
acc
for Social-IQA.
External sub-100M results are included as a
reference comparison
, not as a universal leaderboard. Different public repositories may use different
lm-evaluation-harness
versions, model revisions, dtypes, tokenizer implementations, or prompt/chat-template settings. Therefore, cross-project differences should not be interpreted as controlled significance tests unless the models are rerun under one identical evaluation environment.
Klyra five-task benchmark
Model
ARC-Easy
PIQA
OpenBookQA
HellaSwag
Social-IQA
Mean
Klyra-64M-Reasoning-Fundamentals
32.37
58.98
28.60
28.73
35.93
36.92
Klyra-64M-RL-OPD
32.41
59.36
27.80
28.39
35.98
36.79
Klyra-64M-Instruct
32.74
57.94
28.80
28.33
35.31
36.63
MiniMind-3-Exam
35.61
56.26
24.20
28.40
34.19
35.73
MiniMind-3
28.49
50.65
23.60
28.28
34.19
33.04
Klyra observations
Klyra-64M-Reasoning-Fundamentals
currently has the highest five-task Klyra mean at
36.92%
.
Klyra-64M-RL-OPD
records the highest Klyra PIQA score at
59.36%
and the highest Klyra Social-IQA score at
35.98%
.
The RL-OPD stage broadly preserves aggregate benchmark capability, but does not improve the overall five-task mean over
Reasoning-Fundamentals
.
The MiniMind rows are author-reported reference results. The Klyra rows are produced by the Klyra benchmark notebook.
Broader sub-100M comparison
Many sub-100M models do not publish OpenBookQA and Social-IQA results. To include a substantially wider set of public models, the table below uses the three broadly overlapping zero-shot tasks:
ARC-Easy + PIQA + HellaSwag
Mean-3
is the unweighted arithmetic mean of those three scores. The table is sorted by
Mean-3
. It is intended to provide context for Klyra rather than establish a universal SOTA ranking.
¹ The table uses the cRia Open SLM submission values for consistency with the broader comparison. The current cRia model card reports a later checkpoint with higher scores after additional training that includes one epoch over several benchmark-family
training splits
; those later scores are therefore not substituted into this table.
Sub-100M Architecture and Training Comparison
The table below summarizes the architecture and training exposure of the principal sub-100M comparison models above.
Pretraining / continued training
refers to publicly disclosed token exposure for the cited checkpoint. A dash indicates that the corresponding value was not clearly disclosed in the public model card used for this comparison.
Public README does not disclose one authoritative total pretraining-token count
²
tinctura-v1
is publicly described as a 96.2M-parameter, 18-layer variant of the cagliostro-v3 architecture/recipe trained to 75B tokens. The approximate width/head/vocabulary/context entries shown here correspond to that architecture family; the authoritative checkpoint configuration should be taken from the model repository when reproducing it.
Training-exposure perspective
Klyra's representation-learning exposure is comparatively small:
Model
Disclosed token exposure
Approx. tokens / parameter
Klyra-64M
~3B
~47
Stentor3-50M
~8.3B
~168
cRia-LM-75M³
~11.3B+
~149+
Rose-Mini
~12.2B
~247
Surjo-100m
20B
~205
Surjo-50M
20B
~372
Supra-50M-Base
20B
~386
Veyra2-Apricot-50M
~20B
~405
BananaMind-2-Medium
50B
~1,009
tinctura-v1
75B
~780
Rose-Medium
80.06B
~818
Kiyo-65M
~80B
~1,231
Rose-1.5-Medium
~100B
~1,018
Pythia-70M
~299.9B
~4,258
³ The cRia figure only reflects the disclosed base, released midtraining, and selected context-extension exposure. It excludes the later benchmark-family adaptation epoch because a single aggregate token count for that stage is not reported in the model card.
This comparison is useful for interpreting Klyra's current benchmark position: Klyra reaches its present scores after approximately
3B
cumulative foundation and midtraining tokens, whereas many stronger sub-100M peers report tens of billions of training tokens.
External comparison sources
Public comparison values and architecture metadata were collected from the following model cards and public benchmark pages:
The public sub-100M model ecosystem is larger than this table and changes over time. This section therefore represents a
verified comparison set of relevant public peers with overlapping benchmark results
, rather than an exhaustive catalog of every model below 100M parameters on the Hugging Face Hub.
Manual Reasoning Behavior
Reasoning-Fundamentals
showed meaningful improvements on short fundamental reasoning tasks, including:
integer addition with carry
subtraction
unit-rate problems
basic syllogistic logic
basic science facts
binary-search explanation
Example:
Prompt:
What is 17 + 28?
Klyra:
<think>
In the ones place, 7 + 8 = 15; write 5 and carry 1.
In the tens place, 1 + 2 + carry 1 = 4.
So 17 + 28 = 45.
</think>
Final answer: 45.
This is the publicly released final checkpoint from the specialist-RL and Online Policy Distillation experiment. The individual specialist-teacher checkpoints are not currently released.
The tokenizer was intentionally kept stable across the training lineage so checkpoints remain compatible.
Limitations
Klyra contains approximately 64M parameters and was exposed to approximately 3B cumulative pretraining and midtraining tokens prior to post-training.
Known limitations include:
limited factual knowledge
hallucination
weak long-form coherence
fragile multi-step reasoning
operation-selection errors
weak advanced mathematics
limited coding ability
repetition on longer generations
sensitivity to prompt format
weak exact instruction following in some checkpoints
no guarantee of factual correctness
1024-token training context
The project is intended primarily as a study of capability development in compact language models and should not be interpreted as a substitute for substantially larger production-oriented models.
Training-Efficiency Context
Klyra has seen substantially fewer pretraining/midtraining tokens than many competitive sub-100M language models.
This relatively limited token budget motivates further continued-pretraining experiments.
Attribution
Klyra uses a MiniMind-compatible model architecture/runtime.
MiniMind:
https://github.com/jingyaogong/minimind
Klyra training, data curriculum, checkpoint lineage, reasoning stages, RL branches, evaluation workflow, and OPD experiments are separate work developed for the Klyra project.
Please preserve applicable upstream attribution and license notices when redistributing derived code or checkpoints.
License
Klyra is released under the
Apache License 2.0
, subject to the licenses and terms of the upstream code and datasets used during training.
Individual training datasets may have their own licenses and usage requirements. Users are responsible for reviewing those terms before redistribution or commercial use.
Citation
If you use Klyra in research, you can cite the repository as:
@misc{klyra64m,
title = {Klyra-64M: A Compact Language Model with Staged Reasoning and Reinforcement Learning},
author = {Athallah, Zahir Hadi},
year = {2026},
howpublished = {Hugging Face},
note = {An academic research project developed by Informatics Engineering students at Politeknik Negeri Jakarta}
}
Klyra-64M huggingface.co is an AI model on huggingface.co that provides Klyra-64M's model effect (), which can be used instantly with this Jahirrrr Klyra-64M model. huggingface.co supports a free trial of the Klyra-64M model, and also provides paid use of the Klyra-64M. Support call Klyra-64M model through api, including Node.js, Python, http.
Klyra-64M huggingface.co is an online trial and call api platform, which integrates Klyra-64M's modeling effects, including api services, and provides a free online trial of Klyra-64M, you can try Klyra-64M online for free by clicking the link below.
Jahirrrr Klyra-64M online free url in huggingface.co:
Klyra-64M is an open source model from GitHub that offers a free installation service, and any user can find Klyra-64M on GitHub to install. At the same time, huggingface.co provides the effect of Klyra-64M install, users can directly use Klyra-64M installed effect in huggingface.co for debugging and trial. It also supports api for free installation.