Msmodeling throughput optimizer executor

From kali20gakki/msAgent · View interactive version

Msmodeling throughput optimizer executor is an AI agent skill from the GitHub repository kali20gakki/msAgent. Interactively gather parameters for `python -m cli.inference.throughput_optimizer`, generate a deployment simulation command, explain assumptions, ask for execution confirmation, then run the simulation and summarize the best parallel strategy. Use when the user wants to evaluate a model on one or m

How to use this skill

Skill file

Throughput Optimizer Executor

Use this skill to turn a vague throughput-planning request into a confirmed throughput_optimizer run and a concise result summary.

Workflow

  1. Read the local throughput_optimizer implementation or docs if the current repository is available and you need to verify parameter behavior.
  2. Ask only for missing inputs. Keep the dialog progressive; do not dump the full parameter list at once.
  3. Build a candidate command and show a short parameter summary.
  4. Highlight validation issues or assumptions before execution.
  5. Ask for explicit confirmation before running the command.
  6. Run the command.
  7. Parse and summarize the result, then add the standard disclaimer that the output is only a simulation reference.

Context And Suggestion Hard Rules

Question Flow

Follow the branching rules in references/dialog-flow.md.

Always collect these core inputs first:

Then branch:

1. separately evaluate Prefill and Decode phase capability, or

2. specify P/D devices per instance and calculate the matched ratio.

Defaults And Confirmation Rules

Use the parameter guidance in references/throughput-optimizer-params.md.

Apply these rules:

Validation Rules

Before execution, check these conditions and call them out clearly:

Execution Pattern

When the user confirms execution:

  1. Print the exact command you will run.
  2. Run it from the repository root when the repo is available.
  3. Capture combined stdout and stderr.
  4. If needed, use scripts/extract_throughput_optimizer_result.py to convert the raw output into structured JSON.
  5. Return a concise summary with:

Result Summary Requirements

After a successful run, always include:

These results come from throughput modeling and are for deployment planning reference only. Actual performance depends on runtime, topology, software stack, and real traffic patterns, so validate with real workload testing before final deployment decisions.

Failure Handling

If execution fails:

Result Explanation Handoff

If the user asks whether optimizer results are reasonable, why two hardware targets differ, how Cube/Vec/Comm/Mem explains the result, or how a best row maps to text_generate validation, use the throughput-optimizer-explainer skill instead of expanding this execution skill.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.