Logo van Nsys Profile

Nsys Profile

Community
Scripter36
nsys-profile

Use when profiling end-to-end training or playback timeline, CUDA API overhead, NVTX ranges, or CPU/GPU launch behavior with Nsight Systems.

Overzicht

UitgeverScripter36
RepositoryInstantMimic
Skillnaamnsys-profile
Sterren
20
Forks
1
Meegeleverde bestanden
Alleen instructies
LicentieApache-2.0
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door Scripter36 op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Nsys Profile in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/Scripter36/InstantMimic/tree/main/plugins/instantmimic-workflows/skills/nsys-profile
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Scripter36/InstantMimic.git /tmp/InstantMimic
mkdir -p .claude/skills
cp -r /tmp/InstantMimic/plugins/instantmimic-workflows/skills/nsys-profile .claude/skills/nsys-profile
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Nsys Profile in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Nsys Profile automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Nsys Profile niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Nsys Profile

Use nsys first for timeline and wall-clock attribution.

Capture

Keep captures short. Preserve graph/compile flags. Read Optional Local Workflows and follow the active repository or host GPU-coordination policy before launching local captures.

bash
nsys profile --force-overwrite=true --trace=cuda,nvtx,osrt --output <out/profile> uv run train --config-name <config> trainer.max_iterations=<small>

To capture a PyTorch NVTX range such as training_loop, set NSYS_NVTX_PROFILER_REGISTER_ONLY=0 on the nsys process. Without it, ranges emitted through PyTorch may not register as capture triggers even when they are visible to NVTX tracing.

Run a minimal probe before a formal capture:

bash
NSYS_NVTX_PROFILER_REGISTER_ONLY=0 nsys profile \
  --force-overwrite=true \
  --trace=cuda,nvtx,osrt \
  --capture-range=nvtx \
  --nvtx-capture=training_loop \
  --output <out/probe> \
  uv run train --config-name <config> trainer.max_iterations=<small>

If the probe captures the range, use the same environment variable and NVTX trigger options for the formal capture. Prefer this boundary over adding CUDA Profiler API calls to application code; use the CUDA Profiler API only as a fallback when the NVTX-trigger probe still fails.

Record the resolved runtime and actual executed phase; successful capture does not prove that the intended graph nodes were traced. For simulator investigations, count and attribute integration, position/velocity prefix, full forward and solver work per control action, including reset/wrap/push boundaries. Compare counts to the actual decimation and state consumers before treating native kernels as necessary work. Use an unprofiled run for final throughput.

Detailed NVTX adds synchronization to expose phase wall time. Keep its results separate from production timing. For detailed rollout NVTX where supported:

bash
uv run train --config-name <config> runtime.nsys_nvtx_mode=detailed

For graph-node ownership/count analysis, add --cuda-graph-trace=node to the capture command (check the installed nsys profile --help). The usual default traces graphs as a whole, so it cannot establish internal solver/kernel counts. Node tracing adds substantial overhead; use it for attribution, not speed rows.

Summaries

bash
nsys stats --report nvtx_sum <profile.nsys-rep>
nsys stats --report osrt_sum <profile.nsys-rep>
nsys stats --report cuda_api_sum <profile.nsys-rep>
nsys stats --report cuda_gpu_kern_sum <profile.nsys-rep>

Keep raw .nsys-rep captures under workspaces/<topic>/<initiative>/<task>/nsys/. When the study needs a durable summary, follow the artifact-routing policy in the optional local workflows reference and place tables, plots, commands, and conclusions in its configured task-artifact location. Do not retain a generated SQLite export beside its source .nsys-rep.

Interpret

  • nvtx_sum: repo phase/range timing
  • osrt_sum: CPU/syscall overhead
  • cuda_api_sum: launch/copy/sync API overhead
  • cuda_gpu_kern_sum: kernel time candidates for ncu

Do not use profiler timings as final benchmark rows unless the task is profiling-specific.

Veelgestelde vragen

Wat doet de AI-skill Nsys Profile?

Use when profiling end-to-end training or playback timeline, CUDA API overhead, NVTX ranges, or CPU/GPU launch behavior with Nsight Systems.

Waarom Nsys Profile gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Nsys Profile bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Nsys Profile in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/Scripter36/InstantMimic/tree/main/plugins/instantmimic-workflows/skills/nsys-profile. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Nsys Profile gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Nsys Profile gebruiken?

Zoveel als je wilt. Je kunt Nsys Profile gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Nsys Profile gratis?

Ja. Deze skill is door Scripter36 op GitHub gepubliceerd onder de licentie Apache-2.0. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇