Logo vun Optimize Runtime

Optimize Runtime

Communautéit
Scripter36
optimize-runtime

Iteratively optimize a specified workload by choosing suitable metrics and diagnostic tools, making causal code changes, remeasuring and validating outputs until no actionable axes remain. Use for sustained CPU, GPU, renderer, training, I/O or memory optimization; use a profiling skill for a single capture and tune-hyperparameters for learning-parameter search.

Iwwersiicht

EditeurScripter36
RepositoryInstantMimic
Skill-Nummoptimize-runtime
Stären
20
Forks
1
Matgeliwwert Fichieren
4
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.

  • 4 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

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

Installatioun

Installéiert de KI-Skill Optimize Runtime 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/optimize-runtime
  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/optimize-runtime .claude/skills/optimize-runtime
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Optimize Runtime 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 Optimize Runtime automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Optimize Runtime 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.

Optimize Runtime

Own the complete loop: measure/diagnose → explain → change → remeasure → validate → reassess. Continue while evidence supports another actionable axis. One speedup, a successful capture or a target number is not completion. kFPS, Nsight, CUDA and learning checks are workload-specific choices, not prerequisites.

Choose the objective and tools

Read applicable repository instructions, the user's goal and actual runtime consumers. Reuse existing authorization. Record a compact measurement contract:

  • representative input/output and work volume, such as scenes, image resolution, data size, requests, frames or simulation rollouts;
  • source snapshot (commit plus dirty diff when needed), relevant hardware/software, execution settings, cache/load state and output destination;
  • primary metric with units, direction, aggregation and measurement boundary; constraints on output quality, latency tails, memory or other tradeoffs;
  • repeat/warmup plan, effect resolution derived from variation/user needs, allowed numerical/visual differences and required behavioral regressions;
  • allowed files/layers, compatibility/maintainability requirements, inherited budgets and material authority.

Infer a reasonable objective from the task and evidence, state it and ask only when a material tradeoff remains unresolved. Choose tools to answer the current causal question. Read Measurement and Tools for metric selection, CPU/native/Python, graphics, CUDA, memory and I/O routes. Use a small representative probe before an expensive capture. Missing one tool is not a blocker when another supplies the needed evidence. Do not install or run an irrelevant GPU profiler for CPU-only work.

Preserve the requested outputs, quality and executed work. Lowering resolution, samples, fidelity, precision or workload size is a tradeoff requiring explicit scope, not an implementation speedup. Preserve required runtime modes and behavior; apply graph, simulator or learning constraints only to paths that use them. A simulator-internals restriction still permits common orchestration and official-API reuse within that restriction.

Bound each measurement, diagnosis and regression run. Honor user/parent limits; do not invent an overall cycle, time or no-improvement cutoff in place of the exhaustion request. Ask only for missing material authority. Limits or unavailable necessary evidence yield a resumable incomplete result, not exhaustion.

Keep baselines comparable and observe relevant interference: CPU load, storage, GPU occupancy, thermal/clock changes or background jobs. Exclude invalid samples with documented reasons, while retaining real tail/jank behavior; do not terminate others. Read Optional Local Workflows before GPU work. For training experiments also use Experiment Protocol; its logger/seed and playback conventions do not impose training work on a renderer or CPU task.

Persistent evidence

Use one ignored task workspace following repository policy. Keep canonical outputs in their normal location (training runs in logs/ when applicable), reusable caches outside the task directory, and record:

  • README.md: contract, chosen tools/reasons, accepted result, next action, resume;
  • baseline.json: immutable starting config, commands and raw metric samples;
  • axes.json: discovered axes, status, evidence, hypotheses and closure reason;
  • cycles/NNN/: source diff, config/tool fingerprints, raw diagnostic/measurement/ validation evidence, decision and accepted revision for each attempt.

When invoked by a parent workflow, inherit its frozen scope/budgets and reuse its workspace. Route baseline/axes/cycles to the supplied artifact prefix; keep the parent's contract/state authoritative. Return status and raw evidence paths without advancing parent phases, changing its gates or replacing independent review. Do not create a second approval gate or state machine.

These are agent artifacts, not an application API or new controller. Use relative artifact references and omit private endpoints. On resume verify code/config/ hardware fingerprints before reusing evidence. Rebaseline changed workloads explicitly while retaining earlier results.

Repeat the optimization cycle

  1. Measure and locate. Establish a baseline under the objective's actual conditions, including cold startup or tail load when those are the goal. Use suitable sampling, traces, counters, allocation data or phase timings to attribute the cost. Profiling is optional when simpler measurements establish ownership. Read Axis Review; inspect the whole relevant path, not a fixed list of CUDA kernels or training phases.
  2. Explain one hypothesis. Trace avoidable cost to its owner and dependencies. Estimate attainable benefit in the target metric relative to noise and code complexity. Eliminate unnecessary work before optimizing its implementation. Use a deeper tool only when it answers an unresolved question; record its selection or justified omission. Re-select tools when the bottleneck changes.
  3. Make a narrow change. Protect the affected behavioral contract first and make one causal change (a tightly coupled implementation may be one change). Preserve readable code, resource/output ownership and supported fallbacks. Fix shared layers when they own the cost and check other consumers. Avoid a second runtime or input-specific branch merely to favor the benchmark. Preserve other worktree edits.
  4. Remeasure under normal conditions. Compare the candidate with the actual incumbent and retain initial-baseline progress. Match inputs, outputs, load, modes and timing boundaries. Use repeated/interleaved trials as needed for drift/noise. Benchmark with expensive diagnostic instrumentation disabled; an already calibrated production counter may remain part of normal operation. Capture the target metric and guardrails, not only a locally faster phase.
  5. Validate and decide. Follow Validation for this workload. Adopt a useful measured gain only when affected output quality, correctness, lifecycle, compatibility and resource checks pass at justified complexity. Reject guardrail violations and revert only this attempt's owned changes; honor explicitly permitted metric tradeoffs. Mark noisy/interfered/incomplete evidence inconclusive; resolve it before claiming a gain. A failed idea does not close an axis.
  6. Reassess the accepted path. Obtain fresh relevant whole-path attribution using appropriate tools or measurements. Reopen changed assumptions, discover new axes and revisit prior closures. Rejected candidates leave the incumbent in place; test other supported hypotheses. Return to step 1 while actionable axes remain; repeated heavy Nsight captures are not mandatory.

For training, apply existing nsys/ncu/smoke/evaluation skills when their specific capabilities are needed. Runtime implementation optimization and convergence search are different tasks; use $tune-hyperparameters only when requested.

Exhaustion and handoff

Read closure rules before ending. Completion requires final-path attribution and normal-condition baseline-to-final measurements, evidence-backed review of every discovered in-scope axis, passing affected output/regression/guardrail checks and a maintainable intended diff. No actionable or unexamined axis may remain. Required representative workloads and applicable startup/resource checks must support the retained gains.

High utilization, one no-gain trial, fixed attempts or reaching a desired metric does not exhaust a workload. Promising unmeasured axes or unavailable necessary evidence stay open/blocked; do not relabel them out of scope. Follow explicit stop requests and limits with an incomplete result and exact continuation.

Report exhausted within the recorded scope and measurement resolution only when those conditions hold, not global optimality. Otherwise report incomplete and the blocker/limit. Include chosen metric/tools, accepted/rejected changes, measured gains and tradeoffs, quality checks, remaining bounds and artifact paths. Commit only authorized changes; optimization does not imply push/publication.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Optimize Runtime?

Iteratively optimize a specified workload by choosing suitable metrics and diagnostic tools, making causal code changes, remeasuring and validating outputs until no actionable axes remain. Use for sustained CPU, GPU, renderer, training, I/O or memory optimization; use a profiling skill for a single capture and tune-hyperparameters for learning-parameter search.

Firwat Optimize Runtime op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Optimize Runtime 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 Optimize Runtime 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/optimize-runtime an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Optimize Runtime 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 Optimize Runtime benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Optimize Runtime 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 Optimize Runtime 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 👇