Text Generation
PyTorch
English

.[Supernova11c's GitHub wallpaper

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:

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.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Supernovallc/Supernova-tinyArc

Finetunes
1 model

Dataset used to train Supernovallc/Supernova-tinyArc

Paper for Supernovallc/Supernova-tinyArc