Model fix and deployment | Generated by AI

Home 2026.06

Done. Here’s what happened:

Root cause: The old model on RunPod had degenerate output because it was from the original nanoGPT checkpoint (same weights that loop). The new HF model (lzwjava/sec-edgar-gpt-124m-hf) has different, properly trained weights — but was saved in raw nanoGPT layout (transposed weights, no biases).

What was done:

  1. Local server.py — removed the 18-line embedding trimming hack
  2. RunPod — downloaded new model from HF, converted it:
    • Transposed linear weights [out, in][in, out] (GPT2Conv1D layout)
    • Added zero biases (original training used bias=False)
    • Vocab stays at 50257 (no padding)
  3. Server restarted on port 8888, generating real SEC-EDGAR financial text

Files on RunPod (/workspace/model/):

The model gets repetitive on long outputs (typical for 124M), but no more “ivableivable” garbage.


Generated by AI. Curating and sharing still takes effort. If you find it useful, feel free to donate. WeChat: @lzwjavaWeChat QR · X: @lzwjava · Say hi 👋

Back Donate