Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

tooluniverse-ml-inference-utility

БесплатноБез исполняемых скриптовНе проверен

Generic ML/NLP/vision inference against any HuggingFace-hosted model (serverless hf-inference provider) — text classification/sentiment, dense text embeddings…

mims-harvardот mims-harvard★ 1 813 звёзд на GitHub

Об этом скилле

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 probably say.
  3. A working call can still fail per-model. Some models are gated (require accepting a license on the HuggingFace model page even with a valid token) or cold (first call after inactivity can 503 — retry once with wait_for_model: true before concluding a model is broken).

Because no valid HF_TOKEN was available while building this skill, the parameter/response documentation below is schema-derived (from the tools' own parameter/return_schema definitions), not captured from a successful live call. The specific biomedical model_id values named below are pulled directly from the tools' own JSON descriptions, which label them "Verified-live" — that verification was performed by whoever built these tools, not re-confirmed here. Re-verify with a real HF_TOKEN before treating any specific model's output quality as proven; the parameter shapes and error-handling behavior above ARE independently confirmed live.

When to Use This Skill

Apply when a task needs a quick, generic ML inference call against a named (or freely chosen) HuggingFace model rather than a purpose-built ToolUniverse tool:

  • Sentiment/topic/emotion classification of a passage of text
  • A dense embedding vector for semantic search or similarity scoring between two texts (including PubMed-tuned or protein-sequence embedding models)
  • Predicting a masked token — including protein language models like ESM2 for amino-acid-position prediction (for actual missense-variant pathogenicity scoring, prefer a purpose-built log-likelihood-ratio tool if one exists in ToolUniverse rather than raw fill-mask, which only ranks tokens)
  • Summarizing a passage with a specific named model
  • Classifying text against an arbitrary, caller-supplied set of labels with no model retraining (zero-shot)
  • Extracting named entities (people, organizations, drugs, diseases — several biomedical NER models are directly supported) from a passage
  • Extractive question answering against a supplied context passage
  • Translating text where the language pair is fixed by the chosen model
  • Image classification or object detection against a supplied image URL or local file path

NOT for (route elsewhere):

  • Synthesizing/summarizing a multi-source literature review — that's the calling model's own reasoning task in tooluniverse-literature-deep-research, not a single-document HFInference_summarize call. Reach for HFInference_summarize only when the task specifically calls for a named external model's summary (e.g. reproducing a paper's own summarization benchmark, or batch-summarizing many documents with one consistent model)
  • Purpose-built biomedical NLP already covered by a dedicated ToolUniverse tool (e.g. a variant-pathogenicity scorer, a dedicated protein-embedding tool) — prefer the purpose-built tool; use HFInference_* as the fallback when no dedicated tool exists for the exact model/task needed
  • Training or fine-tuning a model — these tools only call already-hosted models for inference

The 10 Tools

All 10 share the same request shape: model_id (required — the HuggingFace

Полный SKILL.md на GitHub

Установить tooluniverse-ml-inference-utility в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/hf_inference_tool_reference.md

FAQ

Что делает скилл tooluniverse-ml-inference-utility?

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.

Как установить скилл tooluniverse-ml-inference-utility?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл tooluniverse-ml-inference-utility запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить tooluniverse-ml-inference-utility с