YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

DragonCode-150M

DragonCode family โ€” 150M-parameter code-domain language model (pretraining tier).


โš ๏ธ Training reset โ€” issue log

Date: 2026-08-25

What happened: All prior pretraining checkpoints (steps 2000 โ†’ 46000, ~780M tokens) were deleted and discarded. Pretraining is being restarted from step 0 against the clean code-domain token cache.

Why (root cause): The early checkpoints were produced while the training script contained four critical bugs, which made the saved weights unsafe to continue from:

  1. Gradient-accumulation dead-loop โ€” (step+1) % grad_acc == 0 used the resumed step counter (misaligned), so optimizer.step() never fired and gradients accumulated indefinitely (looked like a hang; GPU pegged at 100%).
  2. LR decayed to 0 โ€” the LR schedule computed decay from the raw (resumed) step counter instead of token progress, so the learning rate collapsed to 0.0 after resume.
  3. bytes not JSON-serializable โ€” TrainState.rng_torch (bytes) crashed checkpoint save.
  4. allow_duplicate_filename param โ€” huggingface_hub 1.24.0's upload_folder() has no such arg, causing checkpoint push to retry-and-fail.

Additionally, an earlier script-version of the pipeline had trained on generic web corpora (fineweb-edu, SlimPaj627B, The-Pile) instead of the intended code-domain sources (codeparrot-clean, codeforces-cots) โ€” further invalidating those checkpoints.

Decision: Rather than resume from contaminated optimizer/weights state, all checkpoints were purged and training restarts clean from zero. Tokenized code-domain data (DragonCode-Tokenized-Pretrain, ~3.42B tokens) is retained and unaffected.


Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support