Skip to content

Hugging Face Transformers skill for loading Hub models, pipeline inference, generation, and Trainer fine-tuning.

CCM score
65 of 100
skills.sh installs
2.3K
GitHub stars
58.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Hub model loading, pipeline inference, text generation, and Trainer fine-tuning across NLP, vision, audio, and multimodal tasks
  • Targets Transformers 5.18.0 with a pinned install in a dedicated environment, plus optional dependencies for images, audio, OCR, and quantization
  • Enforces PyTorch-only v5 usage, pinned revision values for custom code, and token handling through hf auth login or HF_TOKEN
  • Designed for Python developers working with AutoModel, pipelines, tokenizers, or TrainingArguments inside the Transformers library

Install

$ npx -y skills add k-dense-ai/scientific-agent-skills --skill transformers -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Transformers

Overview

The Hugging Face Transformers library provides access to thousands of pre-trained models for tasks across NLP, computer vision, audio, and multimodal domains. Use this skill to load models, perform inference, and fine-tune on custom data.

Installation

Targets Transformers 5.18.0, verified against its released source on 2026-10-01. Native CPU checks use Python 3.11, Torch 2.14.1, Datasets 5.0.1, Accelerate 1.15.0, PEFT 0.21.2, and Hub 1.33.0. The Torch extra requires Torch >=2.5. Install in a dedicated environment:

uv venv --python 3.11 .venv-transformers
uv pip install --python .venv-transformers/bin/python "transformers[torch]==5.18.0" "torch==2.14.1" "huggingface-hub==1.33.0" "datasets==5.0.1" "accelerate==1.15.0" "peft==0.21.2"

Use .venv-transformers/Scripts/python.exe on Windows. Select an appropriate Torch build for the target hardware before installation. Hub 2.1.1 is newer, but Datasets 5.0.1 requires Hub <2; upgrading every package independently makes this training stack unsatisfiable. The separate esm SDK currently requires Transformers <5 and belongs in another environment.

Details

Repository
github.com/k-dense-ai/scientific-agent-skills
Categories
AI Agents & LLM Apps, Python, Data Science & Analytics
First seen
Jun 3, 2026

Questions

What does the transformers skill do for an agent?

The transformers skill guides an agent through Hugging Face Transformers for loading Hub models, running pipeline inference, text generation, and Trainer fine-tuning on NLP, vision, audio, and multimodal tasks. It applies when working with AutoModel, pipelines, tokenizers, generation configs, or TrainingArguments within the Transformers library.

How do I install the transformers skill?

Run npx -y skills add k-dense-ai/scientific-agent-skills --skill transformers -y in your project to install it. Once installed, the agent can load Hub models, run pipelines, and fine-tune with the Trainer API.

What does the transformers skill need before it works?

The transformers skill targets Transformers 5.18.0 and requires Python 3.10 or newer, PyTorch 2.5 or newer, and network access for Hub downloads. Gated or private Hub models also need a Hugging Face token, set with hf auth login or HF_TOKEN.

Where does the transformers skill sit among other skills in its category?

The transformers skill sits in the AI Agents & LLM Apps category on Claude Marketplaces. It is scoped to the Transformers library and excludes general machine learning work outside that library.

More from k-dense-ai/scientific-agent-skills

All 132

Similar to Transformers

More AI Agents & LLM Apps