Downloads · 30 days
0
HarryS64/10k-financial-slm
10k-financial-slm is a text generation model from HarryS64. Use it when you need the model to write or continue text. The card lists the license as mit.
A tiny GPT language model trained exclusively on SEC 10-K filings from financial companies. ~20 experiments at 5 minutes each (~2 hours total GPU time) on a MacBook Air using Apple Silicon (MPS).
Downloads · 30 days
0
Access
Public
Updated Mar 27, 2026
Repo size
40.8 MB
Likes
0
Public
Click a slice to open those files.
.pt33.6 MB · 82%
From the Hugging Face model README
A tiny GPT language model trained exclusively on SEC 10-K filings from financial companies. ~20 experiments at 5 minutes each (~2 hours total GPU time) on a MacBook Air using Apple Silicon (MPS).
| Property | Value |
|---|---|
| Parameters | 11.5M |
| Architecture | GPT (decoder-only transformer) |
| Layers | 4 |
| Hidden dim | 256 |
| Attention heads | 2 |
| Context length | 2,048 tokens |
| Vocab size | 8,192 (BPE) |
| Training data | 1,131 SEC 10-K filings (financial companies, SIC 6000-6411) |
| Training time | ~2 hours total (~20 x 5-min experiments on Apple M-series MPS) |
| Model | val_bpb | Domain |
|---|---|---|
| This model (specialized) | 1.645 | Financial 10-K text |
| Same architecture (general) | 2.146 | General web text (ClimbMix) |
23.3% better compression on financial text compared to the same architecture trained on general data.
| Metric | Value |
|---|---|
| Single sequence latency | 27ms (2,048 tokens) |
| Batched throughput | 75,000+ tokens/sec |
| Time per 10-K filing | ~1 second |
| Full SEC EDGAR database | ~22 hours |
| Approach | Cost |
|---|---|
| GPT-4o API ($2.50/1M tokens) | ~$15,000 |
| Claude Sonnet 4.6 API ($3.00/1M tokens) | ~$18,000 |
| Claude Haiku 4.5 API ($1.00/1M tokens) | ~$6,000 |
| GPT-4o-mini API ($0.15/1M tokens) | ~$900 |
| This model (local) | $0 |
Prices as of March 2026. Input tokens only.
Built using Karpathy's autoresearch framework, which enables autonomous hyperparameter experimentation. An AI agent (Claude) iteratively modified the training configuration, ran 5-minute training sessions, and kept improvements.
This model is a research artifact demonstrating domain-specific SLM training. Potential applications:
import torch
from train import GPT, GPTConfig
# Load checkpoint
ckpt = torch.load("model.pt", map_location="cpu")
config = GPTConfig(**ckpt["config"])
model = GPT(config)
model.load_state_dict(ckpt["model_state_dict"])
model.eval()
# Run inference
tokens = torch.tensor([[1, 2, 3, ...]]) # your tokenized input
with torch.no_grad():
logits = model(tokens)
If you use this model in your work, please cite:
@misc{10k-financial-slm-2026,
title={10-K Financial SLM: A Domain-Specific Small Language Model for SEC Filings},
year={2026},
url={https://github.com/harryschaefer93/autoresearch-10k-macos}
}