mirror of
https://github.com/KohakuBlueleaf/KohakuHub.git
synced 2026-07-16 02:33:10 -05:00
Restructures the PR #77 demo work for the right separation of concerns: 1. **Primary seed creates the demo repos.** Adds 4 OrganizationSeed + 4 RepoSeed entries to ``scripts/dev/seed_demo_data.py``, so a single ``make reset-and-seed`` produces: - openai-community/gpt2 (README only; collides with HF GPT-2) - bigscience/bloom (README + small text note) - meta-llama/Llama-2-7b (README only; HF version is gated) - narugo1992-pr77-demo/guide (README; pure-fallback walk-through) mai_lin owns each org as super-admin. The repos are public (private=False) so anyone can browse them in the SPA at ``/{namespace}/{name}`` without logging in. 2. **Standalone verification command stays separate.** ``scripts/dev/seed_pr77_demo.py`` is now a thin one-shot script that drives every demo's contract via the real ``huggingface_hub`` library and asserts each step: PYTHONPATH=src python scripts/dev/seed_pr77_demo.py No seeding side-effects — just contract assertions. Exits 0 if every step holds end-to-end, non-zero on the first failure. 3. **READMEs are full verification guides.** Each demo's README has: - one-shot verification command (the python script above) - copy-pasteable curl commands with expected response bodies - python equivalents using huggingface_hub - the pre-fix counterfactual where it shines a light on cross-source mixing So a reviewer can either run one command, or hand-curl a single URL, or open the README in the SPA — all three lead to the same contract verification. Tested end-to-end: ``make reset-and-seed`` creates everything; the standalone verify script runs through 11 assertions across the 4 demos and reports "every PR #77 demo contract holds end-to-end". Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>