Wauplin's picture
|
download
raw
11.5 kB

Wauplin's reviews on packages/tasks/src/model-libraries.ts: pattern analysis

Scope: PRs merged between 2026-05-04 and 2026-11-04 that touch packages/tasks/src/model-libraries.ts, keeping only those merged by Wauplin and carrying at least one formal review from Wauplin.

  • 56 merged PRs touched the file. 44 kept. 12 excluded: 11 were merged by someone else (pcuenca, hanouticelina, julien-c, merveenoyan, NielsRogge, Kakulukian), and #2178 was merged by Wauplin without a formal review.
  • The data is in parquet/, with one table per entity, all keyed by pr_number. Raw API dumps are in raw/pr_<n>.json.

1. Quantitative profile

Metric Value
PRs 44 (36 from repeat contributors, 6 from users with no association, 1 first-time, 1 member)
Typical size +7/-0 lines (one library entry). Largest: +259/-54 (LTX snippets)
Files touched model-libraries.ts (44), model-libraries-snippets.ts (18)
Wauplin review states 43 APPROVED, 25 COMMENTED, 0 CHANGES_REQUESTED
Wauplin inline comments 34 across 21 PRs, of which 24 (70%) are ```suggestion blocks
Wauplin commits on contributor branches 25 in 14 PRs ("Apply suggestion from @Wauplin", "Merge branch 'main'")
Approvals with an ETA ("2-3 days before getting it live on the Hub") 30 / 43
Reviews/comments with πŸ€— / :hugs: 18
Time from PR open to first Wauplin review median ~26h, p25 ~7h, max ~62 days (backlog during August absence)
PRs where a bot (Cursor Bugbot, Copilot, Codex) reviewed first 19 / 44

Takeaway: these reviews are high-throughput and low-friction. Wauplin never formally blocks a PR. Most PRs get approved on the first pass, often with a cosmetic fix applied as a suggestion. Wauplin frequently commits the fix themselves ("I'll address it and merge") instead of starting another round-trip.

2. What gets checked (ordered by frequency)

  1. prettyLabel == repoName: the most common nit (#2190, #2273, #2332, #2404, #2428, #2563, #2354 via pcuenca). Rationale given: "we are trying to get prettyName == repoName (will maybe remove that attribute at some point)".
  2. filter: false: required unless the library is highly impactful ("true is reserved to highly impactful libraries", #2316). Wauplin often rewrites the whole entry as a suggestion that adds it (#2155, #2298, #2500, #2535).
  3. countDownloads correctness, which gets the deepest scrutiny:
    • Prefer a precise, root-level, once-per-model file, ideally a config file: path:"model-config.yaml" instead of an extension (#2277), path:"rl_agent_config.json" "better to restrict to root level files" (#2569).
    • Check the extension against what is actually in the Hub repos (#2298: "for what I can see there is only .pt files in the repo").
    • Remove rules that duplicate the default (config.json, config.yaml, hyperparams.yaml, params.json, meta.yaml): "this is the default rule already so let's remove it" (#2382).
    • Watch for overriding rules that break existing models that rely on the default (config.json in Mobilint, #2281).
    • Check the contributor's reasoning about download mechanics (#2196: allow_patterns filters files and does not force a download, so a missing config.json is never counted). Offer a concrete workaround (a hf_hub_download(..., force_download=True) + EntryNotFound snippet).
    • Double counting (several files per model) is acceptable if users normally download through the library: "looks fine then, as long as people are downloading files using the library" (#2229).
  4. Is library_name actually set on the Hub models? Check https://huggingface.co/models?other=<key>. If the list is empty, ask the author to add library_name: <key> to the model card metadata (#2247, #2298), or open the Hub PR yourself and link it (#2207).
  5. Key naming and typos: correct the key (e.g. "scail-2", flextab). Choose a distinct key when the architecture or library differs, instead of hijacking an existing one (#2207: longcat-video-avatar-1.5 vs longcat-video).
  6. The repo URL must be public (#2574: "doesn't seem to be public… currently getting a 404").
  7. Repo layout on the Hub: one model per repo, grouped with a Collection. This is a strong recommendation, blocking only when the layout makes the integration pointless (#2120). Otherwise it is a non-blocking note (#2260 RWKV).
  8. Snippets:
    • Minimal, copy-paste-runnable, and not opinionated about the user's environment: "Let's keep only the basic pip command" (#2203). "we usually recommend a single self-contained minimal example and then let the user explore the docs" (#2281).
    • It must work for every model with that library tag. If it can't, drop the snippet (#2316: "otherwise we drop them and refer users to check the docs instead").
    • A from_pretrained-like API in the library is the ideal (#2281, #2316).
  9. No tests for third-party library snippets in model-libraries-snippets.spec.ts: "no need for tests on external libraries" (#2550, #2404). Wauplin removes them via suggestions.
  10. Lint/format (tabs, not spaces). Ask once ("Can you fix the lint issue please?"), or fix it with a suggestion (#2535).
  11. Library vs. model family: registering single-org/model-family libraries is debated (apolinario on #2312). Wauplin defers to domain owners (apolinario, linoytsaban, pcuenca) on diffusion/snippet substance: "I'll defer to … to check actual changes" (#2404).
  12. Pre-release: libraries are normally shipped once models are public. Exceptions are called out: "Exceptionally I'll ship this PR before your model release… (we usually don't)" (#2272).

3. Tone and voice

  • Short, warm, informal. Typical approvals are one or two lines: "Looks good, thank you!", "Perfect πŸ‘", "Great! thank you :)", "πŸ”₯", "All good, thanks for the clean PR!"
  • The ETA ritual. Nearly every approval or merge comment includes "Expect 2-3 days before getting it live on the Hub πŸ€—". It becomes "3-5 days" when a download-count recompute is needed.
  • Thanks for iterating. On second-round approvals: "Thanks for iterating!", "thanks for the iterations".
  • Collaborative "let's": "let's remove it", "Let's do that yes!", "let's be precise on the file name", "let's not add tests for it IMO".
  • Always gives a reason, usually in a short clause after the suggestion: "usually good to have both in sync", "better to restrict to root level files", "(true is reserved to highly impactful libraries)".
  • Offers options with a stated preference: "I'd suggest: either … or … My favorite is the second option since…"
  • Honest about uncertainty and admits own slips: "To be honest I didn't know about…", "(I meant this typo sorry)", "Sorry again for the confusion".
  • Direct, non-hostile corrections of wrong premises: "this assumption is not correct unfortunately", followed by an explanation and a fix.
  • Firm but polite on etiquette: "Please don't aggressively ping maintainers on PRs, this is usually detrimental to a good ecosystem and doesn't make the review faster." (pcuenca adds: answer as a human, not via bots.)
  • Emoji: πŸ€— (most), πŸ‘, πŸ”₯, :). Light punctuation, occasional typos, lowercase starts are fine. No headers or bullet lists in routine reviews.
  • Small talk when appropriate: "Very nice release!", "When is the release expected btw?"
  • AI disclosure: when an AI-drafted review was posted (#2120), it was prefixed with a personal intro and suffixed with a disclosure note.

3b. Official guidelines vs. observed review practice

Sources: models-adding-libraries and models-download-stats. Copies are in docs/.

Guideline (docs) Observed in reviews
Lowercase, hyphen-separated id, alphabetical order Enforced. The key is fixed via suggestion (#2247, #2272), and contributors reordered entries after bot feedback (#2196).
repoName/prettyLabel use user-friendly casing Stricter in practice: both must be identical (the most frequent nit). This is not in the docs yet.
filter: false Enforced, with the >100 models rule from the code comment (#2316).
countDownloads optional; no duplicate counting; no rule if a default file is loaded Enforced (#2382 removed a default-duplicating rule). Practice adds: prefer a precise root-level file, ideally a config (#2277, #2569). Duplicate counting is tolerated if the library itself fetches a single file (#2229, #2344), consistent with the GGUF precedent in the docs.
At least one model on models?other=<id> before the PR Docs say this is required before opening. In practice it's handled during review (#2247, #2298), sometimes with Wauplin opening the Hub PR himself (#2207).
Snippets are recommended Stricter in practice: they must be minimal, work by copy-paste for every model with the tag, and not prescribe the environment. Otherwise drop them (#2203, #2281, #2316). The docs say nothing about this.
Registry is for modeling libraries, not file formats (code comment) Not challenged in this sample. Model-family libraries were debated on #2312 (apolinario).
Libraries should offer from_pretrained-like loading Echoed in reviews (#2281, #2316) as the ideal for snippets.
Publisher Analytics for granular stats Never mentioned in reviews. It's a useful answer for "count weights separately" / "recover lost counts" requests (#2442).
One model per repo Not in these docs, but it's a recurring recommendation (#2120, #2260, also pcuenca on #2354).
Docs say nothing about the time to go live, tests, or pinging Practice: "2-3 days before live on the Hub", no spec tests for external snippets (#2404, #2550), and no aggressive pinging (#2354).

Possible docs improvements that would cut down on review nits:

  • State that prettyLabel should equal repoName.
  • Add a "snippet quality" paragraph (minimal, runnable for all models, no env setup, no tests).
  • Recommend a root-level config file for countDownloads.
  • Recommend one model per repo.
  • Mention the 2-3 day delay before an entry goes live.

4. Decision flow (observed)

PR adds/edits a library entry
β”œβ”€ Repo URL public? ── no β†’ ask to make public (comment), wait
β”œβ”€ models?other=<key> non-empty? ── no β†’ ask to add library_name (or open Hub PR) β€” approve conditionally
β”œβ”€ entry nits (filter:false, prettyLabel==repoName, key typo, indentation) β†’ ```suggestion; approve in same pass
β”œβ”€ countDownloads
β”‚   β”œβ”€ duplicates default β†’ suggestion to remove
β”‚   β”œβ”€ too broad / not root-level / extension not in repos β†’ suggestion with precise path
β”‚   β”œβ”€ would break existing tagged models β†’ comment with options, COMMENTED (no approve yet)
β”‚   └─ relies on wrong download mechanics β†’ explain + concrete workaround, COMMENTED
β”œβ”€ snippet
β”‚   β”œβ”€ not runnable for all models β†’ ask to drop or generalise, COMMENTED
β”‚   β”œβ”€ too opinionated/long β†’ suggestion to trim (often applied by Wauplin, then approve)
β”‚   └─ adds spec tests β†’ suggestion to delete
β”œβ”€ specialised domain (diffusion, etc.) β†’ defer to domain reviewer
└─ all good β†’ APPROVE "Looks good, thank you! Expect 2-3 days before getting it live on the Hub πŸ€—" β†’ merge

Xet Storage Details

Size:
11.5 kB
Β·
Xet hash:
057def037803a97736ad5c0b066138d0a15e31aa9942ee7745e34ad2c446707f

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.