Логотип Optimize Runtime

Optimize Runtime

Спільнота
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.

Огляд

ВидавецьScripter36
РепозиторійInstantMimic
Назва навичкиoptimize-runtime
Зірки
20
Форки
1
Файли в пакеті
4
ЛіцензіяApache-2.0
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 4

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем Scripter36. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Optimize Runtime у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/Scripter36/InstantMimic/tree/main/plugins/instantmimic-workflows/skills/optimize-runtime
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

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
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Optimize Runtime в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Optimize Runtime, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції Markdown, а не код для певного постачальника, тому навичка Optimize Runtime не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож невикористана навичка нічого не коштує.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

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.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ 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.

Навіщо використовувати Optimize Runtime у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Optimize Runtime — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Optimize Runtime у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/Scripter36/InstantMimic/tree/main/plugins/instantmimic-workflows/skills/optimize-runtime. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Optimize Runtime?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Optimize Runtime?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Optimize Runtime — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Optimize Runtime?

Так. Навичку опубліковано на GitHub: Scripter36, за ліцензією Apache-2.0. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇