Tooluniverse ML inference utility
Generic ML/NLP/vision inference against any HuggingFace-hosted model (serverless hf-inference provider), text classification/sentiment.
In detail
Generic ML/NLP/vision inference against any HuggingFace-hosted model (serverless hf-inference provider) — text classification/sentiment, dense text embeddings for semantic similarity, masked-token prediction (including protein language models), summarization, zero-shot classification against caller-supplied labels, named entity recognition, extractive question answering, translation, image classification, and object detection. Use when someone asks to "classify this text with a HuggingFace model", "embed this text for similarity search", "run NER on this passage", "summarize this with model X", "zero-shot classify this against these labels", "predict the masked token", "classify/detect objects in this image", or names a specific HuggingFace model_id to run inference with. NOT a domain-analysis skill itself — this is a generic cross-domain utility other skills should reach for as a supporting step, the same way tooluniverse-clinical-terminology-lookup is a supporting lookup step rather than a research domain.
Safety check
- Not rated by Claude yet. We only sell skills Claude has read and rated 7 out of 10 or higher, so this one is a free link to its author.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: tooluniverse-ml-inference-utility
description: Generic ML/NLP/vision inference against any HuggingFace-hosted model (serverless hf-inference provider) — text classification/sentiment, dense text embeddings for semantic similarity, masked-token prediction (including protein language models), summarization, zero-shot classification against caller-supplied labels, named entity recognition, extractive question answering, translation, image classification, and object detection. Use when someone asks to "classify this text with a HuggingFace model", "embed this text for similarity search", "run NER on this passage", "summarize this with model X", "zero-shot classify this against these labels", "predict the masked token", "classify/detect objects in this image", or names a specific HuggingFace model_id to run inference with. NOT a domain-analysis skill itself — this is a generic cross-domain utility other skills should reach for as a supporting step, the same way tooluniverse-clinical-terminology-lookup is a supporting lookup step rather than a research domain. NOT for training/fine-tuning models (inference only, against already-hosted models). Honest: as of this writing, HuggingFace's serverless inference API requires a valid HF_TOKEN for every one of these 10 tools, on every model tested — live-verified, not assumed from the "optional" wording in the tools' own descriptions. Also covers finding a model_id first via HuggingFace Hub search (HuggingFace_search_models/get_model/search_datasets — a separate, token-free catalog API) and running inference on Replicate-hosted models (Replicate_run_prediction/get_prediction) as an alternative platform when a model isn't served by HuggingFace's hf-inference provider.
disable-model-invocation: true
---
# Generic ML/NLP/Vision Inference (HuggingFace)
Run any HuggingFace-hosted model for a standard inference task via ToolUniverse's
10 `HFInference_*` tools. This is a **utility skill**: reach for it as a supporting
step inside another workflow (e.g. summarizing a batch of retrieved abstracts,
extracting entities from clinical text, embedding sentences for a similarity
search) rather than treating it as a research domain in its own right.
## Honesty contract (read first) — the token requirement is not actually optional
Every tool's own JSON description says `HF_TOKEN` is an *optional* API key that
merely "raises rate limits." **Live testing on this date contradicts that**: all
10 tools, tested against the exact model IDs in their own `test_examples`, fail
with the identical error with no token set:
```
$ tu test HFInference_classify_text
✗ example 1 tool returned error: Unauthorized for
distilbert/distilbert-base-uncased-finetuned-sst-2-english. The model may be
gated/private; set a valid HF_TOKEN with access.
```
This reproduces across text and vision tools alike, and a dummy/invalid token
produces the exact same `Unauthorized` message (confirmed live) — so this is a
"needs a real, valid HuggingFace access token" requirement, not a cosmetic rate
limit. Treat `HF_TOKEN` as **required in practice** even though the tool schema
calls it optional:
1. **Check for `HF_TOKEN` before promising a result.** If it's unset, tell the
user plainly that HuggingFace's serverless inference now requires a token,
point them to https://huggingface.co/settings/tokens to create a free one
(a `read`-scope token is sufficient), and stop rather than guessing an output.
2. **Never fabricate a classification, embedding, summary, or entity list.**
If the call fails, report the failure — do not describe what a model would
...From mims-harvard's repository, Apache-2.0 licence.
Related skills
-
Checked
Citation claim checker
Checks each claim in a manuscript against its cited source and flags unsupported ones before submission.
8/101 credit -
Checked
Paper figure planning
Plans manuscript figures around one main claim each, with panel roles and legends that match your text.
7/101 credit -
Checked
Citation Checker
Checks every reference in your paper is real and accurately described, then fixes the bibliography errors.
8/101 credit -
Checked
Research paper critique
Critiques research papers on method, evidence and contribution, so you know how far to trust a study's claims.
7/101 credit -
Checked
Genes Behind A GWAS Hit
Finds genes behind your GWAS signal from predicted tissue expression, then narrows the real one.
8/101 credit -
Checked
Citation style formatting
Formats citations in APA, Chicago, Vancouver or IEEE with CSL, so reference lists match the style guide.
7/101 credit