Transformers
Safetensors
English
charlm
tiny
tiny-lm
small-language-model
sub-1m
char-level
from-scratch
nanoGPT
TinyStories
Instructions to use Compactbot/char-gpt-1.2m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Compactbot/char-gpt-1.2m with Transformers:
# Load model directly from transformers import CharGPT model = CharGPT.from_pretrained("Compactbot/char-gpt-1.2m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Fix model.safetensors size on card: 4,869,136 -> 4,869,112 B (matches the actual artifact)
Browse files
README.md
CHANGED
|
@@ -76,7 +76,7 @@ Treat it as a working toy / reference architecture, not a useful language model.
|
|
| 76 |
|
| 77 |
## Files
|
| 78 |
|
| 79 |
-
- `model.safetensors` — 4,869,
|
| 80 |
- `model.py` — `CharGPT` + `from_config`
|
| 81 |
- `config.json`, `tokenizer_config.json` (char vocab)
|
| 82 |
- `sample.txt` — 240-char greedy-ish sample
|
|
|
|
| 76 |
|
| 77 |
## Files
|
| 78 |
|
| 79 |
+
- `model.safetensors` — 4,869,112 B (53 tensors, F32)
|
| 80 |
- `model.py` — `CharGPT` + `from_config`
|
| 81 |
- `config.json`, `tokenizer_config.json` (char vocab)
|
| 82 |
- `sample.txt` — 240-char greedy-ish sample
|