Card param count is ~9.5% low: 985,728 in the checkpoint vs ~900K on the card

#1
by Compactbot - opened

Hi! I was auditing parameter counts on tiny models and wanted to flag a small discrepancy here.

The card says ~900K / ~0.9M parameters, but the actual checkpoint holds 985,728 β€” closer to a 1M model.

What I checked:

  • model.safetensors: 52 tensors, all F32, 985,728 stored elements
  • config.json (GPT2LMHeadModel, vocab 1375, n_embd 128, 4 layers, n_head 4, n_positions 128, n_inner nullβ†’512, tie_word_embeddings: true) computes to exactly 985,728:
    • wte 176,000 + wpe 16,384 + 4 Γ— 198,272 (per-layer) + ln_f 256
  • File size 3,947,952 B = 8 + 5032 (header) + 985,728 Γ— 4 β€” exact
  • Only wte present, no separate lm_head (properly tied) βœ“

So the artifact is internally consistent; it's just that the card's "~900K" under-reports by 85,728 (about 9.5%). The model is really ~0.99M.

Happy to open a one-line PR to update the card if you'd like β€” just say the word. Otherwise no action needed, this is a minor cosmetic thing.

Hi! I was auditing parameter counts on tiny models and wanted to flag a small discrepancy here.

The card says ~900K / ~0.9M parameters, but the actual checkpoint holds 985,728 β€” closer to a 1M model.

What I checked:

  • model.safetensors: 52 tensors, all F32, 985,728 stored elements
  • config.json (GPT2LMHeadModel, vocab 1375, n_embd 128, 4 layers, n_head 4, n_positions 128, n_inner nullβ†’512, tie_word_embeddings: true) computes to exactly 985,728:
    • wte 176,000 + wpe 16,384 + 4 Γ— 198,272 (per-layer) + ln_f 256
  • File size 3,947,952 B = 8 + 5032 (header) + 985,728 Γ— 4 β€” exact
  • Only wte present, no separate lm_head (properly tied) βœ“

So the artifact is internally consistent; it's just that the card's "~900K" under-reports by 85,728 (about 9.5%). The model is really ~0.99M.

Happy to open a one-line PR to update the card if you'd like β€” just say the word. Otherwise no action needed, this is a minor cosmetic thing.

Wow! Thanks for pointing that, im going to change this.

Sign up or log in to comment