Downloads · 30 days
0
HAR5HA-YELLELA/luffy-gpt
luffy-gpt is a text generation model from HAR5HA-YELLELA. Use it when you need the model to write or continue text. The card lists the license as mit.
49.4M parameter GPT transformer trained from scratch on One Piece (Luffy) dialogue, fine-tuned with 5,004 SFT conversation pairs using style token conditioning and GPT-2 subword tokenizer.
Downloads · 30 days
0
Access
Public
Updated Mar 24, 2026
Repo size
625 MB
Likes
0
Public
Click a slice to open those files.
.pth520 MB · 100%
From the Hugging Face model README
49.4M parameter GPT transformer trained from scratch on One Piece (Luffy) dialogue, fine-tuned with 5,004 SFT conversation pairs using style token conditioning and GPT-2 subword tokenizer.
| File | Params | Tokenizer | Description |
|---|---|---|---|
luffy_gpt.pth | 10.81M | char-level (96) | Base pretrained model (25k steps) |
luffy_gpt_finetuned.pth | 10.81M | char-level (96) | Fine-tuned with style tokens + SFT |
luffy_gpt_gpt2tok.pth | 49.39M | GPT-2 BPE (50,257) | Base pretrained with GPT-2 tokenizer (25k steps) |
luffy_gpt_gpt2tok_finetuned.pth | 49.39M | GPT-2 BPE (50,257) | Best model -- fine-tuned with SFT + EOS |
This is not a perfect chatbot. It's a small model trained from scratch on limited data. Works best with direct questions.
Prompts that work well:
# chat with best model (GPT-2 tokenizer)
python gpt.py --input dataset/processed/corpus_clean.txt \
--eval luffy_gpt_gpt2tok_finetuned.pth --interactive --style 1 \
--temperature 0.8 --top-k 50 --top-p 0.9 --repetition-penalty 1.2 \
--gpt2-tokenizer
# pretrain from scratch
python gpt.py --input dataset/processed/corpus_clean.txt \
--train luffy_gpt_gpt2tok.pth --epoch 25000 --gpt2-tokenizer \
--warmup-steps 500 --weight-decay 0.1
# fine-tune
python gpt.py --input dataset/processed/corpus_clean.txt \
--finetune luffy_gpt_gpt2tok_finetuned.pth \
--sft-input dataset/luffy_sft.txt --pretrained luffy_gpt_gpt2tok.pth \
--epoch 10000 --lr 5e-5 --warmup-steps 200 --weight-decay 0.1 \
--gpt2-tokenizer
You: who are you?
Luffy: I'm Monkey D. Luffy!
You: are you scared?
Luffy: Nope.
You: are you okay?
Luffy: Not really.
| Tokenizer | Vocab | 256 token context | Result |
|---|---|---|---|
| Character-level | 96 | ~40 words | val loss 1.23, garbled SFT |
| Custom BPE (SentencePiece) | 2,000 | ~125 words | overfitted, abandoned |
| GPT-2 BPE | 50,257 | ~100 words | best chatbot responses |
Built as part of the Build Fellowship program.