Token导航 LogoToken导航

Agent Skill · AI 工具

ai-llm-inference(AI LLM inference 命令行)

ai-llm-inference 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

ai-llm-inference 是AI 工具类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证为 MIT,第三方扫描有提醒项,按安装量在AI 工具类的 2,536 个 Skill 里排第 713。

总安装 2,375周安装 97GitHub Stars 59下载 768核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ai-llm-inference(AI LLM inference 命令行)
来源仓库:https://github.com/vasilyu1983/ai-agents-public
仓库路径:skills/ai-llm-inference
安装命令:
npx skills add https://github.com/vasilyu1983/ai-agents-public --skill ai-llm-inference
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/vasilyu1983/ai-agents-public --skill ai-llm-inference

这个 Skill 是做什么的

AI 工具类 Skill 用来扩展助手本身的能力,例如接模型、接检索、接外部服务。

AI LLM inference 聚焦于现代推理优化与生产部署最佳实践,涵盖 SLO、延迟、缓存与调度策略。适合高并发、低延迟场景下的模型服务设计,如实时问答、流式响应与批量推理系统。提供 vLLM、FlashAttention、KV-cache 等关键技术选型建议与性能调优路径。

可通过命令行集成到 Codex、Claude 等宿主环境,依赖 OpenAI 等外部 API 时需配置密钥。使用时应关注 token 成本、批处理效率与容错机制,避免因配置不当导致服务降级。

来源仓库内路径:skills/ai-llm-inference

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/vasilyu1983/ai-agents-public --skill ai-llm-in…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

ai-llm-inference 怎么安装?

在终端执行 npx skills add https://github.com/vasilyu1983/ai-agents-public --skill ai-llm-inference。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

ai-llm-inference 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

ai-llm-inference 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

ai-llm-inference 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

ai-llm-inference 用的人多吗?

公开数据是累计安装 2,375 次,近一周安装 97 次,下载 768 次,GitHub 59 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

ai-llm-inference 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理AI 工具类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

AI 工具类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
executing-plans

执行计划 · Codex、Claude

1,515,336173,110只读MIT通过
verification-before-completion

完成前的验证 · Codex、Claude

1,319,472173,121权限未标注MIT通过
subagent-driven-development

子 Agent 驱动开发 · Codex、Claude

1,312,416173,138只读MIT通过
copy-editing

复制编辑 · Codex、Claude

1,209,57625,632只读MIT通过
paywall-upgrade-cro

付费专区升级 cro · Codex、Claude

1,030,17625,617只读MIT通过
ai-llm-inference

AI LLM inference 命令行 · 本页

2,37559操作浏览器MIT有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

LLMOps - Inference & Optimization - Production Skill Hub

Modern Best Practices (January 2026):

This skill provides production-ready operational patterns for optimizing LLM inference performance, cost, and reliability. It centralizes decision rules, optimization strategies, configuration templates, and operational checklists for inference workloads.

No theory. No narrative. Only what Codex can execute.


When to Use This Skill

Codex should activate this skill whenever the user asks for:

  • Optimizing LLM inference latency or throughput
  • Choosing quantization strategies (FP8/FP4/INT8/INT4)
  • Configuring vLLM, TensorRT-LLM, or DeepSpeed inference
  • Scaling LLM inference across GPUs (tensor/pipeline parallelism)
  • Building high-throughput LLM APIs
  • Improving context window performance (KV cache optimization)
  • Using speculative decoding for faster generation
  • Reducing cost per token
  • Profiling and benchmarking inference workloads
  • Planning infrastructure capacity
  • CPU/edge deployment patterns
  • High availability and resilience patterns

Scope Boundaries (Use These Skills for Depth)


Quick Reference

TaskTool/FrameworkCommand/PatternWhen to Use
Latency budgetSLO + load modelTTFT/ITL + P95/P99 under loadAny production endpoint
Tail-latency controlScheduling + timeoutsAdmission control + queue caps + backpressurePrevent p99 explosions
ThroughputBatching + KV-cache aware servingContinuous batching + KV pagingHigh concurrency serving
Cost controlModel tiering + cachingCache (prefix/response) + quotasReduce spend and overload risk
Long contextPrefill optimizationChunked prefill + prompt compressionLong inputs and RAG-heavy apps
ParallelismTP/PP/DPChoose by model size and interconnectModels that do not fit one device
ReliabilityResilience patternsTimeouts + circuit breakers + idempotencyAvoid cascading failures

Decision Tree: Inference Optimization Strategy

Need to optimize LLM inference: [Optimization Path]
    │
    ├─ High throughput (>10k tok/s) OR P99 variance > 3x P50?
    │   └─ YES -> Disaggregated inference (prefill/decode separation)
    │            See references/disaggregated-inference.md
    │
    ├─ Primary constraint: Throughput?
    │   ├─ Many concurrent users? -> batching + KV-cache aware serving + admission control
    │   ├─ Chat/agents with KV reuse? -> SGLang (RadixAttention)
    │   └─ Mostly batch/offline? -> batch inference jobs + large batches + spot capacity
    │
    ├─ Primary constraint: Cost?
    │   ├─ Can accept lower quality tier? -> model tiering (small/medium/large router)
    │   └─ Must keep quality? -> caching + prompt/context reduction before quantization
    │
    ├─ Primary constraint: Latency?
    │   ├─ Draft model acceptable? -> speculative decoding
    │   └─ Long context? -> prefill optimizations + FlashAttention-3 + context budgets
    │
    ├─ Large model (>70B)?
    │   ├─ Multiple GPUs? -> Tensor parallelism (NVLink required)
    │   └─ Deep model? -> Pipeline parallelism (minimize bubbles)
    │
    ├─ Hardware selection?
    │   ├─ Memory-bound? -> more HBM, higher bandwidth
    │   ├─ Latency-bound? -> faster clocks + kernel support
    │   └─ Multi-node? -> prioritize interconnect (NVLink/RDMA) and topology
    │
    │   Notes: treat GPU/SKU advice as time-sensitive; verify with vendor docs and your own benchmarks.
    │   See references/gpu-optimization-checklists.md and references/infrastructure-tuning.md
    │
    └─ Edge deployment?
        └─ CPU + quantization -> llama.cpp/GGUF for constrained resources

Intake Checklist (REQUIRED)

Before recommending changes, collect (or infer) these inputs:

  • Model + variant (size, context length, precision/quantization, tokenizer)
  • Traffic shape (prompt/output length distributions, concurrency, QPS, streaming vs non-streaming)
  • SLOs and budgets (TTFT/ITL/total latency targets, error budget, cost per request)
  • Serving stack (engine/version, batching/scheduling settings, caching, parallelism, autoscaling)
  • Hardware and topology (GPU type/count, VRAM, NVLink/RDMA, CPU/RAM, storage, cluster/runtime)
  • Constraints (quality floor, safety requirements, rollout/rollback constraints)

Core Concepts & Practices

Core Concepts (Vendor-Agnostic)

  • Latency components: queueing + prefill + decode; optimize the largest contributor first.
  • Tail latency: p99 is dominated by queuing and long prompts; fix with admission control and context budgets.
  • Retries: retries can multiply load; bound retries and use hedged requests only with strict budgets.
  • Caching: prefix caching helps repeated system/tool scaffolds; response caching helps repeated questions (requires invalidation).
  • Security & privacy: prompts/outputs can contain sensitive data; scrub logs, enforce auth/tenancy, and rate-limit abuse (OWASP LLM Top 10: https://owasp.org/www-project-top-10-for-large-language-model-applications/).

Implementation Practices (Tooling Examples)

  • Measure under load: benchmark TTFT/ITL and p95/p99 with realistic concurrency and prompt lengths.
  • Separate environments: dev/stage/prod model configs; promote only after passing the inference review checklist.
  • Export telemetry: request-level tokens, TTFT/ITL, queue depth, GPU memory headroom, and error classes (OpenTelemetry GenAI semantic conventions: https://opentelemetry.io/docs/specs/semconv/gen-ai/).

Do / Avoid

Do

  • Do enforce max_input_tokens and max_output_tokens at the API boundary.
  • Do cap concurrency and queue depth; return overload errors quickly.
  • Do validate quality after any quantization or kernel change.

Avoid

  • Avoid unbounded retries (amplifies outages).
  • Avoid unbounded context windows (OOM + latency spikes).
  • Avoid benchmarking on single requests; always test with realistic concurrency.

Accuracy Protocol (REQUIRED)

  • Treat performance ratios (for example, "2x faster") as hypotheses unless a source is cited and the workload is comparable.
  • Do not recommend hardware/SKU changes without stating assumptions (model size, context length, concurrency, interconnect).
  • Prefer a measured baseline + checklist-driven rollout over "best practice" claims.

Resources (Detailed Operational Guides)

For comprehensive guides on specific topics, see:

Infrastructure & Serving

Performance Optimization

Deployment & Operations

Cost & Routing


Templates

Inference Configs

Production-ready configuration templates for leading inference engines:

Quantization & Compression

Model compression templates for reducing memory and cost:

Serving Pipelines

High-throughput serving architectures:

Caching & Batching

Performance optimization templates:

Benchmarking

Performance measurement and validation:

Checklists

Navigation

Resources

Templates

Data


Trend Awareness Protocol

IMPORTANT: When users ask recommendation questions about LLM inference, you MUST use WebSearch to check current trends before answering.

Trigger Conditions

  • "What's the best inference engine for [use case]?"
  • "What should I use for [serving/quantization/batching]?"
  • "What's the latest in LLM inference optimization?"
  • "Current best practices for [vLLM/TensorRT/quantization]?"
  • "Is [inference tool] still relevant in 2026?"
  • "[vLLM] vs [TensorRT-LLM] vs [SGLang]?"
  • "Best quantization method for [model size]?"
  • "What GPU should I use for inference?"

Required Searches

  1. Search: "LLM inference optimization best practices 2026"
  2. Search: "[vLLM/TensorRT-LLM/SGLang] comparison 2026"
  3. Search: "LLM quantization trends January 2026"
  4. Search: "LLM serving new releases 2026"

What to Report

After searching, provide:

  • Current landscape: What serving engines are popular NOW (not 6 months ago)
  • Emerging trends: New inference optimizations gaining traction
  • Deprecated/declining: Techniques or tools losing relevance
  • Recommendation: Based on fresh data, not just static knowledge

Example Topics (verify with fresh search)

  • Inference engines (vLLM 0.7+, TensorRT-LLM, SGLang, llama.cpp)
  • Quantization methods (FP8, AWQ, GPTQ, GGUF, bitsandbytes)
  • Attention kernels (FlashAttention-3, FlashInfer, xFormers)
  • Speculative decoding advances
  • KV cache optimization techniques
  • New GPU architectures (H200, Blackwell) and their optimizations

Related Skills

This skill focuses on inference-time performance. For related workflows:

  • See "Scope Boundaries" above.

External Resources

See data/sources.json for:

  • Serving frameworks (vLLM, TensorRT-LLM, DeepSpeed-MII)
  • Quantization libraries (GPTQ, AWQ, bitsandbytes, LLM Compressor)
  • FlashAttention, FlashInfer, xFormers
  • GPU hardware guides and optimization docs
  • Benchmarking frameworks and tools

Use this skill whenever the user needs LLM inference performance, cost reduction, or serving architecture guidance.

Fact-Checking

  • Use web search/web fetch to verify current external facts, versions, pricing, deadlines, regulations, or platform behavior before final answers.
  • Prefer primary sources; report source links and dates for volatile information.
  • If web access is unavailable, state the limitation and mark guidance as unverified.

平台分布

Claude Code

27.08%
按下载量换算208

Cursor

22.04%
按下载量换算169

Gemini CLI

17.18%
按下载量换算132

Antigravity

12.13%
按下载量换算93

Codex

8.08%
按下载量换算62

trae

3.65%
按下载量换算28

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills