Add Uint Support
pytorch/pytorch
Add unsigned integer (uint) type support to PyTorch operators by updating ATDISPATCH macros.
Solutions for non-trivial PerforatedAI integration scenarios.
$ npx skills add PerforatedAI/PerforatedAI --skill perforatedai-complex-methods -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install PerforatedAI/PerforatedAI perforatedai-complex-methods --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/PerforatedAI/PerforatedAI.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/perforatedai-complex-methods .claude/skills/perforatedai-complex-methods && rm -rf skills-srcUse ~/.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/
Install the "perforatedai-complex-methods" agent skill from https://github.com/PerforatedAI/PerforatedAI/tree/main/skills/perforatedai-complex-methods into .claude/skills/perforatedai-complex-methods/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "perforatedai-complex-methods", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/PerforatedAI/PerforatedAI/tree/main/skills/perforatedai-complex-methodsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add PerforatedAI/PerforatedAI --skill perforatedai-complex-methods -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install PerforatedAI/PerforatedAI perforatedai-complex-methods --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PerforatedAI/PerforatedAI.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/perforatedai-complex-methods .agents/skills/perforatedai-complex-methods && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "perforatedai-complex-methods" agent skill from https://github.com/PerforatedAI/PerforatedAI/tree/main/skills/perforatedai-complex-methods into .agents/skills/perforatedai-complex-methods/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "perforatedai-complex-methods", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add PerforatedAI/PerforatedAI --skill perforatedai-complex-methods -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install PerforatedAI/PerforatedAI perforatedai-complex-methods --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PerforatedAI/PerforatedAI.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/perforatedai-complex-methods .cursor/skills/perforatedai-complex-methods && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "perforatedai-complex-methods" agent skill from https://github.com/PerforatedAI/PerforatedAI/tree/main/skills/perforatedai-complex-methods into .cursor/skills/perforatedai-complex-methods/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "perforatedai-complex-methods", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/PerforatedAI/PerforatedAI.git --path skills/perforatedai-complex-methods--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add PerforatedAI/PerforatedAI --skill perforatedai-complex-methods -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install PerforatedAI/PerforatedAI perforatedai-complex-methods --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PerforatedAI/PerforatedAI.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/perforatedai-complex-methods .gemini/skills/perforatedai-complex-methods && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "perforatedai-complex-methods" agent skill from https://github.com/PerforatedAI/PerforatedAI/tree/main/skills/perforatedai-complex-methods into .gemini/skills/perforatedai-complex-methods/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "perforatedai-complex-methods", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install PerforatedAI/PerforatedAI perforatedai-complex-methodsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add PerforatedAI/PerforatedAI --skill perforatedai-complex-methods -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/PerforatedAI/PerforatedAI.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/perforatedai-complex-methods .github/skills/perforatedai-complex-methods && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "perforatedai-complex-methods" agent skill from https://github.com/PerforatedAI/PerforatedAI/tree/main/skills/perforatedai-complex-methods into .github/skills/perforatedai-complex-methods/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "perforatedai-complex-methods", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add PerforatedAI/PerforatedAI --skill perforatedai-complex-methods -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install PerforatedAI/PerforatedAI perforatedai-complex-methods --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PerforatedAI/PerforatedAI.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/perforatedai-complex-methods .opencode/skills/perforatedai-complex-methods && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "perforatedai-complex-methods" agent skill from https://github.com/PerforatedAI/PerforatedAI/tree/main/skills/perforatedai-complex-methods into .opencode/skills/perforatedai-complex-methods/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "perforatedai-complex-methods", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
perforatedai-complex-methodsSolutions for non-trivial PerforatedAI integration scenarios.
Perforatedai Complex Methods is an agent skill from PerforatedAI/PerforatedAI. Solutions for non-trivial PerforatedAI integration scenarios. Use when standard integration hits edge cases such as AMP (Automatic Mixed Precision) / GradScaler crashes in p mode, or other advanced setups not covered by the main perforatedai skill.
Its SKILL.md is about 820 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, covering Deep learning. The repository describes itself as: Add Dendrites to your PyTorch Project. The licence is Apache-2.0.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 9d317e6. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Perforatedai Complex Methods loads about 821 tokens when it runs. Until then it costs about 69 tokens; SKILL.md has 281 words of instructions outside code blocks.
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.
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.
The full file from PerforatedAI/PerforatedAI at commit 9d317e6, republished under its Apache-2.0 licence (© PerforatedAI). 281 words, ~821 tokens.
.claude/skills/perforatedai-complex-methods/SKILL.md (or your agent's skills folder).This skill documents solutions for non-trivial integration scenarios with PerforatedAI.
When using torch.cuda.amp.GradScaler with PAI, training will crash in p mode with:
AssertionError: No inf checks were recorded for this optimizer.PAI uses a backward hook to run a second, separate loss.backward() for dendrite training in p mode. This hook fires after your main backward call.
In p mode:
scaler.scale(loss).backward() runs — this registers inf checks only for params that receive gradients through this call, which are the main_module params (not in the optimizer in p mode)backward() — dendrite params (which ARE in the optimizer) receive gradients through this unscaled callscaler.step(optimizer) checks the optimizer's param groups for recorded inf checks, finds none (dendrite grads came from the unscaled hook backward), and assertsBypass the scaler entirely in p mode. PAI's hook handles the dendrite backward correctly without it:
optimizer.zero_grad(set_to_none=True)
if scaler is not None and GPA.pai_tracker.member_vars['mode'] != 'p':
scaler.scale(loss).backward()
scaler.step(optimizer)
scaler.update()
else:
loss.backward()
optimizer.step()When add_validation_score returns restructured=True, the model has been modified and the optimizer must be fully rebuilt. Key points:
GPA.pai_tracker.set_optimizer_instance(optimizer) after rebuilding so PAI can re-sync its param groups for the new modedef build_optimizer_and_scheduler(model, data_loader_train, args):
optimizer = torch.optim.SGD(model.parameters(), lr=args.lr, ...)
scaler = torch.cuda.amp.GradScaler() if args.amp else None
# ... build scheduler ...
return optimizer, lr_scheduler, scaler
# Initial setup
optimizer, lr_scheduler, scaler = build_optimizer_and_scheduler(student, data_loader_train, args)
GPA.pai_tracker.set_optimizer_instance(optimizer)
# After restructure
elif restructured and not training_complete:
optimizer, lr_scheduler, scaler = build_optimizer_and_scheduler(student, data_loader_train, args)
GPA.pai_tracker.set_optimizer_instance(optimizer)© PerforatedAI, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/perforatedai-complex-methods of PerforatedAI/PerforatedAI.
Open the folder on GitHubat commit 9d317e6
Perforatedai Complex Methods 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Perforatedai Complex Methods this skillPerforatedAI/PerforatedAI | 237 | — | ~821 | Automated safety check: Pass | Apache-2.0 | |
| Add Uint Supportpytorch/pytorch | 104k | 2 repos | ~2.3k | Automated safety check: Pass | Custom licence | |
| Segment Anything Model GuideOrchestra-Research/AI-Research-SKILLs | 13k | 9 repos | ~3.3k | Automated safety check: Pass | MIT | |
| Add Oponnx/onnx | 22k | — | ~1.2k | Automated safety check: Pass | Apache-2.0 | |
| CLIP Image-Text MatchingOrchestra-Research/AI-Research-SKILLs | 13k | 8 repos | ~1.7k | Automated safety check: Pass | MIT | |
| Add Function Bodyonnx/onnx | 22k | — | ~1.1k | Automated safety check: Pass | Apache-2.0 |
pytorch/pytorch
Add unsigned integer (uint) type support to PyTorch operators by updating ATDISPATCH macros.
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.
onnx/onnx
Add a new ONNX operator or update an existing operator to a new opset version.
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.
onnx/onnx
Add a function body definition to an ONNX operator, defining how it decomposes into simpler ops.
PaddlePaddle/Paddle
A skill your agent uses when working with Paddle's distributed training system: understanding parallelism strategies (DP, ZeRO, TP, PP, SP), semi-automatic parallel with ProcessMesh + shardtensor…
PerforatedAI/PerforatedAI
HuggingFace Transformers integration for PerforatedAI. An agent skill from PerforatedAI/PerforatedAI.
PerforatedAI/PerforatedAI
Render a single-panel PAI figure of score versus parameter count from sweep CSVs, PAI run folders, or hand-supplied numbers.
PerforatedAI/PerforatedAI
Expert in PerforatedAI library for adding artificial dendrites to PyTorch neural networks.
PerforatedAI/PerforatedAI
Analyze PerforatedAI training results and provide optimization recommendations.
PerforatedAI/PerforatedAI
WandB-specific PerforatedAI integration guardrail skill. An agent skill from PerforatedAI/PerforatedAI.
PerforatedAI/PerforatedAI
Multi-GPU setup for PerforatedAI with DataParallel or DistributedDataParallel (DDP).
Categories
Solutions for non-trivial PerforatedAI integration scenarios. Perforatedai Complex Methods is an agent skill from PerforatedAI/PerforatedAI. Solutions for non-trivial PerforatedAI integration scenarios.
Perforatedai Complex Methods fits situations like: standard integration hits edge cases such as AMP (Automatic Mixed Precision) / GradScaler crashes in p mode; other advanced setups not covered by the main perforatedai skill.
Run `npx skills add PerforatedAI/PerforatedAI --skill perforatedai-complex-methods -a claude-code`. Or copy the skill folder (skills/perforatedai-complex-methods in PerforatedAI/PerforatedAI) into .claude/skills/perforatedai-complex-methods in your project. Claude Code loads it when a task matches its description.
Run `npx skills add PerforatedAI/PerforatedAI --skill perforatedai-complex-methods -a codex`. Or copy the skill folder (skills/perforatedai-complex-methods in PerforatedAI/PerforatedAI) into .agents/skills/perforatedai-complex-methods in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add PerforatedAI/PerforatedAI --skill perforatedai-complex-methods -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/perforatedai-complex-methods, .gemini/skills/perforatedai-complex-methods, .github/skills/perforatedai-complex-methods and .opencode/skills/perforatedai-complex-methods in your project.
SKILL.md names no scripts, command-line tools or credentials: Perforatedai Complex Methods is instructions for the agent only. Our summary lists: Python 3.
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.
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.
Perforatedai Complex Methods is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 821 tokens (SKILL.md is roughly 3.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Perforatedai Complex Methods: Add Uint Support (pytorch/pytorch, 104k stars), Segment Anything Model Guide (Orchestra-Research/AI-Research-SKILLs, 13k stars), Add Op (onnx/onnx, 22k stars) and CLIP Image-Text Matching (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.
PerforatedAI (a GitHub organization) maintains it in PerforatedAI/PerforatedAI, which has 237 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 8, 2026.
Source: PerforatedAI/PerforatedAI on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.