Supernova-tinyArc
A compact, from-scratch language model by Supernova AI and Software Foundations.
Supernova-tinyArc Base v1 is a 9.5-million-parameter autoregressive Transformer trained primarily for short English story generation.
It is an experimental base model, built with a custom PyTorch implementation and tokenizer.
Model Overview
| Property | Value |
|---|---|
| Model name | Supernova-tinyArc Base v1 |
| Architecture | LLaMA-style decoder-only Transformer |
| Parameters | 9,506,048 |
| Hidden size | 256 |
| Transformer layers | 6 |
| Attention heads | 8 |
| Intermediate size | 832 |
| Context length | 512 tokens |
| Vocabulary | 16,000 |
| Positional encoding | RoPE |
| Normalization | RMSNorm |
| Feed-forward network | SwiGLU |
| Embeddings | Tied |
| Framework | PyTorch |
Training
The model was trained from randomly initialized weights using the TinyStories dataset.
- Dataset: roneneldan/TinyStories
- Training tokens: approximately 463.1 million
- Validation tokens: approximately 4.66 million
- Optimizer steps: 15,000
- Effective batch size: 32,768 tokens per optimizer step
- Training hardware: NVIDIA Tesla T4
- Training duration: approximately 69 minutes
- Final recorded validation loss: 1.6054
- Approximate validation perplexity: 4.98
The TinyStories dataset contains short stories synthetically generated using GPT-3.5 and GPT-4. Its Hugging Face dataset card declares the CDLA-Sharing-1.0 license.
This repository does not redistribute the original training dataset.
Intended Use
This release is intended for:
- Short English story generation
- Small-model experimentation
- Learning about decoder-only Transformer architectures
- Research and educational experimentation
This is a base model, not an instruction-tuned assistant.
Limitations
The model has a narrow training domain and limited capacity.
It may:
- Repeat sentences or ideas.
- Lose track of a story's direction.
- Produce inconsistent details.
- Struggle with factual questions and general reasoning.
- Perform poorly on programming, mathematics, and other tasks outside its training focus.
It should not be treated as a reliable source of factual information.
Repository Structure
Supernova-tinyArc/
βββ checkpoints/
β βββ base/
β βββ best.pt
β βββ latest.pt
βββ config/
β βββ model.json
βββ tokenizer/
β βββ tokenizer.json
βββ src/
β βββ model.py
β βββ generate.py
βββ examples/
βββ README.md
βββ requirements.txt
βββ LICENSE
βββ MODEL_LICENSE.md
βββ NOTICE
Installation
Python 3.10 or newer is recommended.
pip install -r requirements.txt
Generate Text
From the repository root:
python src/generate.py \
--prompt "Once upon a time, a young inventor discovered" \
--max-new-tokens 150 \
--temperature 0.8 \
--top-k 50 \
--top-p 0.9
Use the latest checkpoint instead:
python src/generate.py \
--prompt "A little bird lived in a forest" \
--checkpoint checkpoints/base/latest.pt
The script automatically selects CUDA when available, otherwise CPU.
Checkpoints
Two checkpoint files are provided:
best.pt: checkpoint selected by validation loss.latest.pt: latest saved training checkpoint.
Both correspond to optimizer step 15,000 and have the same recorded validation loss.
These are full training checkpoints containing model weights and training state, not just model weights.
Tokenizer
The model uses its own ByteLevel BPE tokenizer with a vocabulary of 16,000 tokens.
Special tokens:
[PAD][UNK][BOS][EOS]
The tokenizer is included in tokenizer/tokenizer.json.
Development Roadmap
Supernova-tinyArc Base v1 is the foundational story-generation model.
The next planned stage is Supernova Spark, an instruction-tuned derivative intended to follow prompts and instructions more effectively.
Spark is a separate future development stage. It is not included in this Base release.
Attribution
This project was independently implemented and trained by Supernova AI and Software Foundations.
Dataset attribution:
- TinyStories by Ronen Eldan and contributors.
- Dataset: https://huggingface.co/datasets/roneneldan/TinyStories
- Research paper: https://arxiv.org/abs/2305.07759
Please consult the dataset's license and terms when using this model.
License
The software implementation and model weights have separate licensing terms.
See LICENSE for the source-code license and MODEL_LICENSE.md for the model-weight license.
Supernova AI and Software Foundations
Building experimental AI and software from scratch.