Views
No views yet
Note: this is a custom-format model, not atransformersmodel. You load it with the included scripts (gpt2.py+chat.py), notAutoModelForCausalLM. It does say GPT-2 in the file names. But that is just because the model used the same architecture style
| Type | Decoder-only transformer (GPT-2 style) |
| Parameters | ~18.3M |
Embedding dim (n_embd) | 448 |
Heads (n_head) | 7 |
Layers (n_layer) | 6 |
Context length (block_size) | 256 |
| Vocab size | 8192 |
| Tokenizer | Byte-level BPE (<eot> id = 0) |
| Dropout | 0.1 |
| Final train loss | ~1.86 |
| File | What it is |
|---|---|
model.safetensors | The model weights |
config.json | Architecture config (custom format) |
gpt2.py | Model definition (the GPT-2-style architecture) |
chat.py | Run / generate from the model |
tokenizer_bpe/vocab.json, tokenizer_bpe/merges.txt | Byte-level BPE tokenizer |
big.pt | Full training checkpoint (model + optimizer), for resuming training only |
train_big.py, prep_bpe.py | Training and data-prep scripts |
transformers library.1# 1. Install deps
2pip install torch tokenizers safetensors numpy
3
4# 2. Download this repo (gives you the scripts + weights + tokenizer)
5pip install huggingface_hub
6hf download Gentraxyz/RecursiveComplete --local-dir RecursiveComplete
7cd RecursiveComplete
8
9# 3. Generate
10python chat.pychat.py loads gpt2.py (the architecture), the weights from model.safetensors, and the BPE tokenizer in tokenizer_bpe/, then lets you prompt the model for completions.