Xpersona
L

LLM Inference Performance Estimator

CLAWHUB · Unverified

Estimate LLM inference performance metrics including TTFT, decode speed, and VRAM requirements based on model architecture, GPU specs, and quantization format. Skill: LLM Inference Performance Estimator Owner: zhangyu68 Summary: Estimate LLM inference performance metrics including TTFT, decode speed, and VRAM requirements based on model architecture, GPU specs, and quantization format. Tags: latest:1.0.0 Version history: v1.0.0 | 2026-03-24T02:26:53.630Z | user Initial public release. - Estimate LLM inference performance metrics: TTFT (Time To First Token), decode speed, an

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17ebetxvynkc6f2jnptwrv7g583gmeb:llm-perf-estimator
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-zhangyu68-llm-perf-estimator/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

18,037 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

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:

| Model | Type | Total Params | Activated Params | Layers | Hidden | Heads (Q) | Heads (KV) | FFN Type | Intermediate | Vocab |
|---|---|---|---|---|---|---|---|---|---|---|
| **Qwen3.5-4B** | Hybrid Dense | 4B | 4B | 32 (8 full+24 linear) | 2560 | 16 (full) / 16 (linear) | 4 (full) | SwiGLU | 9216 | 248320 |
| **Qwen3.5-35B-A3B** | Hybrid MoE | 35B | 3B | 40 (10 full+30 linear) | 2048 | 16 (full) / 16 (linear) | 2 (full) | SwiGLU+MoE | 8×512 per tok | 248320 |

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. ["l

README.md

# llm-perf-estimator

A Claude Code skill that estimates LLM inference performance metrics based on model architecture, GPU specs, and quantization format.

## What it estimates

- **TTFT** — Time to First Token (prefill latency)
- **Decode speed** — tokens/second
- **VRAM usage** — weights + KV cache + activations + overhead

## Usage

```
/llm-perf-estimator [model] [gpu] [input_tokens] [output_tokens] [quant]
```

All arguments are optional — the skill will prompt for anything missing.

**Examples:**
```
/llm-perf-estimator Qwen3.5-4B RTX4090 2048 512 int4
/llm-perf-estimator config.json H100-SXM 4096 1024 fp8
/llm-perf-estimator
```

## Supported inputs

**Models (presets):**
- Qwen3.5-4B (Hybrid Dense, calibrated from official config)
- Qwen3.5-35B-A3B (Hybrid MoE, calibrated from official config)

For any other model, provide a `config.json` from ModelScope or HuggingFace — no need to download the full model weights.

**GPUs:** RTX 40/50 series, A100, H100, H200, L4, L40S, MI300X, Apple M4 series. Custom specs also accepted.

**Quantization:** `fp32`, `fp16`, `bf16`, `fp8`, `int8`, `int4`

## Architecture support

The skill handles:
- Standard dense transformers
- MoE (Mixture of Experts)
- Hybrid attention (linear + full attention layers, e.g. Qwen3.5 series)

For hybrid models, KV cache and O(n²) attention FLOPs are computed only for full attention layers. Linear attention layers use a fixed-size recurrent state that does not grow with sequence length.

## Methodology

| Phase | Bottleneck | Formula |
|---|---|---|
| Prefill (TTFT) | Compute-bound | FLOPs / (GPU TFLOPS × MFU) |
| Decode | Bandwidth-bound | Bytes per step / (HBM BW × utilization) |

MFU and bandwidth utilization coefficients are selected based on GPU type and prompt length.

## Installation

Copy `SKILL.md` to your Claude Code skills directory:

```bash
# Personal (all projects)
cp SKILL.md ~/.claude/skills/llm-perf-estimator.md

# Project-local
cp SKILL.md .claude/skills/llm-perf-estimator.md
```

## Contributing

Preset models are intentionally limited to architectures verified against official `config.json` files. To add a new preset, please include the source config in your PR.

_meta.json

{
  "ownerId": "kn70s7x8s79zj70xycct4rkwhn83hbee",
  "slug": "llm-perf-estimator",
  "version": "1.0.0",
  "publishedAt": 1774319213630
}

skill-card.md

## Description:

Estimate LLM inference performance metrics including TTFT, decode speed, and VRAM requirements based on model architecture, GPU specs, and quantization format.

This skill is ready for commercial/non-commercial use.

## Publisher:

[zhangyu68](https://clawhub.ai/user/zhangyu68)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineers use this skill to estimate single-GPU LLM inference latency, decode throughput, and memory requirements before selecting model, GPU, context length, and quantization settings.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: A local config.json shared with the agent may contain environment-specific paths or unrelated details.

Mitigation: Review the config file before sharing it and remove fields that are not needed for architecture and performance estimation.

Risk: Estimated TTFT, decode speed, and VRAM needs may differ from actual deployed performance because framework behavior and hardware utilization vary.

Mitigation: Use the report for planning and compare against benchmark measurements before making capacity, deployment, or purchasing decisions.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/zhangyu68/skills/llm-perf-estimator)
- [Hugging Face model config](https://huggingface.co/{org}/{model}/blob/main/config.json)
- [ModelScope model config](https://modelscope.cn/models/{org}/{model}/file/view/master/config.json)

## Skill Output:

**Output Type(s):** [Text, Markdown, Guidance]

**Output Format:** [Markdown report with summary tables, estimates, assumptions, and caveats]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May include intermediate calculations when requested; estimates are approximate and rounded for readability.]

## Skill Version(s):

1.0.0 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to LLM Inference Performance Estimator and adjacent AI workflows.