executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
local-inference-decodingUse OptiLLM local HuggingFace and MLX inference, LoRA adapters, backend checks, reasoning tokens, logprobs, and advanced decoding methods safely.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when OptiLLM itself loads and serves local models, or when a task involves local decoding methods and backend troubleshooting.
OPTILLM_API_KEY=optillm to enable the built-in local inference client.+.active_adapter, logprobs, token limits, or reasoning-token accounting.cot_decoding, entropy_decoding, thinkdeeper, deepconf, or autothink.Route external provider/server setup to ../proxy-server/SKILL.md. Route core approach selection to ../optimization-approaches/SKILL.md. Route JSON/router/deepthink plugins to ../plugins-and-tools/SKILL.md when the plugin is the user-facing surface.
OPTILLM_API_KEY activates the local engine; unset it for external provider proxying.python scripts/check_local_backend.py --json to inspect torch/CUDA/MPS/transformers/MLX imports without downloads.+.max_tokens or OPTILLM_MAX_TOKENS for small models that may not emit EOS.cot_decoding, entropy_decoding, thinkdeeper, deepconf, and autothink require local model internals/logits, not just an external provider.usage.completion_tokens_details.reasoning_tokens when using <think> tags or reasoning methods.export OPTILLM_API_KEY=optillm
optillm --model meta-llama/Llama-3.2-1B-Instruct
Client:
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="optillm")
response = client.chat.completions.create(
model="meta-llama/Llama-3.2-1B-Instruct",
messages=[{"role": "user", "content": "Say hello."}],
max_tokens=64,
)
LoRA model string:
base-model+adapter-one+adapter-two
Select adapter through request body:
extra_body={"active_adapter": "adapter-one"}
cot_decoding, entropy_decoding, thinkdeeper, deepconf, and autothink.python scripts/check_local_backend.py --help before loading a real model.OPTILLM_API_KEY.torch imports and reports the expected backend.