VoidOSS's picture
Upload README.md for VoidNet-25M-TinyStories release
5ae4951 verified
|
Raw History Blame Contribute Delete
6.38 kB
metadata
license: mit
language:
  - en
tags:
  - voidnet
  - ultraflashattention
  - character-level
  - tinystories
  - custom-architecture
  - pytorch
  - safetensors
datasets:
  - roneneldan/TinyStories

VoidNet-25M-TinyStories

VoidNet is an original, tokenizer-free sequence architecture built from scratch under VoidOSS and trained for 15 minutes on a single consumer 8 GB NVIDIA RTX 4060 Ti ($0.00 cloud cost).

Instead of forcing a heavy Transformer to run $O(n^2)$ attention over every raw character, VoidNet splits the pipeline into three clean stages:

  1. English → Void Packer: Compresses every 4 raw characters into 1 Void token (4× shorter sequence → 16× fewer pairwise attention comparisons and 4× fewer heavy core passes).
  2. Void Core (UltraFlashAttention): Operates purely in Void space using compressed attention heads (2×–4× narrower Q/K/V bottleneck + fused FlashAttention + local causal depthwise mixing, with RMSNorm, RoPE, and SwiGLU).
  3. Separate Void-to-English Translator: A lightweight 2-layer causal decoder conditioned on the Void vector via FiLM modulation (scale & shift) plus a local causal character-glue convolution (k = 5) that unpacks each Void token back into 4 crisp English characters.
  4. V_endText Control Token: Replaces the 13-character <|endoftext|> delimiter with a single reserved V_endText ID (71), flushes each story to the 4-char Void chunk boundary (V_pad = 72, masked out of loss) so every new story starts cleanly at sub-position 0, and halts generation instantly in Void space with zero story bleed.

Model Specs

Property Value
Architecture VoidNetV3LM (4× Void tokens + UltraFlashAttention + 2-Layer FiLM English Translator)
Parameters 25,207,945 (25.21M, 100.8 MB in safetensors)
Tokenizer None (raw characters) — 73 tokens (71 printable ASCII + V_endText=71 + V_pad=72)
Context Window 2,048 raw characters (512 Void tokens)
Training Hardware Single NVIDIA GeForce RTX 4060 Ti (8 GB) — 15.0 minutes ($0.00 cloud cost)
Data Trained 153.3M characters (146,391 aligned TinyStoriesV2-GPT4 stories, 9,358 steps)
Best Validation BPC 0.7086 BPC
Causality QA Strict zero-future-leakage verified (past_diff = 0.00e+00)

VoidNet-25M Training Curve


Benchmarks vs. Modern FlashAttention Transformer (RTX 4060 Ti)

1. Matched-Compute Coherence Showdown (~10.8M params, 3 min each, T = 2048)

Both models used identical modern plumbing (RMSNorm + RoPE + SwiGLU + PyTorch FlashAttention + cosine LR) and passed strict causality QA (past_diff = 0.00e+00):

Model Params Speed (T=2048) Data Trained (3 min) Final Val BPC ↓
FlashRoPE Transformer 10.67M 121K chars/s 21.86M chars 0.9353 BPC
VoidNet v3 10.91M 289K chars/s (2.38×) 51.97M chars 0.9117 BPC (WIN)

10M TinyStories Coherence Showdown

2. Long-Context Scaling up to 16K (T = 16,384, 8 GB VRAM)

Context (16K toks/step) FlashAttention TF VoidNet-v2-4× VoidNet-v2-8× 8× Speedup
1K 604K tok/s (27.1 ms) 1.29M tok/s (2.14×) 1.95M tok/s (8.4 ms) 3.23× (1.61× less VRAM)
4K 318K tok/s (51.5 ms) 1.22M tok/s (3.82×) 1.90M tok/s (8.6 ms) 5.97× (1.61× less VRAM)
8K 200K tok/s (81.8 ms) 1.10M tok/s (5.48×) 1.80M tok/s (9.1 ms) 9.00× (1.60× less VRAM)
16K 116K tok/s (140.7 ms) 926K tok/s (7.95×) 1.65M tok/s (9.9 ms) 14.18× (1.61× less VRAM)

VoidNet 16K Scaling


Sample Outputs (V_endText Instant Halt)

Prompt: Once upon a time, a little dog named Max found a shiny red ball in the park.
VoidNet-25M (halted_on_V_endText=True): Max loved to play with the ball and hit the string. The string would shoot a ball and make it snap. Max liked to step the ball with his strength and the ball began to roll. As the bounce rose and made the string go fast and break. Max was sad, but he did not give up. He felt sad and went home to find a new friend to play with.

Prompt: Lily wanted to build a tall tower with her wooden blocks, but
VoidNet-25M (halted_on_V_endText=True): her mom said no. Lily was sad and asked her mom, "Can I help you build the tower, please?" Her mom said, "Yes, you can, but you have to be careful and don't burn them." Lily was very happy and thanked her mom. She put the towel back in the tower and helped her mom build it again.

Prompt: One rainy morning, Tim heard a soft knock on the front door.
VoidNet-25M (halted_on_V_endText=True): He thought, "I can throw the knob and make it roll too." Tim was excited and called his friend, Lily. "Look, Lily!" Tim said. "I found a big rock and I can throw it away." Lily smiled and said, "Yes, it is! Thank you, Tim!" They played with the rock all day long. They ran and jumped and laughed. The rain became very small and wind. Tim and Lily were very happy. They learned that sharing is important.


Quickstart (4 Lines of Python)

pip install torch safetensors huggingface_hub
from huggingface_hub import hf_hub_download
import importlib.util

# Load standalone VoidNet reference implementation directly from this repo
mod_path = hf_hub_download("VoidOSS/VoidNet-25M-TinyStories", "modeling_voidnet.py")
spec = importlib.util.spec_from_file_location("modeling_voidnet", mod_path)
modeling_voidnet = importlib.util.module_from_spec(spec)
spec.loader.exec_module(modeling_voidnet)

model = modeling_voidnet.VoidNetModel.from_pretrained("VoidOSS/VoidNet-25M-TinyStories")
print(model.generate("Once upon a time, a little dog named Max found a shiny red ball in the park. ", seed=42))

Credits

Designed and trained by VoidOSS (Talmeez Ahmad) with Antigravity. Built to prove that independent researchers on a single consumer 8 GB GPU can design, verify, and ship original architectures from scratch.