Skip to content

Add the hub tier: per-model frame libraries download on demand - #27

Merged
jdonaldson merged 1 commit into
mainfrom
frames-hub-tier
Jul 5, 2026
Merged

Add the hub tier: per-model frame libraries download on demand#27
jdonaldson merged 1 commit into
mainfrom
frames-hub-tier

Conversation

@jdonaldson

Copy link
Copy Markdown
Owner

load_library now resolves three tiers: user cache (wins per-frame) >
bundled (default backbone only) > hub — fingerprint-addressed .npz on
the HF dataset repo jdonaldson/turnstyle-frames (env-overridable via
TURNSTYLE_FRAMES_REPO). Network touched only on a full local miss;
downloads land in the standard HF cache (offline-safe). huggingface_hub
is already a transitive dep via transformers.

build_frame_library.py bundles only the default SmolLM2-1.7B; other
models save to the user cache and print the hub upload command.

Fit + uploaded: Qwen2.5-1.5B (e7304c85), Phi-4-mini (8f13adee),
SmolLM2-360M (6e715344) + registry.json. THE WHOLE 14-FRAME FAMILY
RECOVERS ON ALL FOUR BACKBONES (56 fits, min 0.75=weight, rest >=0.86);
the oblique-social pair replicates as every model's max off-diagonal
(competence-potency .38-.42); the relational-late cluster travels
(animacy last-or-near-last everywhere). Cold-download verified: cache
purged -> load_library pulls 14 frames from the hub. Tests: 11 pass
(new hub-tier test, network mocked).

load_library now resolves three tiers: user cache (wins per-frame) >
bundled (default backbone only) > hub — fingerprint-addressed .npz on
the HF dataset repo jdonaldson/turnstyle-frames (env-overridable via
TURNSTYLE_FRAMES_REPO). Network touched only on a full local miss;
downloads land in the standard HF cache (offline-safe). huggingface_hub
is already a transitive dep via transformers.

build_frame_library.py bundles only the default SmolLM2-1.7B; other
models save to the user cache and print the hub upload command.

Fit + uploaded: Qwen2.5-1.5B (e7304c85), Phi-4-mini (8f13adee),
SmolLM2-360M (6e715344) + registry.json. THE WHOLE 14-FRAME FAMILY
RECOVERS ON ALL FOUR BACKBONES (56 fits, min 0.75=weight, rest >=0.86);
the oblique-social pair replicates as every model's max off-diagonal
(competence-potency .38-.42); the relational-late cluster travels
(animacy last-or-near-last everywhere). Cold-download verified: cache
purged -> load_library pulls 14 frames from the hub. Tests: 11 pass
(new hub-tier test, network mocked).
@jdonaldson
jdonaldson merged commit 369b0e4 into main Jul 5, 2026
jdonaldson added a commit that referenced this pull request Jul 6, 2026
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