360 Secure SkillHub
360 安全技能中心

Local Model Quantization Router

根据硬件内存、隐私等级、任务复杂度、上下文窗口和预算等输入,通过本地 Python 脚本生成本地优先或云端回退的路由建议,包含模型系列、量化等级、端点类型、回退方案和决策理由;不下载模型,也不修改配置。

stevojarvisai-star
stevojarvisai-star
热度 30.81
最近更新 2026-05-11 17:46:49
分类:开发依赖:代码执行 / 读写文件应用场景:推荐 / DevOps / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add local-model-quantization-router
Metadata
name
local-model-quantization-router
description
Recommend local LLM model routes and quantization levels using hardware, privacy, task complexity, context size, and budget constraints. Use for Qwen/Ollama/local endpoint cost-performance decisions.

Local Model Quantization Router

Use this skill to choose between local quantized models and cloud fallback before running OpenClaw workloads.

Workflow

  1. Describe available hardware and task requirements.
  2. Run scripts/local_model_quantization_router.py with CLI flags or JSON input.
  3. Review the recommended model family, quantization level, endpoint, fallback, and risk notes.
  4. Use the output as routing evidence for local-first or privacy-first deployments.

Parameters

  • --task TEXT: Task summary.
  • --complexity {simple,standard,complex,critical}.
  • --privacy {low,normal,high,regulated}.
  • --vram-gb FLOAT: GPU memory available.
  • --ram-gb FLOAT: System memory available.
  • --context-tokens INT: Required context window.
  • --hardware PATH: Optional JSON with vram_gb, ram_gb, cpu_only.
  • --output PATH: Optional JSON output path.

Outputs

  • route: local-only, local-first, hybrid, or cloud-required.
  • model: Recommended model family.
  • quantization: Suggested quant level.
  • endpoint: Suggested local endpoint type.
  • fallback: Safer fallback when quality or context is insufficient.
  • reasons: Evidence for the decision.

No model is downloaded and no config file is changed.