Skip to content

Miner-side accepted-registry snapshot download + publish integration#25

Merged
ai-hpc merged 2 commits into
mainfrom
feat/registry-snapshot-download
Jul 15, 2026
Merged

Miner-side accepted-registry snapshot download + publish integration#25
ai-hpc merged 2 commits into
mainfrom
feat/registry-snapshot-download

Conversation

@ai-hpc

@ai-hpc ai-hpc commented Jul 15, 2026

Copy link
Copy Markdown
Member

Summary

SparkDistill #119 publishes accepted_registry_snapshot.jsonl on gittensor-model-hub/sparkproof-mining and pins accepted_registry_snapshot_sha256 in mix_manifest.json. SparkProof already accepted --registry-snapshot at release-gate time, but miners had to manually huggingface-cli download and verify the sha256 themselves.

This PR adds the miner-facing half of that workflow directly in SparkProof:

  • sparkproof/triton_dataset/registry_snapshot.py — download mix_manifest + snapshot from HF, verify sha256/row pins
  • sparkproof-download-registry-snapshot — CLI + scripts/download_registry_snapshot.sh
  • sparkproof-publish-dataset --mining-repo — auto-download verified snapshot and pass to release gate (bare flag → canonical mining repo)
  • --registry-snapshot + --mining-repo together verifies a local file against live pins

Building the snapshot from datasets/registry.jsonl stays in SparkDistill (eval.export_registry_snapshot) — maintainer/CI only.

Miner usage

scripts/download_registry_snapshot.sh --out-dir ./snapshots

sparkproof-publish-dataset --bundle bundles/run-001 --repo-id you/dataset \
  --release-gate --mining-repo

Test plan

  • uv run pytest tests/test_registry_snapshot.py — 5 passed
  • uv run ruff check on changed files — clean

ai-hpc added 2 commits July 15, 2026 12:12
SparkDistill publishes accepted_registry_snapshot.jsonl on sparkproof-mining
with sha256 pins in mix_manifest.json. Miners can now download and verify
that snapshot in SparkProof (sparkproof-download-registry-snapshot) and pass
it to the release gate via --registry-snapshot or --mining-repo on publish.
- Mock huggingface_hub via sys.modules so CI passes without publish extra
- docs/MINER_GUIDE.md with registry dedupe workflow
- README links to miner guide; CHANGELOG [0.1.2]
@ai-hpc
ai-hpc merged commit 7e5d348 into main Jul 15, 2026
1 check passed
@ai-hpc
ai-hpc deleted the feat/registry-snapshot-download branch July 15, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant