local-inference-tuning

local-inference-tuning is a skill for Codex from markoblogo/abvx-agent-skills. It costs 76 tokens per session (1,317 once invoked), scanned A, original, MIT.

A guide for choosing and tuning software that runs language models on your own computer. It considers the machine's hardware, model format, storage, caching, and serving setup.

In plain words
What is it for?
Use it to set up or audit private local model serving, compare MLX, llama.cpp, Ollama, and vLLM, tune settings, and run basic benchmarks.
Why use it?
It helps avoid choosing an engine or model that does not fit the computer's memory, processor, graphics hardware, or available disk space.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to set up or audit private local model serving, compare MLX, llama.cpp, Ollama, and vLLM, tune settings, and run basic benchmarks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/markoblogo/abvx-agent-skills/local-inference-tuning
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add markoblogo/abvx-agent-skills --skill local-inference-tuning
Clone the repo
git clone --depth 1 https://github.com/markoblogo/abvx-agent-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for local-inference-tuning

README.md
[![agentmods](https://agentmods.dev/badge/skills/markoblogo/abvx-agent-skills/local-inference-tuning/github.svg)](https://agentmods.dev/skills/markoblogo/abvx-agent-skills/local-inference-tuning)
Your own site
<a href="https://agentmods.dev/skills/markoblogo/abvx-agent-skills/local-inference-tuning"><img src="https://agentmods.dev/badge/skills/markoblogo/abvx-agent-skills/local-inference-tuning/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for local-inference-tuning

Your own site · 80×15
<a href="https://agentmods.dev/skills/markoblogo/abvx-agent-skills/local-inference-tuning"><img src="https://agentmods.dev/badge/skills/markoblogo/abvx-agent-skills/local-inference-tuning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,317 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 14
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00076 $0.01317
Opus 5 $0.00038 $0.00659
Sonnet 5 $0.00015 $0.00263
Haiku 4.5 $0.00008 $0.00132

Measured 12d ago against content hash 2cc7c2a2ff60, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

local-inference-tuning scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/local-inference-tuning/SKILL.md · 166 lines

How it starts

The opening of the file, as written. The whole thing — 166 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Local Inference Tuning

Use this skill to design a local inference setup that fits the actual machine, model format, storage policy, and target workflow.

This skill may inspect hardware and local model inventory. Do not remove models, download large weights, change global package manager config, expose network services beyond loopback, or write to system-wide config unless the user explicitly approves.

Hardware Audit

Collect the minimum useful facts:

  • OS and architecture;
  • CPU / SoC / GPU;
  • RAM or unified memory;
  • available accelerators: Metal, CUDA, ROCm, Vulkan, CPU-only;
  • free disk on the approved model/cache volume;
  • thermal class if visible: desktop, laptop, fanless laptop;
  • existing engines: Ollama, llama.cpp, MLX, vLLM, LM Studio, Docker;
  • existing local models and formats: GGUF, MLX, safetensors, Ollama manifests.

Use compact commands. On macOS, prefer:

sysctl -n machdep.cpu.brand_string
sysctl -n hw.memsize
system_profiler SPHardwareDataType
system_profiler SPDisplaysDataType
df -h
ollama list

Engine Selection

Choose the engine by hardware and model format:

  • MLX / Rapid-MLX: best default for Apple Silicon and MLX-format models. Prefer when the user wants an OpenAI-compatible local endpoint, batching, prompt/prefix cache, and Apple GPU kernels.
  • llama.cpp / llama-cpp-python: best fallback for GGUF models, especially existing Ollama blobs or fully local files. Use Metal on Apple Silicon, CUDA on NVIDIA, CPU only as fallback.
  • Ollama: best simple model manager and casual local endpoint. Keep when ease of use matters more than fine-grained batching/KV tuning.
  • vLLM: best for NVIDIA CUDA servers with enough VRAM and concurrent serving workloads. Do not choose for Apple Silicon laptops.
  • TensorRT-LLM: specialized NVIDIA deployment path; only use when the user has server NVIDIA hardware and deployment maturity.

If a lower-overhead engine already meets the goal, do not introduce a heavier stack.

Model Fit Estimate

Read the full file on GitHub · 166 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 166 lines · 76 tokens per session scan A 2cc7c2a2ff60

Subscribe to this mod's changes

local-inference-tuning is a skill published in the GitHub repository markoblogo/abvx-agent-skills (16 stars, last pushed yesterday), licensed MIT. It adds 76 tokens to every session and 1,317 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

solr-query

To build and debug Solr queries: eDisMax, block join, JSON facets, kNN, explain.

griddynamics/rosetta · 27 tokens

x-bug2rag

A knowledge-capture tool that turns reusable bug explanations into a local RAG collection, meaning a searchable store of text that an agent can retrieve later. It records the trigger, incorrect implementation, correct implementation, and observable difference.

KtKID/x-dev-pipeline · 255 tokens

ai-hardware-selection

Selecting accelerators for AI workloads: GPU vs TPU vs NPU vs FPGA vs CPU, and the metrics that actually decide it — memory capacity & bandwidth, TOPS/ FLOPS, interconnect, and cost/Watt. Architect-level hardware-fit reasoning. USE WHEN: choosing AI hardware/accelerators, "which GPU", "TPU vs GPU", "NPU", "FPGA"…

claude-dev-suite/claude-dev-suite · 159 tokens

edge-inference

Edge / on-device AI inference architecture: running models on MCUs, NPUs, mobile, and mini-PCs; quantization for edge, TOPS/memory/energy budgets, TinyML, and the latency case for on-device vs cloud. Architect-level. USE WHEN: designing on-device/edge AI, "edge inference", "on-device", "NPU", "TinyML", "quantization"…

claude-dev-suite/claude-dev-suite · 163 tokens

agent-pytorch-build-resolver

PyTorch runtime, CUDA, and training error resolution specialist. Fixes tensor shape mismatches, device errors, gradient issues, DataLoader problems, and mixed precision failures with minimal changes. Use when PyTorch training or inference crashes.

KunanonJ/ai-skills-hub · 53 tokens

agent-network-troubleshooter

Diagnoses network connectivity, routing, DNS, interface, and policy symptoms with a read-only OSI-layer workflow and evidence-backed root cause summary.

KunanonJ/ai-skills-hub · 35 tokens