360 Secure SkillHub
360 安全技能中心

MetriLLM

MetriLLM 通过命令行基准测试本地 Ollama 或 LM Studio 模型:测量吞吐量、首 token 延迟与内存占用,并评估推理、数学、编码、指令遵循等质量维度,输出 EXCELLENT/GOOD/MARGINAL/NOT RECOMMENDED 适配结论,结果以 JSON 保存在本地结果目录,也可选择将摘要上传至社区排行榜。

thebluehouse75
thebluehouse75
热度 87.72
最近更新 2026-05-17 13:10:26
分类:数据依赖:代码执行 / 读写文件应用场景:报告撰写 / 研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add metrillm
Metadata
name
metrillm
description
Find the best local LLM for your machine. Tests speed, quality and RAM fit, then tells you if a model is worth running on your hardware.
argument-hint
[model-name]
author
MetriLLM
source
https://github.com/MetriLLM/metrillm
license
Apache-2.0
allowed-tools
Bash, Read
install
npm install -g metrillm

MetriLLM — Find the Best LLM for Your Hardware

Test any local model and get a clear verdict: is it worth running on your machine?

Prerequisites

  1. Node.js 20+ — check with node -v
  2. Ollama or LM Studio installed and running
  3. MetriLLM CLI — install globally:
npm install -g metrillm

Usage

List available models

ollama list

Run a full benchmark

metrillm bench --model $ARGUMENTS --json

This measures:

  • Performance: tokens/second, time to first token, memory usage
  • Quality: reasoning, math, coding, instruction following, structured output, multilingual
  • Fitness verdict: EXCELLENT / GOOD / MARGINAL / NOT RECOMMENDED

Performance-only benchmark (faster)

metrillm bench --model $ARGUMENTS --perf-only --json

Skips quality evaluation — measures speed and memory only.

View previous results

ls ~/.metrillm/results/

Read any JSON file to see full benchmark details.

Share to the public leaderboard

metrillm bench --model $ARGUMENTS --share

Uploads your result to the MetriLLM community leaderboard — an open, community-driven ranking of local LLM performance across real hardware. Compare your results with others and help the community find the best models for every setup. Shared data includes: model name, scores, hardware specs (CPU, RAM, GPU). No personal data is sent.

Interpreting Results

Verdict Score Meaning
EXCELLENT >= 80 Fast and accurate — great fit
GOOD >= 60 Solid — suitable for most tasks
MARGINAL >= 40 Usable but with tradeoffs
NOT RECOMMENDED < 40 Too slow or inaccurate

Key metrics to highlight:

  • tokensPerSecond > 30 = good for interactive use
  • ttft < 500ms = responsive
  • memoryUsedGB vs available RAM = will it fit?

Tips

  • Use --perf-only for quick tests
  • Close GPU-intensive apps before benchmarking
  • Benchmark duration varies depending on model speed and response length

Open Source

MetriLLM is free and open source (Apache 2.0). Contributions, issues, and feedback are welcome: github.com/MetriLLM/metrillm