GraySoft
Projects Models Compare Cloud benchmarks FAQ Download guIDE โ†’
Model Intelligence Sheet

GGUFGuy/Tiny9 overview

Tiny9 ๐Ÿค๐Ÿง  Tiny9 is an extremely tiny neural network containing exactly 9 trainable parameters . Yes. Nine. Not 9 million. Not 9 thousand. Just 9 parameters . โ€ฆ

license:apache-2.0region:us
Downloads
0
Likes
0
Pipeline
โ€”
Author

Repository Files & Downloads

0 GGUF files detected
Direct downloads for local inference
FileTypeQuantizationSizeLink
Browse files on Hugging Face

Model Details

Model IDGGUFGuy/Tiny9
AuthorGGUFGuy
Pipelineโ€”
Licenseapache-2.0
Base modelโ€”
Last modified2026-09-06T08:10:49.000Z

Model README

---

license: apache-2.0

---

Tiny9 ๐Ÿค๐Ÿง 

Tiny9 is an extremely tiny neural network containing exactly 9 trainable parameters.

Yes. Nine. Not 9 million. Not 9 thousand. Just 9 parameters.

๐Ÿ“Š Model Stats

| Property | Value |

| --------------------- | ---------------------: |

| Trainable parameters | 9 |

| Checkpoint size | ~1.6 KiB |

| Actual parameter data | 36 bytes |

| Framework | PyTorch |

| File format | .pt |

| Task | Tiny numerical mapping |

๐Ÿง  What does it do?

Tiny9 learns a simple mapping between numbers.

The current experiment uses:

0 โ†’ 1
1 โ†’ 2
2 โ†’ 3
3 โ†’ 4
4 โ†’ 5
5 โ†’ 6
6 โ†’ 7
7 โ†’ 8
8 โ†’ 9
9 โ†’ 0

Because the model only has 9 parameters and uses a modulo-9 lookup, 0 and 9 share the same parameter. As a result, the trained model learns approximately:

0 โ†’ 0.50
1 โ†’ 2.00
2 โ†’ 3.00
3 โ†’ 4.00
4 โ†’ 5.00
5 โ†’ 6.00
6 โ†’ 7.00
7 โ†’ 8.00
8 โ†’ 9.00
9 โ†’ 0.50

This is intentional: the project demonstrates just how small a trainable PyTorch model can be.

๐Ÿ—๏ธ Architecture

The model contains a single trainable tensor:

self.w = nn.Parameter(torch.randn(9))

That's it.

The forward pass performs a lookup:

return self.w[x % 9]

Therefore:

9 parameters ร— 4 bytes per float32 = 36 bytes of raw parameter data.

The .pt file is larger because PyTorch also stores serialization and checkpoint metadata.

๐Ÿ“ฆ Loading the model

import torch
import torch.nn as nn

class Tiny9(nn.Module):
    def __init__(self):
        super().__init__()
        self.w = nn.Parameter(torch.randn(9))

    def forward(self, x):
        return self.w[x % 9]

model = Tiny9()
model.load_state_dict(torch.load("tiny9.pt", weights_only=True))
model.eval()

print(model(torch.tensor(5)).item())

Expected output:

~6.0

โš ๏ธ Limitations

Tiny9 is not a practical language model.

It has only 9 parameters, so it cannot store meaningful language knowledge or perform general-purpose reasoning.

This project is primarily an experiment in:

  • Extremely small neural networks
  • Parameter counting
  • PyTorch serialization
  • Learnable lookup tables
  • Seeing how far you can push the concept of a "tiny model"

๐Ÿ“œ License

This project is released for experimentation and educational purposes.

Run GGUFGuy/Tiny9 with guIDE

Download guIDE โ€” the AI-native code editor with local LLM inference and 69 built-in tools.

Download guIDE โ†’ ยท Browse 524k+ models ยท Compare models

Source: Hugging Face ยท Compare models