optimize-model-precision
Skill290 starsChanged 45 days agoApache-2.0View on GitHub
Evaluate supported precision, quantization, or selected FP32-layer choices for one TensorRT-Model-Connect family with matched correctness and timing.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- website/static/llms.txtllms.txt
- debug-trt-mismatchSkill
- doc-syncSkill
- fp16-trt-networkSkill
- pr-babysitterSkill
- profile-modelSkill
- review-trtmc-prSkill
- setup-trtmc-environmentSkill
- submit-github-bug-issueSkill
- submit-github-prSkill
- transform-modelSkill
- write-git-messagesSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Use one family manifest and testcase.
- Distinctive: line 38
Run the exact family E2E testcase with the candidate configuration.
- Very specific: line 48
Use trtmc-aiperf-qual (apps/aiperf_qual) when the claim targets a release comparison against the native model.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Optimize Model Precision
Name the objective first: bundle size, device memory, setup time, Task API latency, throughput, or another measured family outcome. The best candidate is the lowest-cost option that still passes the existing family contract.
Establish a baseline
Use one family manifest and testcase. Record the repository and checkpoint revisions, hardware, build request, seed, input, bundle path, correctness result, warmups, iterations, and measured boundary.
Build the current declared configuration and run its E2E before exploring
alternatives. The public build interface exposes direct values for
--precision, --quantization, and repeated --fp32-layer selections.
Attempt only values the owning family implements.
python -m tensorrt_model_connect build <model-id-or-path> \
--revision <revision> --precision <fp32-or-fp16-or-bf16> \
--output <candidate.bundle>
trtmc inspect <candidate.bundle>Change one effective value per attempt. If a candidate fails, localize the first mismatch in the owner family before changing another value. Do not add cross-family precision policy or weaken a threshold, dataset, seed, or oracle.
Qualify a candidate
Run the exact family E2E testcase with the candidate configuration. Only after it passes, compare Task API performance with matched inputs and protocol:
trtmc-bench run --model <model> --case <case> \
--bundle <candidate.bundle> --no-build \
--warmup 3 --iterations 10 --runtime-root <runtime-root> \
--output <result-dir>Use trtmc-aiperf-qual (apps/aiperf_qual) when the claim targets a release comparison against the native model.
Report every attempt in a compact table, including effective request values,
correctness, measured objective, confounders, and unrun targets. It is valid
for the original configuration to remain the best qualified result.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

