inference-and-models
Marqo model registry, inference request shaping, preprocessing, model backends, cache behavior, and Triton/model-management troubleshooting.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- inference-and-models
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Marqo model registry, inference request shaping, preprocessing, model backends, cache behavior, and Triton/model-management troubleshooting.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/inference-api.md7.9 KB
- 参考文档references/model-registry.md6.3 KB
- 参考文档references/model-services.md7.4 KB
- 参考文档references/troubleshooting.md10.3 KB
- 脚本scripts/check_model_backends.py9.3 KB
03 SKILL.md 正文
inference-and-models
Use this sub-skill for Marqo model-registry facts, inference request shaping, preprocessing, model backends, cache behavior, and Triton/model-management troubleshooting.
Route here when the task involves
- translating a registry model name into runtime
modelProperties - deciding between random, HF, and OpenCLIP pipelines
- building or repairing
/vectoriserequests - inspecting or clearing loaded models
- probing CUDA, Triton, or download/cache readiness
- diagnosing model load, unload, auth, or preprocessing failures
Route away when the task is about
- search query construction or ranking fusion
- index schema or Vespa layout
- service startup, compose, or container orchestration
Bundled references
references/model-registry.mdreferences/inference-api.mdreferences/model-services.mdreferences/troubleshooting.mdscripts/check_model_backends.py
Working rules
- Prefer
random/*for no-download smoke checks and shape debugging. - For direct
/vectorise, always send a completeembeddingModelConfig.modelPropertiesobject; the direct inference route does not resolve registry names for you. - Keep
/vectoriserequests and responses onapplication/msgpack. - Use the bundled backend probe before touching live Triton or model-download paths.
- When a model is already loaded, inspect the full cache key returned by
/modelsbefore tryingDELETE /models. - Never trigger model downloads or Triton calls just to inspect support; use the bundled script and the
randomfamily first.
Fast selection guide
| Need | Start with |
|---|---|
| No-download smoke test | random/small or random/medium |
| Text embeddings | hf/* |
| Text + image embeddings | open_clip/* or hf-hub:* |
| Load/unload or Triton errors | references/model-services.md |
| Bad request or preprocessing validation | references/inference-api.md + references/troubleshooting.md |
| Backend/cuda sanity check | scripts/check_model_backends.py |
Typical flow
- Identify the model family and whether the request is meant for the direct inference service or the Marqo API client.
- Use
references/model-registry.mdto obtain the correct property shape and any family-specific fields. - Use
references/inference-api.mdto build the request body and expected response shape. - Use
references/model-services.mdfor load/unload, Triton, and cache-key behavior. - Use
references/troubleshooting.mdand the probe script when a backend or auth dependency fails.
Output expectations
- This sub-skill should help produce corrected request payloads, cache-key-aware diagnostics, and backend triage steps.
- It should not broaden into search or index advice.
- It should not assume external downloads are safe unless the user explicitly wants that path.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).