← 返回
AI智能 中文

llmfit

Detect local hardware (RAM, CPU, GPU/VRAM) and recommend the best-fit local LLM models with optimal quantization, speed estimates, and fit scoring.
检测本地硬件(内存、CPU、GPU/显存),推荐最佳本地大模型,含最优量化、速度预估及适配评分。
alexsjones
AI智能 clawhub v0.2.2 1 版本 99857.3 Key: 无需
★ 1
Stars
📥 1,380
下载
💾 138
安装
1
版本
#latest

概述

llmfit-advisor

Hardware-aware local LLM advisor. Detects your system specs (RAM, CPU, GPU/VRAM) and recommends models that actually fit, with optimal quantization and speed estimates.

When to use (trigger phrases)

Use this skill immediately when the user asks any of:

  • "what local models can I run?"
  • "which LLMs fit my hardware?"
  • "recommend a local model"
  • "what's the best model for my GPU?"
  • "can I run Llama 70B locally?"
  • "configure local models"
  • "set up Ollama models"
  • "what models fit my VRAM?"
  • "help me pick a local model for coding"

Also use this skill when:

  • The user wants to configure models.providers.ollama or models.providers.lmstudio
  • The user mentions running models locally and you need to know what fits
  • A model recommendation is needed and the user has local inference capability (Ollama, vLLM, LM Studio)

Quick start

Detect hardware

llmfit --json system

Returns JSON with CPU, RAM, GPU name, VRAM, multi-GPU info, and whether memory is unified (Apple Silicon).

Get top recommendations

llmfit recommend --json --limit 5

Returns the top 5 models ranked by a composite score (quality, speed, fit, context) with optimal quantization for the detected hardware.

Filter by use case

llmfit recommend --json --use-case coding --limit 3
llmfit recommend --json --use-case reasoning --limit 3
llmfit recommend --json --use-case chat --limit 3

Valid use cases: general, coding, reasoning, chat, multimodal, embedding.

Filter by minimum fit level

llmfit recommend --json --min-fit good --limit 10

Valid fit levels (best to worst): perfect, good, marginal.

Understanding the output

System JSON

{
  "system": {
    "cpu_name": "Apple M2 Max",
    "cpu_cores": 12,
    "total_ram_gb": 32.0,
    "available_ram_gb": 24.5,
    "has_gpu": true,
    "gpu_name": "Apple M2 Max",
    "gpu_vram_gb": 32.0,
    "gpu_count": 1,
    "backend": "Metal",
    "unified_memory": true
  }
}

Recommendation JSON

Each model in the models array includes:

FieldMeaning
------
nameHuggingFace model ID (e.g. meta-llama/Llama-3.1-8B-Instruct)
providerModel provider (Meta, Alibaba, Google, etc.)
params_bParameter count in billions
scoreComposite score 0–100 (higher is better)
score_componentsBreakdown: quality, speed, fit, context (each 0–100)
fit_levelPerfect, Good, Marginal, or TooTight
run_modeGPU, CPU+GPU Offload, or CPU Only
best_quantOptimal quantization for the hardware (e.g. Q5_K_M, Q4_K_M)
estimated_tpsEstimated tokens per second
memory_required_gbVRAM/RAM needed at this quantization
memory_available_gbAvailable VRAM/RAM detected
utilization_pctHow much of available memory the model uses
use_caseWhat the model is designed for
context_lengthMaximum context window

Fit levels explained

  • Perfect: Model fits comfortably with room to spare. Ideal choice.
  • Good: Model fits but uses most available memory. Will work well.
  • Marginal: Model barely fits. May work but expect slower performance or reduced context.
  • TooTight: Model does not fit. Do not recommend.

Run modes explained

  • GPU: Full GPU inference. Fastest. Model weights loaded entirely into VRAM.
  • CPU+GPU Offload: Some layers on GPU, rest in system RAM. Slower than pure GPU.
  • CPU Only: All inference on CPU using system RAM. Slowest but works without GPU.

Configuring OpenClaw with results

After getting recommendations, configure the user's local model provider.

For Ollama

Map the HuggingFace model name to its Ollama tag. Common mappings:

llmfit nameOllama tag
------
meta-llama/Llama-3.1-8B-Instructllama3.1:8b
meta-llama/Llama-3.3-70B-Instructllama3.3:70b
Qwen/Qwen2.5-Coder-7B-Instructqwen2.5-coder:7b
Qwen/Qwen2.5-72B-Instructqwen2.5:72b
deepseek-ai/DeepSeek-Coder-V2-Lite-Instructdeepseek-coder-v2:16b
deepseek-ai/DeepSeek-R1-Distill-Qwen-32Bdeepseek-r1:32b
google/gemma-2-9b-itgemma2:9b
mistralai/Mistral-7B-Instruct-v0.3mistral:7b
microsoft/Phi-3-mini-4k-instructphi3:mini
microsoft/Phi-4-mini-instructphi4-mini

Then update openclaw.json:

{
  "models": {
    "providers": {
      "ollama": {
        "models": ["ollama/<ollama-tag>"]
      }
    }
  }
}

And optionally set as default:

{
  "agents": {
    "defaults": {
      "model": {
        "primary": "ollama/<ollama-tag>"
      }
    }
  }
}

For vLLM / LM Studio

Use the HuggingFace model name directly as the model identifier with the appropriate provider prefix (vllm/ or lmstudio/).

Workflow example

When a user asks "what local models can I run?":

  1. Run llmfit --json system to show hardware summary
  2. Run llmfit recommend --json --limit 5 to get top picks
  3. Present the recommendations with scores and fit levels
  4. If the user wants to configure one, map it to the appropriate Ollama/vLLM/LM Studio tag
  5. Offer to update openclaw.json with the chosen model

When a user asks for a specific use case like "recommend a coding model":

  1. Run llmfit recommend --json --use-case coding --limit 3
  2. Present the coding-specific recommendations
  3. Offer to pull via Ollama and configure

Notes

  • llmfit detects NVIDIA GPUs (via nvidia-smi), AMD GPUs (via rocm-smi), and Apple Silicon (unified memory).
  • Multi-GPU setups aggregate VRAM across cards automatically.
  • The best_quant field tells you the optimal quantization — higher quant (Q6_K, Q8_0) means better quality if VRAM allows.
  • Speed estimates (estimated_tps) are approximate and vary by hardware and quantization.
  • Models with fit_level: "TooTight" should never be recommended to users.

版本历史

共 1 个版本

  • v0.2.2 当前
    2026-03-29 05:23 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 836 📥 213,164
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 712 📥 243,858
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,358 📥 318,424