Victus Tiny v0.4
Experimental research model. Not a production-ready or general-purpose assistant.
Victus Tiny v0.4 is a very small decoder-only Transformer trained entirely from random initialization on a 370-example dataset, on CPU, as part of the Nova AI Platform by Mannan Hashmi. It is not a transformers model and is not a fine-tune or derivative of Qwen, Llama, GPT-2 or any other pretrained model. Load it with the included model.py / tokenizer.py / inference.py; AutoModel.from_pretrained will not work.
Its generated text is largely incoherent and repetitive (see Evaluation and Sample outputs). It is published for transparency, education and research on small from-scratch language models.
Model details
| Model / version | Victus Tiny v0.4 (checkpoint metadata records version string 0.4.0) |
| Creator | Mannan Hashmi (Nova AI Platform) |
| Architecture | Decoder-only Transformer (PyTorch nn.TransformerEncoder with a causal mask, pre-norm, GELU) |
| Parameters | 472,704 |
| Layers / hidden dim / heads | 2 / 64 / 4 (feed-forward dim 256) |
| Context block size | 96 tokens (learned position embeddings) |
| Dropout | 0.08 |
| Tokenizer | Word/punctuation, lowercase, custom (tokenizer.py) |
| Vocabulary | 2,863 entries (<unk> = index 0), built from the training split only |
| Output head | Untied linear layer, no bias |
| Framework / hardware | PyTorch 2.10.0+cpu, CPU only |
| Initialization | Random weights (trained from scratch) |
| Checkpoint | victus-tiny-v0.4.pt (1,958,855 bytes), SHA-256 34059ce5387bc1616c549f3cfcb42786f8c552626f0a1f2c62a753a97eb578f9 |
The parameter count is larger than the earlier v0.1 (about 285k) only because the vocabulary grew from 1,396 to 2,863; the layer count and width were not changed.
Which checkpoint is this?
victus-tiny-v0.4.pt is the best-validation inference checkpoint: the weights from optimization step 1,000 (best sampled validation loss 4.6927) of a run configured for 3,000 steps. Validation loss rose after step 1,000 while training loss kept falling (overfitting), so the later weights are not published as the inference model. The final resumable training state (last.pt, step 3,000) is not part of this repository.
Training
- Dataset:
victus-general-sft-v0.4.jsonl, 370 short single-turn conversations (source tagcurated-general-v0.1), SHA-256bc6d052b2eed1f9d4fd7730d0081b68404e40b02901f61d30996ebc0fa5bbe50. The dataset is not included in this repository. - Split: 333 training / 37 validation (10%, seed 42). The vocabulary was built from training data only.
- Format:
### User: <text>\n### Victus: <text>\n\n. There were no system turns in the training text. - Settings: batch size 8, AdamW, learning rate 3e-4, weight decay 0.01, seed 42, evaluation every 100 steps (8 batches). The checkpoint with the lowest sampled validation loss was kept.
- Known data issue: 2 assistant replies exceed the 96-token context window.
- Full details:
training/TRAINING_REPORT.md,training/metrics.json,config.json.
Installation
pip install -r requirements.txt # torch>=2.1
Loading and inference
Download the repository, then:
python inference.py "What is gravity?" --temperature 0 --max-new-tokens 48
From Python:
from inference import load_model, generate
model, vocab, config = load_model("victus-tiny-v0.4.pt")
print(generate(model, vocab, config, "What is gravity?", max_new_tokens=48, temperature=0.7, seed=0))
Notes:
- Prompts are wrapped as
### User: <prompt>\n### Victus:; generation stops at a turn boundary or role marker, and<unk>is never emitted. - The checkpoint is loaded with
torch.load(..., weights_only=True)and a strictload_state_dict. verify_numpy.pyis a torch-free NumPy re-implementation of the forward pass for checking the weights on machines without PyTorch (greedy decoding only; not the main inference path).
Evaluation
All numbers are from the project's own scripts on its own small validation split.
| Metric | Value |
|---|---|
| Best sampled validation loss (step 1,000) | 4.6927 |
Full held-out validation loss (evaluate.py) |
4.7875 |
| Final training loss of the run (step 3,000) | 1.3344 (validation 5.6526 at that step) |
| Non-empty generation rate | 1.0000 |
| Repetition rate | 0.5516 |
| Unknown-prompt-token rate | 0.0000 |
| Mechanical checks | passed |
These checks are mechanical sanity checks only. The repetition rate is high (the project's pass limit is 0.6), and passing does not demonstrate usefulness, accuracy or safety. There is no benchmark evaluation, no human evaluation and no safety evaluation. Files: evaluation/evaluation.json.
Sample outputs
Greedy decoding on the published weights (NumPy verification, see evaluation/greedy_samples_numpy_verification.txt; matches the samples recorded in evaluation.json):
- What is gravity? β
a list of the difference between a list and a list of a list of the difference between a list of the victus: a list of a list of ... - Hello β
what is a list.
Temperature-sampled outputs from the training report (identical weights; see evaluation/generation_samples_training_report.txt) for "How do I reverse a string in Python?", "Why does ice float on water?" and others were likewise incoherent and mixed unrelated topics.
Known limitations
- Outputs are mostly incoherent, repetitive and not factually reliable. It does not follow instructions in any dependable way.
- Trained on 370 examples with a 2,863-word vocabulary; any word outside that vocabulary maps to
<unk>. - 96-token context; word-level tokenizer; lowercase only.
- Strongly overfit if trained longer (validation loss rose after step 1,000).
- The evaluation set is only 37 examples and the checks are not capability tests.
- One test in the project's own suite (
test_timeout_and_cancel) failed before training; it concerns the project's serving timeout and not the weights. - English only (as far as tested). Not safety-tested.
Intended use
Studying, demonstrating and experimenting with training a tiny language model from scratch; as a baseline for future Victus Tiny versions; for teaching how a decoder-only Transformer pipeline fits together.
Out of scope: any production use, factual question answering, medical/legal/financial advice, safety-critical decisions, or presenting its output as authoritative.
Ethical considerations
The model is too small to produce reliable content, and its outputs should be treated as untrusted, often meaningless text. Do not present it as a capable assistant. The training data was curated by the author; the dataset is not redistributed here and has not been audited for bias or coverage, so no claims are made about fairness or safety.
License
Released under the MIT License (see LICENSE), copied from the Nova AI Platform project. Copyright (c) 2026 mannanhashmi5507-dot.
Citation
Mannan Hashmi. Victus Tiny v0.4 (Nova AI Platform). Experimental from-scratch PyTorch language model, 2026.
- Downloads last month
- -