Downloads · 30 days
18
10% of all-time downloads
Fu01978/gpt2-mega-wiki-logic
gpt2-mega-wiki-logic is a text generation model from Fu01978. Use it when you need the model to write or continue text. It is set up for transformers.
This model is a fine-tuned version of GPT-2 (Base) trained on a diverse "mini-pile" of 14 datasets ranging from French history and Peruvian law to programming concepts and esoteric texts. It is designed to be a versat…
Downloads · 30 days
18
10% of all-time downloads
All-time downloads
189
Public
Parameters
124M
498 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors498 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of GPT-2 (Base) trained on a diverse "mini-pile" of 14 datasets ranging from French history and Peruvian law to programming concepts and esoteric texts. It is designed to be a versatile text-completer that can shift styles based on the input prompt.
This model was created to explore the limits of "Knowledge Density" in small language models. By mixing high-fact density data (Wikipedia, News) with specialized technical data (Programming, Law) and historical texts, the model acts as a "Jack-of-all-trades" completion engine.
The model is best used for constrained text completion. It excels when given a clear context or "trigger phrase" to help it navigate its diverse training data.
Users should use Beam Search ($num_beams \ge 3$) and a high Repetition Penalty ($1.5+$) to prevent the model from entering logic loops or mixing unrelated datasets.
Use the code below to get started with the model.
from transformers import pipeline
generator = pipeline("text-generation", model="Fu01978/gpt2-mega-wiki-logic")
prompt = "In the Python programming language, a decorator is"
print(generator(prompt, max_new_tokens=50, repetition_penalty=1.5, num_beams=5)[0]['generated_text'])
The model was trained on a combined pool of 123233 rows.
| Step | Training Loss |
|---|---|
| 100 | 3.0273 |
| 200 | 2.8873 |
| 300 | 2.7780 |
| 400 | 2.8189 |
| 500 | 2.8553 |