Repository navigation
PR-O: make refresh — update EXISTING models' metadata from HF (crawl stays trending) - #37
Merged
Merged
Conversation
#36) User: 'integrate the make command with a new crawler that crawls all models that already exist to update its data (metadata, downloads etc); then a separate make command that just crawls trending HF models.' - crawl_models.py: --refresh + --in flags; Crawler.refresh() re-fetches each existing model's HF detail (full expand set) and refreshes downloads, trending_score, name/author, license, commercial_ok, context_window, model_type, languages, knowledge_cutoff, benchmarks, servers, profile (rebuilt from live README/config), last_updated. Quants + hardware flags preserved (file sizes stable). index.json/meta.json skipped. - Makefile: 'refresh' target (nerdctl, host network, models+data mounts) — 'make crawl' stays the trending crawler; help + .PHONY updated - Tests: tests/test_crawler_refresh.py (5 hermetic tests: volatile fields update, quants/hardware preserved, profile rebuilt, schema-valid emit + artifacts, missing-dir raise, artifacts skipped, parser flags) + test_makefile refresh dry-run. pytest 130, jsdom 22/22, Playwright 7/7. Closes #36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
make refresh— a crawler that updates the EXISTING models (user: "integrate the make command with a new crawler that crawls the models that already exist to update their data — metadata, downloads etc; then a separate make command that just crawls trending HF models").make crawl— unchanged: crawls trending HF models intomodels/make refresh(NEW, nerdctl + host network + mounts) — updates each existing model file inmodels/: re-fetches the HF detail (full expand set) and refreshes downloads, trending_score, name/author, license, commercial_ok, context_window, model_type, languages, knowledge_cutoff, benchmarks, servers, profile (rebuilt from the live README/config), last_updated — while preserving quants + hardware flags (file sizes are stable)python -m whatllm.crawl_models --refresh [--out DIR] [--in DIR](--in defaults to --out; index.json/meta.json artifacts skipped)make -n refreshdry-run test. 130 pytest · 22/22 jsdom · 7/7 Playwright · 10× openspec validCloses #36