Agent skill

Swin Transformer

by VectorSpaceLab in VectorSpaceLab/AREX-Skill

Use this repo skill for Microsoft Swin-Transformer image-classification model, config, data, checkpoint, SimMIM, Swin-MoE, and optional CUDA acceleration workflows.

MITAuto-check passedAI & LLM Engineering

Install Swin Transformer

skills CLI
$ npx skills add VectorSpaceLab/AREX-Skill --skill swin-transformer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install VectorSpaceLab/AREX-Skill swin-transformer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/VectorSpaceLab/AREX-Skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/repositories/repo-skills/swin-transformer .claude/skills/swin-transformer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
swin-transformer
GitHub stars
331
Token cost
~1.2k tokens
SKILL.md length
492 words
Files
10 (incl. scripts, references)
Skills in repo
157
Repo updated
First seen
Licence
MIT

At a glance

Use this repo skill for Microsoft Swin-Transformer image-classification model, config, data, checkpoint, SimMIM, Swin-MoE, and optional CUDA acceleration workflows.

  • Tasks that involve Computer vision
  • SKILL.md covers Quick routing, Baseline prerequisites, Safe helper scripts and Important boundaries, plus 1 more section
  • Runs Python scripts from its folder; calls python

What it does

Swin Transformer is an agent skill from VectorSpaceLab/AREX-Skill. Use this repo skill for Microsoft Swin-Transformer image-classification model, config, data, checkpoint, SimMIM, Swin-MoE, and optional CUDA acceleration workflows.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files, including scripts and reference files (for example `references/configuration.md`, `references/model-zoo-and-configs.md` and `references/repo-provenance.md`).

It sits in AI & LLM Engineering, covering Computer vision. It works with CUDA. The repository describes itself as: A Skill Library for Automated Machine Learning. The licence is MIT.

When your agent uses it

  • Tasks that involve Computer vision

Example prompts

  • “/swin-transformer”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit ac3fe1a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Swin Transformer loads about 1.2k tokens when it runs, and up to ~3.7k if it reads all its reference files. Until then it costs about 45 tokens; SKILL.md has 492 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~45
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from VectorSpaceLab/AREX-Skill at commit ac3fe1a, republished under its MIT licence (© VectorSpaceLab). 492 words, ~1,183 tokens.

Download SKILL.mdSave it as .claude/skills/swin-transformer/SKILL.md (or your agent's skills folder). This skill also uses 9 other files; get the full folder from GitHub.
name
swin-transformer
description
Use this repo skill for Microsoft Swin-Transformer image-classification model, config, data, checkpoint, SimMIM, Swin-MoE, and optional CUDA acceleration workflows.
disable-model-invocation
true
metadata.disco-role
operating
license
MIT

Swin-Transformer Repo Skill

Use this skill when a task involves the official Microsoft Swin-Transformer image-classification codebase: Swin V1/V2, Swin-MLP, SimMIM masked image modeling, ImageNet data layouts, pretrained checkpoint handling, supervised training/evaluation commands, Swin-MoE, or the optional fused CUDA window-process extension.

This is a self-contained operating guide. It does not require the original source checkout used during skill creation. When a workflow needs code execution, use the user's current checkout or installed copy of Swin-Transformer and the bundled helper scripts in this skill.

Quick routing

User intentRead next
Build or inspect SwinTransformer, SwinTransformerV2, SwinMLP, build_model, tensor shapes, FLOPs, or CPU smoke modelssub-skills/core-models/SKILL.md
Validate ImageNet folder/zip/22K layouts, understand --zip, map files, SimMIM data, checkpoint resume/pretrained behavior, or 22K-to-1K head remappingsub-skills/data-and-checkpoints/SKILL.md
Construct or debug supervised main.py commands for training, fine-tuning, evaluation, throughput, AMP, DDP launch, or --opts overridessub-skills/training-eval-cli/SKILL.md
Run or adapt SimMIM pretraining/fine-tuning/evaluation workflows and mask/loss checkssub-skills/simmim-workflows/SKILL.md
Work with Swin-MoE, Tutel, Apex fused optimizers/layernorm, or the fused CUDA window-process extensionsub-skills/moe-and-acceleration/SKILL.md
Need a config/model family map before choosing a routereferences/model-zoo-and-configs.md
Need shared YACS config and flag behaviorreferences/configuration.md
Need cross-cutting troubleshootingreferences/troubleshooting.md
Need to verify that a checkout/environment is usablescripts/check_env.py

Baseline prerequisites

Swin-Transformer is a research-code checkout rather than an ordinary packaged distribution. For code execution, future agents should work against a current checkout or source tree on PYTHONPATH and install the runtime dependencies relevant to the selected workflow:

  • Required for baseline inspection and CPU smoke checks: Python, PyTorch, torchvision, timm==0.4.12, yacs, PyYAML, numpy, scipy, and termcolor.
  • Required for full supervised or SimMIM training/evaluation: CUDA-capable PyTorch, GPUs, ImageNet-style data, checkpoints when evaluating/fine-tuning, and distributed launcher environment.
  • Optional: Apex for fused layernorm/fused optimizers, Tutel for Swin-MoE, and a compiled swin_window_process CUDA extension for --fused_window_process.

Minimal import smoke for a checkout:

bash
python - <<'PY'
from config import get_config
from models import build_model
from data import build_loader
print('Swin-Transformer modules import')
PY

If that fails, read references/troubleshooting.md before running full training.

Show full SKILL.md (190 more words)Show less

Safe helper scripts

  • Run scripts/check_env.py --repo-root <checkout> to check required imports and optional CUDA/Tutel/Apex/fused-extension availability without training or downloading.
  • Run scripts/inspect_swin_config.py --repo-root <checkout> --cfg <config.yaml> to summarize a YAML config and flag risky settings.
  • Run scripts/swin_cli_command_builder.py --help to assemble copyable command templates for supervised, SimMIM, and MoE workflows.

These helpers are safe by default: they do not download models or data, do not run distributed training, and do not build CUDA extensions.

Important boundaries

  • This skill covers image classification and the code in this repository. Object detection, semantic segmentation, video action recognition, feature distillation, and other downstream projects linked by the public README are separate repositories and are not covered here.
  • Full accuracy reproduction and throughput benchmarking are intentionally not used as skill-verification gates because they require large datasets, checkpoints, GPUs, and long distributed runs.
  • CPU smoke checks validate config/model/data plumbing only. They are not evidence that CUDA training, Swin-MoE, Apex, or the fused window kernel works.

Provenance and staleness

Read references/repo-provenance.md before deciding whether this skill matches a particular checkout. If source APIs, config layout, CLI flags, or dependency behavior differ, refresh this repo skill before relying on it.

© VectorSpaceLab, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 9 other files (scripts, references) in skills/repositories/repo-skills/swin-transformer of VectorSpaceLab/AREX-Skill.

  • SKILL.md
  • references/configuration.md
  • references/model-zoo-and-configs.md
  • references/repo-provenance.md
  • references/repo-routing-metadata.json
  • references/troubleshooting.md
  • scripts/check_env.py
  • scripts/inspect_swin_config.py
  • scripts/swin_cli_command_builder.py
  • sub-skills

Open the folder on GitHubat commit ac3fe1a

Compare with similar skills

Swin Transformer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Swin Transformer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Swin Transformer this skillVectorSpaceLab/AREX-Skill331—~1.2kAutomated safety check: PassMIT
TAO Image EmbeddingsNVIDIA/skills3.6k—~2kAutomated safety check: NotesApache-2.0
Teach A ModelAseiel/VideoHighlighter166—~839Automated safety check: PassAGPL-3.0
Deepstream DevNVIDIA/skills3.6k—~3.3kAutomated safety check: PassApache-2.0
Segment Anything Model GuideOrchestra-Research/AI-Research-SKILLs13k8 repos~3.3kAutomated safety check: PassMIT
CLIP Image-Text MatchingOrchestra-Research/AI-Research-SKILLs13k7 repos~1.7kAutomated safety check: PassMIT

Similar skills

  • Official

    Turns a parquet of image file paths into a parquet of embeddings with CLIP, SigLIP or a TAO checkpoint, using the TAO Data Services container, ahead of neighbor mining.

    3.6k GitHub stars~2k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check: notes
  • Teach A Model

    Aseiel/VideoHighlighter

    Train a custom VideoHighlighter action or object model from a few videos the user provides — cut into samples, sort with CLIP, review contact sheets, build, train, install only if better.

    166 GitHub stars~839 tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Deepstream Dev

    NVIDIA/skills

    Official

    NVIDIA DeepStream SDK development with Python pyservicemaker API.

    3.6k GitHub stars~3.3k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Segment Anything Model Guide

    Orchestra-Research/AI-Research-SKILLs

    Guide to using Meta's Segment Anything Model for zero-shot image segmentation with point, box or mask prompts, or automatic mask generation.

    13k GitHub starsUsed in 8 repos~3.3k tokens
    AI & LLM EngineeringAuto-check passed
  • CLIP Image-Text Matching

    Orchestra-Research/AI-Research-SKILLs

    Explains OpenAI's CLIP model for zero-shot image classification, image-text similarity, semantic image search and content moderation, with install steps and code patterns.

    13k GitHub starsUsed in 7 repos~1.7k tokens
    AI & LLM EngineeringAuto-check passed
  • Yolo Master Agent

    Tencent/YOLO-Master

    A skill your agent uses when the user wants to run a YOLO-Master task (train/val/predict/track/export/benchmark) or use the Agent Skill dispatcher.

    747 GitHub stars~755 tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed

More from VectorSpaceLab/AREX-Skill

All 157 skills in this repo
  • Agent Lightning

    VectorSpaceLab/AREX-Skill

    Use this repo skill for Agent Lightning package tasks: authoring trainable agents, tracing rewards and spans, running LightningStore/Trainer loops, using agl CLI services, choosing examples, and…

    331 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Agent Tools

    VectorSpaceLab/AREX-Skill

    A skill your agent uses when configuring LiteLLM for MCP tools, A2A agents, Claude Code/Cursor agent gateway traffic, MCP auth/OAuth, tool permissions, semantic filtering, or agent-specific proxy…

    331 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Agents And Awel

    VectorSpaceLab/AREX-Skill

    Build and debug DB-GPT agents, tools, skills, teams, and AWEL workflows, including deterministic local DAG runs and HTTP-trigger topology without assuming an LLM, credential, or external service.

    331 GitHub stars~2.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Agents And Middleware

    VectorSpaceLab/AREX-Skill

    Work on the actively maintained LangChain v1 agent package: initchatmodel, createagent, structured output, tools, middleware, embeddings initialization, provider routing, and agent runtime…

    331 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Agents Workflows

    VectorSpaceLab/AREX-Skill

    A skill your agent uses for giskard.agents async chat workflows, tools, prompt templates, structured outputs, retries, rate limiting, embeddings, and optional LiteLLM backend.

    331 GitHub stars~500 tokensUpdated 1 mo ago
    Auto-check passed
  • Alphafold3

    VectorSpaceLab/AREX-Skill

    A skill your agent uses for AlphaFold 3 input preparation, prediction command planning, output interpretation, and Python API inspection.

    331 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about Swin Transformer

What does Swin Transformer do?

Use this repo skill for Microsoft Swin-Transformer image-classification model, config, data, checkpoint, SimMIM, Swin-MoE, and optional CUDA acceleration workflows. Swin Transformer is an agent skill from VectorSpaceLab/AREX-Skill. Use this repo skill for Microsoft Swin-Transformer image-classification model, config, data, checkpoint, SimMIM, Swin-MoE, and optional CUDA acceleration workflows.

When should I use Swin Transformer?

Swin Transformer fits situations like: tasks that involve Computer vision.

How do I install Swin Transformer in Claude Code?

Run `npx skills add VectorSpaceLab/AREX-Skill --skill swin-transformer -a claude-code`. Or copy the skill folder (skills/repositories/repo-skills/swin-transformer in VectorSpaceLab/AREX-Skill) into .claude/skills/swin-transformer in your project. Claude Code loads it when a task matches its description.

How do I install Swin Transformer in Codex?

Run `npx skills add VectorSpaceLab/AREX-Skill --skill swin-transformer -a codex`. Or copy the skill folder (skills/repositories/repo-skills/swin-transformer in VectorSpaceLab/AREX-Skill) into .agents/skills/swin-transformer in your project. Codex loads it when a task matches its description.

Can I use Swin Transformer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add VectorSpaceLab/AREX-Skill --skill swin-transformer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/swin-transformer, .gemini/skills/swin-transformer, .github/skills/swin-transformer and .opencode/skills/swin-transformer in your project.

What does Swin Transformer need to run?

Going by SKILL.md and its folder, Swin Transformer needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Swin Transformer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Swin Transformer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Swin Transformer use?

Swin Transformer is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Swin Transformer use?

About 1.2k tokens (SKILL.md is roughly 4.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.5k tokens, read only when the agent opens those files.

What are the alternatives to Swin Transformer?

Skills that share tags, products or a category with Swin Transformer: TAO Image Embeddings (NVIDIA/skills, 3.6k stars), Teach A Model (Aseiel/VideoHighlighter, 166 stars), Deepstream Dev (NVIDIA/skills, 3.6k stars) and Segment Anything Model Guide (Orchestra-Research/AI-Research-SKILLs, 13k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Swin Transformer?

VectorSpaceLab (a GitHub organization) maintains it in VectorSpaceLab/AREX-Skill, which has 331 GitHub stars. The repository holds 157 skills in this directory. The repository was last updated on September 3, 2026.

Source: VectorSpaceLab/AREX-Skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.