Downloads · 30 days
25
24% of all-time downloads
lzwjava/sec-edgar-gpt-124m-hf
sec-edgar-gpt-124m-hf is a text generation model from lzwjava. 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.
A GPT-2 (124M) model trained from scratch on SEC-EDGAR filings (10-K, 10-Q, 8-K, etc.) using nanoGPT.
Downloads · 30 days
25
24% of all-time downloads
All-time downloads
106
Public
Parameters
163M
652 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors652 MB · 99%
From the Hugging Face model README
A GPT-2 (124M) model trained from scratch on SEC-EDGAR filings (10-K, 10-Q, 8-K, etc.) using nanoGPT.
| Parameter | Value |
|---|---|
| Architecture | GPT-2 (GPT2LMHeadModel) |
| Parameters | ~124M |
| Layers | 12 |
| Hidden size | 768 |
| Attention heads | 12 |
| Context length | 1024 |
| Vocab size | 50,257 |
| Precision | float32 |
from transformers import GPT2LMHeadModel, GPT2Tokenizer
model = GPT2LMHeadModel.from_pretrained("lzwjava/sec-edgar-gpt-124m-hf")
tokenizer = GPT2Tokenizer.from_pretrained("lzwjava/sec-edgar-gpt-124m-hf")
prompt = "The company reported total revenue of"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=200, temperature=0.8, top_k=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This model is trained for research and educational purposes — demonstrating nanoGPT training on domain-specific financial text. It is not suitable for production financial analysis or advice.