AGENT SKILL

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

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 /vectorise requests
  • 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.md
  • references/inference-api.md
  • references/model-services.md
  • references/troubleshooting.md
  • scripts/check_model_backends.py

Working rules

  1. Prefer random/* for no-download smoke checks and shape debugging.
  2. For direct /vectorise, always send a complete embeddingModelConfig.modelProperties object; the direct inference route does not resolve registry names for you.
  3. Keep /vectorise requests and responses on application/msgpack.
  4. Use the bundled backend probe before touching live Triton or model-download paths.
  5. When a model is already loaded, inspect the full cache key returned by /models before trying DELETE /models.
  6. Never trigger model downloads or Triton calls just to inspect support; use the bundled script and the random family 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

  1. Identify the model family and whether the request is meant for the direct inference service or the Marqo API client.
  2. Use references/model-registry.md to obtain the correct property shape and any family-specific fields.
  3. Use references/inference-api.md to build the request body and expected response shape.
  4. Use references/model-services.md for load/unload, Triton, and cache-key behavior.
  5. Use references/troubleshooting.md and 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

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351