Logo vun Nsys Profile

Nsys Profile

Communautéit
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.

Iwwersiicht

EditeurScripter36
RepositoryInstantMimic
Skill-Nummnsys-profile
Stären
20
Forks
1
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum Scripter36 op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Nsys Profile an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/Scripter36/InstantMimic/tree/main/plugins/instantmimic-workflows/skills/nsys-profile
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-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 nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Nsys Profile an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Nsys Profile automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Nsys Profile net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Heefeg gestallte Froen

Wat mécht de KI-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.

Firwat Nsys Profile op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Nsys Profile besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Nsys Profile an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Scripter36/InstantMimic/tree/main/plugins/instantmimic-workflows/skills/nsys-profile an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Nsys Profile benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Nsys Profile benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Nsys Profile domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Nsys Profile gratis?

Jo. De Skill gëtt vum Scripter36 ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇