Downloads · 30 days
0
iko-01/iko-004
iko-004 is a machine learning model from iko-01. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Continued Pre-training of GPT-2 Medium (355M) with SuRe-Interleave protection against catastrophic forgetting
Downloads · 30 days
0
Access
Public
Updated Mar 1, 2026
Repo size
75.7 MB
Likes
0
Public
Click a slice to open those files.
.pt50.5 MB · 64%
From the Hugging Face model README
Continued Pre-training of GPT-2 Medium (355M) with SuRe-Interleave protection against catastrophic forgetting
reddit-v5-dedupe-pii-nsfw-toxic-0074.json.gziko-004 is the fourth model in the iko series — a chain of continued pre-training runs starting from the original GPT-2 Medium checkpoint.
Each step takes one new Reddit shard from the Dolma corpus (deduplicated, PII/NSFW/toxic filtered) and continues unsupervised language modeling while trying to preserve as much previous knowledge as possible.
iko-004 applies a lightweight version of the SuRe-Interleave recipe described in the associated research note/paper draft:
Goal: achieve longer, more stable continued pre-training without rapid degradation of earlier Reddit styles/domains.
Primary intended use
Not intended for
Known limitations
| Field | Value |
|---|---|
| Base model | iko-003 (itself continued from iko-002) |
| Architecture | GPT-2 Medium (355M) |
| Adapter | LoRA (r=32, α=64, dropout=0.05) |
| Target modules | c_attn, c_proj, c_fc |
| Quantization | 4-bit NF4 + double quant |
| Sequence length | 512 |
| Effective batch size | 16 (2 × 8 gradient accumulation) |
| Learning rate | 2.2 × 10⁻⁵ |
| Optimizer | AdamW 8-bit |
| Scheduler | cosine decay + warmup |
| Training steps | ~250–270 (≈ 82 min on Colab T4) |
| Replay buffer | ~4000 examples from previous shard (0053) |
| New data consumed | ~62k documents from shard 0074 |
| Hardware | Google Colab Tesla T4 (single GPU) |
| Framework | transformers + peft + trl + bitsandbytes |
| Date | March 2026 |
No formal zero-shot / few-shot leaderboard evaluation yet.
Preliminary manual checks show:
You are very welcome to run perplexity on held-out Reddit text or downstream tasks and open a discussion / PR with results.
from transformers import pipeline, AutoTokenizer, AutoModelForCausalLM
model_id = "iko-01/iko-004"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype="auto",
device_map="auto"
)
pipe = pipeline(
"text-generation",
model=model,
tokenizer=tokenizer,
max_new_tokens=180,
do_sample=True,
temperature=0.85,
top_p=0.92,
repetition_penalty=1.05
)
prompt = """Write a sarcastic reddit comment about someone overusing AI emojis:"""
out = pipe(prompt)[0]["generated_text"]
print(out)
If you use iko-004 in academic work or public experiments, feel free to cite:
@misc{iko-series-2026,
author = {Younes (machkour)},
title = {iko — Continued Pre-training Series on Filtered Reddit Shards},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/iko-01/iko-004}}
}