New Models tab: HuggingFace discovery, download queue, and installed model management #18
Labels
No labels
backlog
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/avocet#18
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context: Model lifecycle (discover → download → manage) is a separate concern from running benchmarks. Adding it to BenchmarkView would make it too dense. A dedicated Models tab gives each stage room to breathe and makes the workflow explicit.
Tab layout (Models tab — new):
https://huggingface.co/org/modelor bareorg/model→ calls HF Hub API to fetch task type, size, description, licensehuggingface_hub.snapshot_download()with SSE progressBenchmark tab changes (minimal):
Backend — new router
app/models.py:GET /api/models/lookup?repo_id=— fetch HF Hub metadata, return task type + adapter recommendationGET /api/models/installed— scan models/ dir, return listGET /api/models/queue— return approval + download queue state (JSONL-persisted)POST /api/models/queue— add model to approval queuePOST /api/models/queue/{id}/approve— move to download queue, start downloadDELETE /api/models/queue/{id}— dismiss from queueGET /api/models/download/stream— SSE progress for active downloadDELETE /api/models/installed/{name}— remove model from diskHF pipeline_tag → adapter mapping:
zero-shot-classification/text-classification→ ZeroShotAdaptersentence-similarity/text-ranking→ RerankerAdaptertext-generation→ GenerationAdapter (future)Out of scope: Multi-model parallel downloads; training newly downloaded models immediately.
Acceptance criteria:
Related:
app/api.pySSE pattern (reuse for download stream);scripts/benchmark_classifier.pyMODEL_REGISTRY (extend with dynamic models)Benchmark tab: HuggingFace model discovery, download queue, and multi-category benchmarkingto New Models tab: HuggingFace discovery, download queue, and installed model management