where-my-hug
v0.3.2Which parts of an ML need Hugging Face already covers.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
where_my_hug Where my hug at?
Step 1 of 3, before recommending any machine learning model or dataset. If compute, license, stack or data is missing, returns the questions to ask the user first: call again with the answers ("unknown" is fine). Then returns the method: split the ML need into parts, search Hugging Face and the other hubs for each with where_my_hug_search, and decide from what it finds which parts they cover (use a model as is, fine-tune one, train one) and which are plain code. Follow it.
| Parameter | Type | Description |
|---|---|---|
need * | string | The ML need in plain words: what goes in, what should come out, and what it is for |
compute | string | The hardware it has to run or train on, such as "one 24 GB GPU" or "CPU only". Size flags take the first "N GB" in it as the memory a model must fit in |
data | string | Training data there is or could be, such as "none" or "about 300 labeled photos" |
license | string | What the result may be used for, such as "commercial, closed source" or "research only" |
stack | string | What will call the model: language, runtime, framework |
where_my_hug_search Where my hug at? (searched live)
Step 2 of 3: searches Hugging Face for each part of the need (the task's most downloaded and trending, names holding each keyword, and the text of model and dataset cards), and Kaggle, Zenodo, ModelScope and Roboflow Universe, for models and datasets alike. One found on several hubs is listed once, naming the others. Returns what it found, with downloads, likes, license, size, age and how each turned up, to pick each part's verdict and candidates from. Then call where_my_hug_verify.
| Parameter | Type | Description |
|---|---|---|
parts * | array |
where_my_hug_verify Where my hug at? (checked live)
Step 3 of 3: checks every picked model and dataset id live on its hub, drops the ones that are not there, flags licenses, gating, staleness and low use, sizes each model against the compute (fits, a stretch that fits only quantized, or cloud, with who hosts it), marks picks the search didn't turn up as from memory, names every hub a pick is on, shows what it found that wasn't picked, and returns the report to show the user. If nextAction is SEARCH_FIRST or RECALL_REPLACEMENTS, do what its instructions say and call again.
| Parameter | Type | Description |
|---|---|---|
components * | array | |
need * | string | The ML need in plain words: what goes in, what should come out, and what it is for |
compute | string | The hardware it has to run or train on, such as "one 24 GB GPU" or "CPU only". Size flags take the first "N GB" in it as the memory a model must fit in |
recommendation | string | What to act on first: the one or two picks worth trying now and why (fit, license, use), then the ones to skip and why. Shown last, as "Start here" |