Agent skill

Mixed Precision

by aiming-lab in aiming-lab/AutoResearchClaw

Use FP16/BF16 mixed precision to accelerate training and reduce memory.

MITAuto-check passedAI & LLM Engineering

Install Mixed Precision

skills CLI
$ npx skills add aiming-lab/AutoResearchClaw --skill mixed-precision -a claude-code

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

GitHub CLI
$ gh skill install aiming-lab/AutoResearchClaw mixed-precision --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/aiming-lab/AutoResearchClaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/researchclaw/skills/builtin/tooling/mixed-precision .claude/skills/mixed-precision && 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
mixed-precision
GitHub stars
15k
Token cost
~275 tokens
SKILL.md length
52 words
Files
1
Skills in repo
34
Repo updated
First seen
Licence
MIT

At a glance

Use FP16/BF16 mixed precision to accelerate training and reduce memory.

  • Optimizing GPU performance
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Mixed Precision is an agent skill from aiming-lab/AutoResearchClaw. Use FP16/BF16 mixed precision to accelerate training and reduce memory. Use when optimizing GPU performance.

Its SKILL.md is about 280 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering. It works with CUDA. The repository describes itself as: Fully autonomous & self-evolving research from idea to paper. Chat an Idea. Get a Paper. 🦞. The licence is MIT.

When your agent uses it

  • Optimizing GPU performance

Example prompts

  • “/mixed-precision”

What it can do on your machine

Read from SKILL.md and the folder at commit be4ba47. 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

    No scripts in the folder and no shell commands in SKILL.md.

    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

Mixed Precision loads about 275 tokens when it runs. Until then it costs about 31 tokens; SKILL.md has 52 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~31
When it runs · the whole SKILL.md, loaded when a task matches
~275

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from aiming-lab/AutoResearchClaw at commit be4ba47, republished under its MIT licence (© aiming-lab). 52 words, ~275 tokens.

Download SKILL.mdSave it as .claude/skills/mixed-precision/SKILL.md (or your agent's skills folder).
name
mixed-precision
description
Use FP16/BF16 mixed precision to accelerate training and reduce memory. Use when optimizing GPU performance.
metadata.category
tooling
metadata.trigger-keywords
training,gpu,memory,speed,precision,fp16,bf16
metadata.applicable-stages
10,12
metadata.priority
5
metadata.version
1.0
metadata.author
researchclaw
metadata.references
Micikevicius et al., Mixed Precision Training, ICLR 2018
metadata.code-template
scaler = torch.cuda.amp.GradScaler() for batch in dataloader: optimizer.zero_grad() with torch.cuda.amp.autocast(): output = model(batch) loss =…

Mixed Precision Training Best Practice

Use torch.cuda.amp for automatic mixed precision:

  • Wrap forward pass in torch.cuda.amp.autocast()
  • Use GradScaler for loss scaling
  • BF16 preferred over FP16 on Ampere+ GPUs (RTX 3xxx, A100, RTX 4xxx)
  • Watch for NaN gradients — reduce learning rate if needed
  • Do NOT use amp with custom CUDA kernels unless tested

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

Files

Just SKILL.md in researchclaw/skills/builtin/tooling/mixed-precision of aiming-lab/AutoResearchClaw.

Open the folder on GitHubat commit be4ba47

Compare with similar skills

Mixed Precision 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.

Mixed Precision compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mixed Precision this skillaiming-lab/AutoResearchClaw15k—~275Automated safety check: PassMIT
Esmfold2JimLiu/science-skills2274 repos~2.5kAutomated safety check: PassApache-2.0
MUSA GPU Training Optimizeropen-infra-skills/infra-skills141—~1.7kAutomated safety check: PassApache-2.0
Benchmark TuneMesh-LLM/mesh-llm3.5k—~1.6kAutomated safety check: PassApache-2.0
Cuda Kernel OptimizerKernelFlow-ops/cuda-optimized-skill212—~4.3kAutomated safety check: PassMIT
DGX Spark Training Gotchaswshobson/agents40k1 repos~2kAutomated safety check: PassMIT

Similar skills

  • Esmfold2

    JimLiu/science-skills

    Biohub ESMFold2 / ESMFold2-Fast all-atom co-folding (Candido et al.

    227 GitHub starsUsed in 4 repos~2.5k tokens
    AI & LLM EngineeringAuto-check passed
  • MUSA GPU Training Optimizer

    open-infra-skills/infra-skills

    Profiles, benchmarks and tunes AI training workloads on Moore Threads MUSA GPUs with a measurement-first process that keeps model behavior unchanged.

    141 GitHub stars~1.7k tokensUpdated 2 mo ago
    AI & LLM EngineeringAuto-check passed
  • Benchmark Tune

    Mesh-LLM/mesh-llm

    A skill your agent uses when running, debugging, interpreting, or documenting mesh-llm benchmark tune model-serving throughput trials, including choosing…

    3.5k GitHub stars~1.6k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Cuda Kernel Optimizer

    KernelFlow-ops/cuda-optimized-skill

    Iteratively optimize a CUDA/CUTLASS/Triton kernel only when strict on-device compilation, correctness, timing, and NCU evidence gates pass.

    212 GitHub stars~4.3k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • Preflight checks and diagnosis for ten known failure modes of ML training on NVIDIA DGX Spark's GB10, spanning launch errors, memory, thermals, bandwidth and precision.

    40k GitHub starsUsed in 1 repo~2k tokens
    AI & LLM EngineeringAuto-check passed
  • Areno Develop Kernel

    inclusionAI/AReno

    Develop, optimize, debug, and validate an AReno CUDA, Triton, fused, attention, convolution, routing, or MoE operator.

    323 GitHub stars~498 tokensUpdated 13 days ago
    AI & LLM EngineeringAuto-check passed

More from aiming-lab/AutoResearchClaw

All 34 skills in this repo
  • A-Evolve Agent Improvement

    aiming-lab/AutoResearchClaw

    Diagnoses where an agent failed across runs and turns the findings into new skills, system prompt patches and knowledge entries, using the A-Evolve loop.

    15k GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Metabolic Study Planner

    aiming-lab/AutoResearchClaw

    Turns a broad metabolic modelling topic into a concrete, paper-shaped plan with organism, model, perturbations, metrics and figures before any FBA code is written.

    15k GitHub stars~1.9k tokensUpdated 1 mo ago
    Auto-check passed
  • MFA Pipeline Orchestrator

    aiming-lab/AutoResearchClaw

    Runs a metabolic flux analysis from model loading to phenotype prediction and figures by handing work to four sub-agents in sequence.

    15k GitHub stars~923 tokensUpdated 1 mo ago
    Auto-check passed
  • Qiskit 2.x Quantum ML Reference

    aiming-lab/AutoResearchClaw

    Reference patterns for writing qiskit 2.x code for variational quantum machine learning: feature maps, VQC training, VQE for chemistry, MPS circuits and noise models.

    15k GitHub stars~4.7k tokensUpdated 1 mo ago
    Auto-check passed
  • Genome-Scale Metabolic Model Builder

    aiming-lab/AutoResearchClaw

    Builds or loads a genome-scale metabolic model in COBRApy, sets its growth medium and objective, and exports it as a validated JSON file for flux analysis.

    15k GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Biopython Bioinformatics

    aiming-lab/AutoResearchClaw

    Quick reference for Biopython work: sequence operations, SeqIO file parsing, BLAST searches, Entrez queries, phylogenetic trees and PDB structure analysis.

    15k GitHub stars~810 tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about Mixed Precision

What does Mixed Precision do?

Use FP16/BF16 mixed precision to accelerate training and reduce memory. Mixed Precision is an agent skill from aiming-lab/AutoResearchClaw. Use FP16/BF16 mixed precision to accelerate training and reduce memory.

When should I use Mixed Precision?

Mixed Precision fits situations like: optimizing GPU performance.

How do I install Mixed Precision in Claude Code?

Run `npx skills add aiming-lab/AutoResearchClaw --skill mixed-precision -a claude-code`. Or copy the skill folder (researchclaw/skills/builtin/tooling/mixed-precision in aiming-lab/AutoResearchClaw) into .claude/skills/mixed-precision in your project. Claude Code loads it when a task matches its description.

How do I install Mixed Precision in Codex?

Run `npx skills add aiming-lab/AutoResearchClaw --skill mixed-precision -a codex`. Or copy the skill folder (researchclaw/skills/builtin/tooling/mixed-precision in aiming-lab/AutoResearchClaw) into .agents/skills/mixed-precision in your project. Codex loads it when a task matches its description.

Can I use Mixed Precision 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 aiming-lab/AutoResearchClaw --skill mixed-precision -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mixed-precision, .gemini/skills/mixed-precision, .github/skills/mixed-precision and .opencode/skills/mixed-precision in your project.

What does Mixed Precision need to run?

SKILL.md names no scripts, command-line tools or credentials: Mixed Precision is instructions for the agent only.

Does Mixed Precision 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 Mixed Precision 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. Review the folder before installing.

What licence does Mixed Precision use?

Mixed Precision is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Mixed Precision use?

About 275 tokens (SKILL.md is roughly 1.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Mixed Precision?

Skills that share tags, products or a category with Mixed Precision: Esmfold2 (JimLiu/science-skills, 227 stars), MUSA GPU Training Optimizer (open-infra-skills/infra-skills, 141 stars), Benchmark Tune (Mesh-LLM/mesh-llm, 3.5k stars) and Cuda Kernel Optimizer (KernelFlow-ops/cuda-optimized-skill, 212 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mixed Precision?

aiming-lab (a GitHub organization) maintains it in aiming-lab/AutoResearchClaw, which has 14,595 GitHub stars. The repository holds 34 skills in this directory. The repository was last updated on August 19, 2026.

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