mirror of
https://github.com/KohakuBlueleaf/KohakuHub.git
synced 2026-07-17 03:04:41 -05:00
Adds a fourth demo repo at ``meta-llama/Llama-2-7b`` — same path as
the real (gated) HuggingFace repo, locally a README only. Documents
the strict-consistency contract against a gated upstream:
local-namespace ownership applies even when the upstream variant is
gated. Reading a non-local file under this local repo surfaces
``EntryNotFoundError`` from the local handler — never HF's
``GatedRepo`` 401, never bytes from HF.
Verified end-to-end on the dev backend:
$ curl -i .../meta-llama/Llama-2-7b/resolve/main/config.json
→ 404 + X-Error-Code: EntryNotFound, no X-Source-Count
(local short-circuit; HF's gated response never reached client)
For comparison, request a gated HF repo with no local collision:
$ curl -i .../meta-llama/Llama-2-70b/resolve/main/config.json
→ 401 + X-Error-Code: GatedRepo, x-source-count: 1
(chain ran; aggregate carries GatedRepo)
Same upstream gating, different outcomes based on whether the local
namespace owns the path. The narugo1992-pr77-demo/guide README is
extended with the pure-fallback gated case so reviewers can hit both
sides without leaving the guide.
Drive-by: switched the seed's idempotency check from path-presence to
content-size equality. Re-running the seed after a script-side
README rewrite now correctly re-uploads (was: silently skipped on
size mismatch).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>