dsh-llm-sampling
Run the following command in DeepSeek Harness:
dsh plugin install kuma-loong/dsh-llm-sampling
Paste the following prompt into your AI chat to install this plugin:
Run the command_install in your DeepSeek Harness to install the plugin from https://github.com/kuma-loong/dsh-llm-sampling, then add an llm-sampling section to settings.yaml to activate sampling policy.
About this plugin
In multi-model inference pipelines built on the DeepSeek Harness, callers must manually supply temperature, topP, topK, and other sampling fields on every request, which is tedious and prone to omissions that cause output quality to drift. dsh-llm-sampling elevates sampling policy to a deployment-level concern: declare a complete parameter set for a named provider/model route in settings.yaml, and the plugin overrides every upstream agent/request proposal in the waterfall, guaranteeing a consistent generation distribution on that route.
The plugin touches no prompt text or tool schema and adds zero tokens; it only reshapes the sampling distribution itself. When reasoningEffort is explicitly set to off, the off profile overlays the default; unconfigured routes pass through untouched. This lets you pin distinct topK and minP combinations per model and get deterministic parameter fallback on reasoning-mode switches, without scattering conditional logic across business code.
Ideal for teams that need uniform generation behavior across multiple providers and models; platform engineers who want to lift sampling strategy out of call-site code and into the infrastructure layer; and organizations that require an auditable, per-route parameter record for A/B experiments or compliance.
Use Cases
- Pin consistent temperature, topP, and topK values per provider/model route
- Automatically overlay a preset sampling profile on reasoning-mode switches
- Converge per-request generation distribution across a multi-provider setup
Best For
- Engineering teams building multi-model inference platforms
- Quality and compliance teams requiring uniform generation behavior
- Architects converging sampling policy into the infrastructure layer
Related Plugins
ModLens is a vision plugin for DeepSeek Harness that gives text-only models sight by reading images pasted directly into chat, with zero-config setup and multiple vision engines.
On-demand vision for text-only DeepSeek Harness agents: built-in free keyless vision chain and 14 vision tools, routing image turns as tool calls to vision models with pixel fidelity, no Python needed, one-command install.
Give text-only models in DeepSeek Harness eyes, enabling image Q&A, long-screenshot OCR, UI restoration, and GUI visual tasks.
An armor-breaking plugin for DeepSeek: rewrites instruction priority, expands refusal-blocked phrases, persists across sessions, and shows a green active indicator.