Hugging Face is now the primary transport for validator-published checkpoints.
At the end of each cycle:
- Validators upload the checkpoint to their configured Hugging Face repo.
- Validators commit the exact revision SHA on-chain.
- Miners pull that exact revision from Hugging Face.
The validator /get-checkpoint HTTP endpoint remains available as a compatibility and outage fallback. If Hugging Face is misconfigured on a validator, or if a miner's Hugging Face download fails, the miner will automatically fall back to that validator's HTTP endpoint.
What changed
- Hugging Face is now the primary checkpoint transport.
- Added explicit HF readiness checks so missing
HF_TOKENor an unsethf.checkpoint_repois surfaced in logs at startup instead of silently skipping uploads. - Pinned
huggingface_hubto a version compatible withtransformers 5.4.0. - Added failure-mode tests covering:
- missing tokens
- missing repos
- HF download errors
- validator HTTP fallback
- End-to-end HF upload/download against a real temporary repo passed with revision-pinned verification.
Validator actions
Step 0
Make sure your axon port is open.
Step 1
Add the following to your validator config.yaml:
hf:
checkpoint_repo: <your-hugging-face-account-id>/cycStep 2
Set a write-scoped HF_TOKEN in your Docker .env file, or in your shell environment for bare-metal deployments.
Step 3
Update and restart:
git pull
docker compose up -dIf you're running Watchtower, the image upgrade is automatic. However, the HF config must still be added manually. Validators without this config will continue serving checkpoints over HTTP, and miners will fall back to that path.
Miner actions
Please pull from the master branch.
- Hugging Face is tried first.
- HTTP fallback is automatic.
Note that validators must update manually, so the improvement from this release may not be immediately visible. Some validators may still be unreachable for submission if their submission path is not open.
Expected improvement
Checkpoint distribution now scales off the validator's uplink and onto Hugging Face's CDN.
As validators enable the HF path, high-fanout validators should see reduced slowdown during checkpoint distribution, starting from the next cycle.