Token导航 LogoToken导航

Agent Skill · 开发

llm-perf-estimator(LLM perf estimator 开发)

llm-perf-estimator 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

llm-perf-estimator 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为操作浏览器;许可证为 MIT-0,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 6,957。

总安装 4,178周安装 169GitHub Stars 1下载 1,311核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:llm-perf-estimator(LLM perf estimator 开发)
来源仓库:https://github.com/zhangyu68/llm-perf-estimator
安装命令:
openclaw skills install llm-perf-estimator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install llm-perf-estimator

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

根据模型架构、GPU 规格和量化格式估计 LLM 推理性能指标,包括 TTFT、解码速度和 VRAM 要求。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install llm-perf-estimator;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

llm-perf-estimator 怎么安装?

在终端执行 openclaw skills install llm-perf-estimator。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

llm-perf-estimator 支持哪些 AI 工具?

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

llm-perf-estimator 需要什么权限?

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

llm-perf-estimator 是免费的吗?

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

llm-perf-estimator 用的人多吗?

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

llm-perf-estimator 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

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

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

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

开发类 Skill 对比

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

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
llm-perf-estimator

LLM perf estimator 开发 · 本页

4,1781操作浏览器MIT-0通过

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

SKILL.md 原文

name
llm-perf-estimator
description
Estimate LLM inference performance metrics including TTFT, decode speed, and VRAM requirements based on model architecture, GPU specs, and quantization format.
argument-hint
[model_name_or_config_path] [gpu_name] [input_tokens] [output_tokens] [quant]
user-invocable
true

LLM Inference Performance Estimator

Estimate TTFT (Time To First Token), decode speed (tokens/s), and VRAM usage for a given LLM on a specific GPU.

How to Use

The user may invoke this skill in several ways:

  1. Named model: /llm-perf-estimator Qwen2.5-7B RTX4090 2048 512 fp16
  2. With config file: /llm-perf-estimator config.json RTX4090 2048 512 int4
  3. Interactive: /llm-perf-estimator — ask the user step by step

Arguments (all optional, prompt for missing ones):

  • model — model name from preset list, or path to a HuggingFace config.json
  • gpu — GPU name from preset list, or custom specs
  • input_tokens — prefill sequence length (default: 1024)
  • output_tokens — number of tokens to generate (default: 256)
  • quant — quantization format: fp16, bf16, fp8, int8, int4 (default: fp16)

Step 1 — Resolve Model Architecture

Preset Models

If the user provides a known model name, use the following presets:

ModelTypeTotal ParamsActivated ParamsLayersHiddenHeads (Q)Heads (KV)FFN TypeIntermediateVocab
Qwen3.5-4BHybrid Dense4B4B32 (8 full+24 linear)256016 (full) / 16 (linear)4 (full)SwiGLU9216248320
Qwen3.5-35B-A3BHybrid MoE35B3B40 (10 full+30 linear)204816 (full) / 16 (linear)2 (full)SwiGLU+MoE8×512 per tok248320

If the model is not in the preset list and no config file is provided, ask the user to provide a config.json. They can get it without downloading the full model:

# ModelScope (browser)
https://modelscope.cn/models/{org}/{model}/file/view/master/config.json

# HuggingFace (browser)
https://huggingface.co/{org}/{model}/blob/main/config.json

Open the URL, copy the content, and paste it directly into the conversation. Alternatively, provide the local file path if the model is already downloaded.

If the user cannot provide a config, ask them to manually input:

  • num_hidden_layers, hidden_size, num_attention_heads, num_key_value_heads
  • intermediate_size, vocab_size
  • For MoE: num_experts, num_experts_per_tok, moe_intermediate_size

Parsing config.json

If the user provides a config.json path, read the file and extract:

num_hidden_layers, hidden_size, num_attention_heads, num_key_value_heads,
intermediate_size, vocab_size, model_type,
# MoE fields (if present):
num_experts / num_local_experts, num_experts_per_tok, moe_intermediate_size
# Hybrid attention (if present):
layer_types  ← list of strings, e.g. ["linear_attention", ..., "full_attention", ...]
head_dim     ← if explicitly provided, use it; otherwise head_dim = hidden_size / num_attention_heads

Determine num_full_attn_layers:

  • If layer_types exists: num_full_attn_layers = count of "full_attention" in layer_types
  • If layer_types is absent (standard transformer): num_full_attn_layers = num_hidden_layers

Note on nested configs (e.g. Qwen3.5-35B-A3B has a text_config wrapper):

  • If the top-level JSON has a text_config key, read all text model fields from inside it.
  • head_dim may be explicitly set (e.g. 256); prefer that over computing from hidden_size / num_attention_heads.

Note on tie_word_embeddings: if true, the embedding table and lm_head share the same weights. Do not count them twice in VRAM — the embedding contributes vocab_size × hidden_size × bytes_per_param only once.

Note on attn_output_gate: recognized but ignored in calculations — its contribution to FLOPs and VRAM is <1% and within the MFU uncertainty margin.


Step 2 — Resolve GPU Specs

Preset GPUs

GPUVRAM (GB)BF16 TFLOPSFP8 TFLOPSINT8 TOPSHBM BW (GB/s)
RTX 4060815.1—30.2272
RTX 4060 Ti1622.1—44.2288
RTX 40701229.1—58.2504
RTX 4070 Ti1240.1—80.2504
RTX 4070 Ti Super1640.1—80.2672
RTX 40801648.7—97.4717
RTX 4080 Super1652.2—104.4736
RTX 40902482.6—165.21008
RTX 5070 Ti16176.0352.0352.0896
RTX 508016225.0450.0450.0960
RTX 509032419.0838.0838.01792
A10G2431.2—62.5600
A100-40G4077.97—311.91555
A100-80G8077.97—311.92000
H100-SXM80989.41978.93958.03350
H100-PCIe80756.01513.03026.02000
H200-SXM141989.41978.93958.04800
L42430.360.6121.2300
L40S4891.6183.2366.4864
MI300X1921307.42614.95229.85300
Apple M4 (16GB)164.6——120
Apple M4 Pro (48GB)489.2——273
Apple M4 Max (128GB)12818.4——546

If the GPU is not listed, ask the user to provide:

  • VRAM (GB)
  • BF16/FP16 TFLOPS
  • HBM bandwidth (GB/s)

Step 3 — Quantization Bytes Per Parameter

FormatBytes/paramCompute dtypeNotes
fp324.0fp32Rarely used for inference
bf16 / fp162.0bf16/fp16Baseline
fp81.0fp8Requires H100/H200/RTX50xx
int81.0int8W8A8 or W8A16
int40.5int4/fp16GPTQ/AWQ/bitsandbytes

Select the GPU TFLOPS column matching the compute dtype:

  • fp16/bf16 → BF16 TFLOPS
  • fp8 → FP8 TFLOPS (fall back to BF16 if not supported, with a warning)
  • int8 → INT8 TOPS
  • int4 → BF16 TFLOPS (dequant to fp16 for matmul in most frameworks)

Step 4 — Compute VRAM Requirements

4.1 Weight Memory

weight_bytes = total_params × bytes_per_param
weight_GB = weight_bytes / 1e9

For MoE models, total_params includes all expert weights (not just activated).

4.2 KV Cache Memory

Only full attention layers maintain a KV cache. Linear attention layers use a fixed-size recurrent state (negligible, ~tens of MB) that does not grow with sequence length.

kv_heads = num_key_value_heads          # from full attention config
kv_bytes_per_token = 2 × num_full_attn_layers × kv_heads × head_dim × bytes_per_param
kv_cache_GB = kv_bytes_per_token × (input_tokens + output_tokens) / 1e9

If num_full_attn_layers = num_hidden_layers (standard transformer), this reduces to the standard formula.

4.3 Activation Memory (prefill peak)

activation_GB ≈ num_layers × hidden_size × input_tokens × bytes_per_param × 2 / 1e9

This is an approximation; actual peak depends on framework and attention implementation.

4.4 Total VRAM

total_VRAM_GB = weight_GB + kv_cache_GB + activation_GB

Add a 15% overhead for framework buffers, CUDA context, etc.:

total_VRAM_GB_with_overhead = total_VRAM_GB × 1.15

Step 5 — Estimate TTFT (Prefill Latency)

Prefill is compute-bound for long sequences.

5.1 Attention FLOPs (prefill)

Only full attention layers have O(n²) attention compute. Linear attention layers are O(n) and their attention FLOPs are already captured in the projection FLOPs (Step 5.3).

attn_flops = 4 × num_full_attn_layers × input_tokens² × hidden_size

(factor of 4 = QK matmul + softmax + AV matmul, forward pass)

If num_full_attn_layers = num_hidden_layers, this is the standard transformer formula.

5.2 FFN FLOPs (prefill)

For SwiGLU/GeGLU (3 projections: gate, up, down):

ffn_flops = 3 × 2 × num_layers × input_tokens × hidden_size × intermediate_size

For MoE, replace intermediate_size with num_experts_per_tok × moe_intermediate_size.

5.3 QKV + Output Projection FLOPs

For full attention layers (standard QKV projections):

full_proj_flops = 2 × num_full_attn_layers × input_tokens × hidden_size
                  × (num_attention_heads × head_dim + 2 × kv_heads × head_dim + hidden_size)

For linear attention layers (also have Q/K/V-equivalent projections, but different dims):

linear_proj_flops = 2 × num_linear_attn_layers × input_tokens × hidden_size
                    × (linear_num_key_heads × linear_key_head_dim
                       + linear_num_key_heads × linear_key_head_dim
                       + linear_num_value_heads × linear_value_head_dim
                       + hidden_size)

If layer_types is absent (standard transformer), only full_proj_flops applies and num_linear_attn_layers = 0.

5.4 Total Prefill FLOPs

total_prefill_flops = attn_flops + ffn_flops + full_proj_flops + linear_proj_flops

5.5 TTFT

Apply MFU (Model FLOP Utilization) efficiency factor:

ScenarioMFU
Long prompt (>512 tokens), data center GPU0.45
Long prompt, consumer GPU0.35
Short prompt (<128 tokens)0.25
effective_tflops = gpu_tflops × MFU
TTFT_seconds = total_prefill_flops / (effective_tflops × 1e12)

Step 6 — Estimate Decode Speed

Decode is memory-bandwidth-bound at batch=1.

6.1 Bytes Read Per Decode Step

Each decode step reads:

  • All activated model weights once
  • KV cache for all previous tokens (full attention layers only; linear attention state is fixed-size and already loaded with weights)
activated_weight_bytes = activated_params × bytes_per_param
kv_cache_bytes_at_step = kv_bytes_per_token × (input_tokens + current_output_tokens)
bytes_per_step = activated_weight_bytes + kv_cache_bytes_at_step

For the average decode step, use current_output_tokens ≈ output_tokens / 2.

6.2 Decode Speed

Apply bandwidth utilization efficiency factor:

ScenarioBW Utilization
Data center GPU (HBM2e/HBM3)0.85
Consumer GPU (GDDR6X)0.75
Apple Silicon (unified memory)0.80
effective_bandwidth = gpu_bandwidth_GBs × bw_utilization
decode_speed_tps = effective_bandwidth × 1e9 / bytes_per_step

Step 7 — Output Report

Present results as a Markdown report with the following sections:

Section 1: Configuration Summary

ParameterValue
Model{model_name}
TypeDense / MoE / Hybrid MoE
Total Params{X}B
Activated Params{X}B
Total Layers{N}
Full Attention Layers{N} ({N} linear attention)
GPU{gpu_name}
VRAM Available{X} GB
Quantization{quant}
Input Tokens{N}
Output Tokens{N}

Section 2: VRAM Breakdown

ComponentSize (GB)
Model Weights{X}
KV Cache{X}
Activations (peak){X}
Framework Overhead (15%){X}
Total Required{X}
GPU Available{X}
Fits in VRAM?✅ Yes / ❌ No

If it doesn't fit, suggest:

  • A lower quantization format
  • Offloading options (CPU offload, disk offload)

Section 3: Performance Estimates

MetricEstimate
TTFT (Time to First Token){X} ms
Decode Speed{X} tokens/s
Time to Generate {N} tokens{X} s
Total End-to-End Latency{X} s

Section 4: Assumptions & Caveats

List the MFU and bandwidth utilization values used, and note:

  • Estimates assume batch_size=1, single GPU
  • Actual performance varies by framework (vLLM, llama.cpp, Ollama, etc.)
  • FlashAttention / FlashAttention-2 is assumed for prefill
  • KV cache quantization not considered
  • Speculative decoding not considered

Notes for the Agent

  • Always show intermediate calculations in a collapsible section or footnote if the user asks "how did you calculate this"
  • If VRAM is insufficient, proactively suggest the minimum quantization that would fit
  • If the user provides a config.json, confirm the parsed values before computing
  • Round all results to 2 significant figures for readability
  • For MoE models, clearly distinguish total vs activated parameters in all calculations

平台分布

OpenClaw

76.44%
按下载量换算1,002

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

操作浏览器

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills