Downloads · 30 days
26
24% of all-time downloads
submarat/gpt2-small-fineweb-edu-10b-sft
gpt2-small-fineweb-edu-10b-sft is a text generation model from submarat. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
Instruction-tuned version of submarat/gpt2-small-fineweb-edu-10b (a 124M GPT-2 reproduced from scratch on 10B FineWeb-Edu tokens), fine-tuned on Alpaca-cleaned with TRL's SFTTrainer (completion-only loss).
Downloads · 30 days
26
24% of all-time downloads
All-time downloads
107
Public
Parameters
124M
996 MB on disk
Likes
0
Public
Click a slice to open those files.
.onnx498 MB · 50%
From the Hugging Face model README
Instruction-tuned version of submarat/gpt2-small-fineweb-edu-10b
(a 124M GPT-2 reproduced from scratch on 10B FineWeb-Edu tokens), fine-tuned on
Alpaca-cleaned with TRL's
SFTTrainer (completion-only loss).
posttraining/)It's a toy: at 124M it follows simple instructions and holds the format, but it's shallow and hallucinates confidently. That's the point — it's a hands-on pretrain → SFT pipeline, not a usable product.
### Instruction:
{instruction}
### Response:
from transformers import AutoModelForCausalLM, AutoTokenizer
m = AutoModelForCausalLM.from_pretrained("submarat/gpt2-small-fineweb-edu-10b-sft")
tok = AutoTokenizer.from_pretrained("submarat/gpt2-small-fineweb-edu-10b-sft")
prompt = "### Instruction:\nList three tips for staying focused while studying.\n\n### Response:\n"
ids = tok(prompt, return_tensors="pt").input_ids
out = m.generate(ids, max_new_tokens=80, do_sample=True, top_k=40, temperature=0.7,
repetition_penalty=1.3, pad_token_id=tok.eos_token_id)
print(tok.decode(out[0][ids.shape[1]:], skip_special_tokens=True))
submarat/gpt2-small-fineweb-edu-10b (124M, exact-GELU)Trained alongside a DPO variant, submarat/gpt2-small-fineweb-edu-10b-dpo.