transformers

transformers is a skill for Claude Code from Lzy599775/agent-auto-sci-skills. It costs 58 tokens per session (2,594 once invoked), scanned A, a copy of transformers, MIT.

A guide to the Hugging Face Transformers library, which provides ready-made machine-learning models for text, images, audio, and combined media. It covers loading models, running predictions, and training models further.

In plain words
What is it for?
Use it when working with Transformers models, pipelines, tokenizers, training settings, or the Hugging Face Hub.
Why use it?
It gives developers a documented path through model installation, authentication, inference, and fine-tuning instead of requiring them to assemble those steps from scratch.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it when working with Transformers models, pipelines, tokenizers, training settings, or the Hugging Face Hub.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lzy599775/agent-auto-sci-skills/transformers
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Lzy599775/agent-auto-sci-skills --skill transformers
Clone the repo
git clone --depth 1 https://github.com/Lzy599775/agent-auto-sci-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for transformers

README.md
[![agentmods](https://agentmods.dev/badge/skills/lzy599775/agent-auto-sci-skills/transformers/github.svg)](https://agentmods.dev/skills/lzy599775/agent-auto-sci-skills/transformers)
Your own site
<a href="https://agentmods.dev/skills/lzy599775/agent-auto-sci-skills/transformers"><img src="https://agentmods.dev/badge/skills/lzy599775/agent-auto-sci-skills/transformers/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for transformers

Your own site · 80×15
<a href="https://agentmods.dev/skills/lzy599775/agent-auto-sci-skills/transformers"><img src="https://agentmods.dev/badge/skills/lzy599775/agent-auto-sci-skills/transformers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,594 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 91% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.02594
Opus 5.5 $0.00023 $0.01038
Sonnet 5.5 $0.00012 $0.00519
Haiku 4.5 $0.00006 $0.00259

Measured 16d ago against content hash 584d1c35d513, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

transformers scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

91% identical to transformers — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/kdense-ml-ai-selected/subskills/k-dense/transformers/SKILL.md · 215 lines

How it starts

The opening of the file, as written. The whole thing — 215 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Optional dependencies (install only for the selected workflow): Pillow 12.3.0 for images; torchvision matched to Torch and timm 1.0.30 for models that require them; librosa 1.0.0 and soundfile 0.14.0 for audio preprocessing (librosa requires Python >=3.12); FFmpeg for encoded audio file inputs; pytesseract plus Tesseract for OCR document pipelines; bitsandbytes 0.50.2 for supported quantization backends. See model loading before choosing precision or quantization.

Verification used tiny random models, synthetic input, and local save/reload only. Hub pretrained examples throughout this skill are illustrative: public checkpoint metadata and configurations were reviewed, but no weights or datasets were downloaded and no hosted inference or uploads were run. Optional export/distributed/hardware paths are source-checked, not end-to-end tested. See review evidence.

Read the full file on GitHub · 215 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago Changed · +2 lines · -3 tokens per session 584d1c35d513
  2. 1mo ago Changed · +17 lines c1b66b110831
  3. 1mo ago First seen · 196 lines · 61 tokens per session scan A 3495a4df73a2

Subscribe to this mod's changes

transformers is a skill published in the GitHub repository Lzy599775/agent-auto-sci-skills (2 stars, last pushed 11d ago), licensed MIT. It adds 58 tokens to every session and 2,594 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 91% identical to transformers, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

baoyu-danger-gemini-web

Generates images and text via reverse-engineered Gemini Web API. Supports text generation, image generation from prompts, reference images for vision input, and multi-turn conversations. Use when other skills need image generation backend, or when user requests "generate image with Gemini", "Gemini text generation"…

JimLiu/baoyu-skills · 74 tokens

understand-knowledge

Analyze a Karpathy-pattern LLM wiki knowledge base and generate an interactive knowledge graph with entity extraction, implicit relationships, and topic clustering.

Egonex-AI/Understand-Anything · 32 tokens

code-execution

Execute scientific Python code for computation, data analysis, simulation, and verification. Use when: (1) running statistical analyses, (2) numerical computation, (3) data processing pipelines, (4) verifying calculations, (5) running simulations. NOT for: literature search (use literature-search), writing papers (use…

beita6969/ScienceClaw · 78 tokens

nltk-linguistics

NLP and corpus analysis via NLTK. Use when: user asks about tokenization, POS tagging, parsing, sentiment, or corpus statistics. NOT for: deep learning NLP or transformer models.

beita6969/ScienceClaw · 46 tokens

model-assessment

Use when validating or evaluating a trained medical-imaging model. Audits split leakage and validation design, computes task-correct held-out metrics (Dice + HD95, AUROC + AUPRC, FROC, calibration), and covers uncertainty/OOD and Grad-CAM explainability, each with a gate.

Aperivue/medsci-skills · 66 tokens

model-scaffold

Use when you need a runnable PyTorch training repo for a medical-imaging task (segmentation, classification, detection, synthesis, self-supervised, or fine-tuning a pretrained backbone). Emits a patient-level seed-locked split, train/evaluate scripts, config and a Methods stub.

Aperivue/medsci-skills · 62 tokens