Run this model with HF Jobs
Run Supernovallc/Supernova-tinyArc on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Supernovallc/Supernova-tinyArc. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Supernovallc/Supernova-tinyArc on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Supernovallc/Supernova-tinyArc. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Supernovallc/Supernova-tinyArc. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Supernovallc/Supernova-tinyArc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Supernovallc/Supernova-tinyArc with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Supernovallc/Supernova-tinyArc")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Supernovallc/Supernova-tinyArc", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Supernovallc/Supernova-tinyArc with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Supernovallc/Supernova-tinyArc" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Supernovallc/Supernova-tinyArc", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Supernovallc/Supernova-tinyArc
- SGLang
How to use Supernovallc/Supernova-tinyArc with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Supernovallc/Supernova-tinyArc" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Supernovallc/Supernova-tinyArc", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Supernovallc/Supernova-tinyArc" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Supernovallc/Supernova-tinyArc", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Supernovallc/Supernova-tinyArc with Docker Model Runner:
docker model run hf.co/Supernovallc/Supernova-tinyArc
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.
docker model run hf.co/Supernovallc/Supernova-tinyArc