Dumber-1 / README.md
56m's picture
Update README.md
d974b92 verified
|
Raw History Blame Contribute Delete
12.6 kB
metadata
license: apache-2.0
language:
  - en
library_name: transformers
pipeline_tag: text-generation
datasets:
  - HuggingFaceFW/fineweb-edu
tags:
  - tiny-lm
  - sub-1m
  - fineweb-edu
  - llama
Sub-1M Tiny LM FineWeb-Edu 500M 47x Chinchilla

🧠 Dumber-535K

An ultra-compact 535,584 parameter language model trained completely from scratch on 500M tokens of FineWeb-Edu. Built for extreme scaling-law experiments and edge deployment research.

Params
535.5K
Tokens
500M
Context
512
Hidden Size
96
Vocab
768
💡 Model Status & Training Note
⚡
Ultra-Efficient Training: Pre-trained from scratch in just ~1 hour utilizing a single NVIDIA T4 GPU (×1), demonstrating extreme training throughput for sub-1M architectures.
🧪
Experimental Preview: This is an early research checkpoint provided as a work-in-progress preview. Outputs may exhibit instability, hallucination, or repetitive patterns under certain prompts.
🏗️

Architecture Details

Base Backbone Llama-based
Key Mechanisms RoPE, RMSNorm, SwiGLU
Weight Sharing Tied Embeddings
Layers / Heads 5 Layers / 4 Heads
⚡

Training Setup

Dataset FineWeb-Edu (10BT Sample)
Trained Volume ~500M Tokens
Over-Training Ratio ~47x Chinchilla
Tokenizer Byte-level BPE (768 Vocab)

📊 Evaluation Benchmark

0-shot evaluation tested with lm-evaluation-harness

Random Baseline: 25.0%
ARC-Easy (acc_norm) 28.79% (+3.79% over random)
ARC-Challenge (acc_norm) 22.18% (-2.82% under random)
* HellaSwag and PIQA scores are currently running and will be updated shortly.

💻 Quickstart

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "56m/dumber-535k"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)

prompt = "The scientific method is"
inputs = tokenizer(prompt, return_tensors="pt")

outputs = model.generate(
    **inputs,
    max_new_tokens=40,
    do_sample=True,
    temperature=0.7,
)

print(tokenizer.decode(outputs[0], skip_special_tokens=True))