Request access

Access to this repository requires approval from Goodfire. By requesting access, you accept the Goodfire Monitor License Agreement below on behalf of your organization.

Goodfire Monitor License Agreement
Last updated: December 2, 2026
This Monitor License Agreement is between you and Goodfire AI, Inc. (“Goodfire”). Its terms apply to the Monitors (defined below) that Goodfire makes available in the repository where these terms appear. By requesting access to, downloading, or using the Monitors, you agree to these terms. If you do so on behalf of an organization, “you” means that organization, and you confirm that you have the authority to accept these terms for it. If you have a signed agreement with Goodfire that covers the Monitors, that agreement controls where it conflicts with these terms.
The “Monitors” are the models, classifiers, judge prompts, and other components that Goodfire makes available to detect, score, or classify a model’s inputs, outputs, internal states, or behavior, including their files, weights, and configurations, together with related documentation.
THE MONITORS ARE INTENDED TO SUPPORT YOUR INTERNAL SECURITY AND SAFETY REVIEW OF AI MODELS. THEY ARE A TOOL TO HELP IDENTIFY CERTAIN MODEL BEHAVIOR, NOT A GUARANTEE. MONITORS WILL NOT DETECT OR PREVENT ALL HARMFUL, UNWANTED, OR NON-COMPLIANT MODEL BEHAVIOR, AND THEY MAY FLAG LEGITIMATE USE. THE NAME OF A MONITOR, THE MODEL CARD, BENCHMARKS, AND OTHER DESCRIPTIONS ARE NOT GUARANTEES, AND REPORTED RESULTS COME FROM TESTING UNDER SPECIFIC CONDITIONS. YOU DECIDE WHETHER AND HOW TO USE THE MONITORS, AND YOU REMAIN SOLELY RESPONSIBLE FOR YOUR USE OF THEM, FOR THE MODELS YOU RUN WITH THEM, AND FOR YOUR PRODUCTS AND SERVICES.
1. Access
Goodfire decides who receives access to the Monitors. The information you give Goodfire when you request access must be accurate. Goodfire handles that information as described in its Privacy Policy.
Access is for you and for your employees and contractors who need the Monitors for your Internal Use under Section 2. You are responsible for all acts and omissions of anyone who receives or uses the Monitors through you, and any act or omission by any of them that would constitute a breach of these terms if taken by you will be deemed a breach of these terms by you. You will take reasonable care to keep the Monitors secure and to prevent unauthorized access, use, or copying.
2. What you may do
Subject to these terms, Goodfire grants you a non-exclusive, non-transferable, non-sublicensable, revocable, royalty-free license, solely for use by you and your employees and contractors on systems you control to monitor, evaluate, and secure your own models, products, and services, including models you operate to serve your own customers, but not to distribute or copy the Monitors or any Derivative for, or make them available to, any third party, offer them as a standalone product or service, or develop a Competing Product (as defined in Section 3) (“Internal Use”), to:
(a) install, copy, and run the Monitors on systems you control; and
(b) set the thresholds and other settings of the Monitors, and create and use any modification, improvement, or derivative work of the Monitors, and any model, classifier, or other component trained, fine-tuned, or distilled from the Monitors (collectively, “Derivatives”), in each case to fit your systems.
3. What you may not do
The Monitors, including their weights and configurations, are confidential to Goodfire and contain Goodfire’s trade secrets. Accordingly, except as expressly permitted for your Internal Use under Section 2, you will not, and will not permit anyone else to, do or attempt any of the following:
(a) share, publish, distribute, sublicense, sell, lease, or otherwise make the Monitors or any Derivative available to anyone other than your employees and contractors under Section 1;
(b) use the Monitors, any Derivative, or anything learned from them to circumvent, evade, defeat, bypass, or weaken any Monitor or any other model-monitoring or safety system, other than to test systems that you operate, or help anyone else do so except as otherwise expressly approved by Goodfire in writing;
(c) share or publish, other than with your employees and contractors as approved under Section 1, any jailbreak, prompt, or other method for circumventing, evading, defeating, bypassing, or weakening a Monitor (publishing findings about the Monitors’ limitations that do not include such a method is permitted);
(d) use the Monitors, any Derivative, or their outputs to develop, train, fine-tune, or distill any product, model, or service that replicates or substitutes for the Monitors (a “Competing Product”). For the sake of clarity, nothing in these terms stops you from building your own monitors, as long as you do not use the Monitors, any Derivative, or their outputs to do so;
(e) remove or alter any notice in the Monitors;
(f) state or imply that the Monitors will detect or prevent all harmful, unwanted, or non-compliant model behavior, or that Goodfire endorses your products or services; or
(g) use the Monitors in any manner or for any purpose that infringes, misappropriates, or otherwise violates any intellectual property right or other right of any person, or that violates any applicable law.
4. Use of Derivatives
Goodfire retains ownership of the Monitors and any Derivatives, and you hereby assign any ownership interest you may have in the Derivatives. Notwithstanding the foregoing, you are free to use any Derivative for Internal Use, subject to the restrictions in Section 3. Goodfire reserves all rights not expressly granted to you in these terms.
5. Base model and third-party software
The Monitors are built to run with Kimi K3.1-Pro, a model developed by Moonshot AI (the “Base Model”). The Monitors do not include the Base Model. Goodfire did not develop the Base Model and is not responsible for it, and your use of it is governed by its own license.
Goodfire publishes software for running the Monitors separately under an open source license. That license, and not these terms, applies to that software.
6. Disclaimer
THE MONITORS AND ALL RESULTS OF USING THEM ARE PROVIDED “AS IS” AND GOODFIRE HEREBY DISCLAIMS ALL WARRANTIES, WHETHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE. GOODFIRE SPECIFICALLY DISCLAIMS ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT, AND ALL WARRANTIES ARISING FROM COURSE OF DEALING, USAGE, OR TRADE PRACTICE. GOODFIRE MAKES NO WARRANTY OF ANY KIND THAT THE MONITORS, OR ANY PRODUCTS OR RESULTS OF THE USE THEREOF, WILL MEET YOUR OR ANY OTHER PERSON’S REQUIREMENTS, OPERATE WITHOUT INTERRUPTION, ACHIEVE ANY INTENDED RESULT, BE COMPATIBLE OR WORK WITH ANY SOFTWARE, SYSTEM, OR OTHER PLATFORM, OR BE SECURE, ACCURATE, COMPLETE, FREE OF HARMFUL CODE, OR ERROR FREE. GOODFIRE DOES NOT WARRANT THAT ANY MODEL USED WITH A MONITOR IS SAFE, OR THAT ANY MONITOR WILL DETECT ANY PARTICULAR BEHAVIOR OR ACHIEVE ANY PARTICULAR RESULT.
7. Limitation of liability
TO THE FULLEST EXTENT PERMITTED BY LAW, IN NO EVENT WILL GOODFIRE OR ITS AFFILIATES OR LICENSORS BE LIABLE UNDER OR IN CONNECTION WITH THESE TERMS OR THE MONITORS UNDER ANY LEGAL OR EQUITABLE THEORY, INCLUDING BREACH OF CONTRACT, TORT (INCLUDING NEGLIGENCE), PRODUCTS LIABILITY, STRICT LIABILITY, AND OTHERWISE, FOR ANY DAMAGES, LOSSES, OR COSTS OF ANY KIND, WHETHER DIRECT OR INDIRECT, INCLUDING ANY: (a) CONSEQUENTIAL, INCIDENTAL, INDIRECT, EXEMPLARY, SPECIAL, ENHANCED, OR PUNITIVE DAMAGES; (b) INCREASED COSTS, DIMINUTION IN VALUE OR LOST BUSINESS, PRODUCTION, REVENUES, OR PROFITS; (c) LOSS OF GOODWILL OR REPUTATION; (d) USE, INABILITY TO USE, LOSS, INTERRUPTION, DELAY, OR RECOVERY OF ANY DATA, OR BREACH OF DATA OR SYSTEM SECURITY; OR (e) COST OF REPLACEMENT GOODS OR SERVICES, IN EACH CASE REGARDLESS OF WHETHER GOODFIRE OR ITS AFFILIATES OR LICENSORS WERE ADVISED OF THE POSSIBILITY OF SUCH LOSSES OR DAMAGES OR SUCH LOSSES OR DAMAGES WERE OTHERWISE FORESEEABLE.
8. Indemnity
You shall indemnify, hold harmless, and, at Goodfire’s option, defend Goodfire from and against any losses, damages, liabilities, and costs (including reasonable attorneys’ fees) resulting from any third-party claim, suit, action, or proceeding based on (a) the models you run with the Monitors, (b) your products and services, (c) your negligence or willful misconduct, (d) Derivatives or other modifications to the Monitors not made by Goodfire, or (e) use of the Monitors, by you or anyone who receives or uses them through you, in a manner not authorized by these terms or the law, provided that you may not settle any such claim against Goodfire unless Goodfire consents to such settlement, and further provided that Goodfire will have the right, at its option, to defend itself against any such claim or to participate in the defense thereof by counsel of its own choice.
9. Changes, suspension, and ending
Goodfire may update, change, or stop offering the Monitors at any time. New versions of the Monitors may come with updated terms.
Goodfire may suspend or end your access to the Monitors and your rights under these terms at any time, including, at Goodfire’s sole discretion, if Goodfire suspects that: (a) you or anyone who receives or uses the Monitors through you has violated these terms; (b) your or their use of the Monitors poses a security, legal, or operational risk to Goodfire or any third party; or (c) suspension is necessary to comply with applicable law or the request of a governmental authority. Goodfire will have no liability for any suspension or termination under this Section.
When your rights end, you will stop using the Monitors and all Derivatives and promptly delete all copies of them. Any provision of these terms that, by its nature, is intended to survive will survive after your rights end, including Section 3 (What you may not do) and provisions relating to ownership, disclaimers, indemnification, limitations of liability, dispute resolution, and any accrued rights or obligations.
10. General
The Monitors may be subject to U.S. export control and economic sanctions laws and regulations, including the Export Administration Regulations (“EAR”) administered by the Bureau of Industry and Security (“BIS”) and the economic sanctions regulations administered by the Office of Foreign Assets Control (“OFAC”) (collectively, “Trade Control Laws”). You shall comply with all applicable Trade Control Laws and shall not access, use, download, export, re-export, or transfer the Monitors, or permit any third party to access, use, download, export, re-export, or transfer the Monitors, in violation of any Trade Control Laws.
These terms are governed by the laws of the State of Delaware, without regard to its conflict-of-laws principles. You and Goodfire submit to the exclusive jurisdiction of the state and federal courts located in the State of Delaware for any dispute arising out of or relating to these terms or the Monitors.
Subject to any signed agreement described above, these terms constitute the sole and entire agreement between you and Goodfire with respect to the Monitors and supersede all prior and contemporaneous understandings, agreements, and representations and warranties, both written and oral, with respect to the Monitors.
If any provision of these terms is invalid, illegal, or unenforceable in any jurisdiction, such invalidity, illegality, or unenforceability will not affect any other term or provision of these terms or invalidate or render unenforceable such term or provision in any other jurisdiction.
You acknowledge that any breach or threatened breach of Section 2, Section 3, or Section 4 may cause Goodfire immediate and irreparable harm for which monetary damages would not be an adequate remedy. Accordingly, in addition to any other remedies available at law or in equity, Goodfire will be entitled to equitable relief, including a temporary restraining order, preliminary and permanent injunction, and specific performance, to stop any such breach or threatened breach, without any requirement to post a bond or other security or to prove actual damages.
Questions and legal notices go to legal@goodfire.ai.

Log in or Sign Up to review the conditions and access this model content.

Kimi K3.1 Pro Monitors

Kimi K3.1 Pro is Moonshot AI's open-weights reasoning model, matching closed frontier models on long-horizon coding, financial analysis, and multi-step agentic work. As deployments move from chat to autonomous tool use, built-in refusals benefit from runtime oversight for jailbreaks, prompt injections, and unauthorized tool calls.

Goodfire's monitors provide a runtime monitoring layer without modifying Kimi K3.1 Pro's weights. Ten monitors across four risk families (including two cyber policy variants, Offensive cyber and Malicious cyber) inspect Kimi K3.1 Pro's internal activations with lightweight probes and escalate high-scoring spans to a policy judge. External red-teaming by FAR.AI found no universal jailbreaks against Kimi K3.1 Pro with our misuse suite (down from 138 without monitors, counting flagged responses as blocked) and flagged >99.9% of successful jailbreaks, at 1.2% compute overhead, 40x less than a recall-matched LLM judge.

This repository packages the eleven activation probe checkpoints, seven policy rubrics (Misuse and Authorization), and the turnkey serving configs.

You can find the full evaluation methodology, per-monitor results, and normal-traffic replay analysis in the Monitor Card.

How to run

Pair either inference engine (SGLang or vLLM) with either router (SMG or Dynamo). All three flags (--probe-manifest, --mmp-config, and --monitor-rules) load directly from Goodfire/Kimi-K3.1-monitors using HF_TOKEN.

Component Prebuilt images (ghcr.io/goodfire-ai/...)
Engines sglang-goodfire:latest, vllm-goodfire:latest
SMG router smg-goodfire:latest
Dynamo router & workers dynamo-goodfire-frontend:latest, dynamo-goodfire-sglang:latest, dynamo-goodfire-vllm:latest

Export your Hugging Face read token (export HF_TOKEN="hf_..."), then launch the target model, the local judge (rules.toml defaults to deepseek-ai/DeepSeek-V4.1-Flash on port 8001), and the router:

# Target model with probes on port 30000 (for vLLM, use ghcr.io/goodfire-ai/vllm-goodfire:latest with `vllm serve ...`)
docker run --gpus all --network host -e HF_TOKEN ghcr.io/goodfire-ai/sglang-goodfire:latest \
  python3 -m sglang.launch_server --model-path moonshotai/Kimi-K3.1-Pro --port 30000 \
    --tp 8 --trust-remote-code --load-format fastsafetensors \
    --reasoning-parser kimi_k3 --tool-call-parser kimi_k3 \
    --speculative-algorithm DFLASH --speculative-draft-model-path RadixArk/Kimi-K3.1-Dflash2-Preview \
    --probe-manifest Goodfire/Kimi-K3.1-monitors --mmp-config Goodfire/Kimi-K3.1-monitors

# Local judge on port 8001 (for vLLM, use `--reasoning-parser deepseek_r1`)
docker run --gpus all --network host -e HF_TOKEN ghcr.io/goodfire-ai/sglang-goodfire:latest \
  python3 -m sglang.launch_server --model-path deepseek-ai/DeepSeek-V4.1-Flash --port 8001 \
    --tp 4 --ep-size 4 --trust-remote-code --reasoning-parser auto

# Router on port 8000 (for Dynamo, run `dynamo-goodfire-frontend` + `dynamo-goodfire-sglang` / `dynamo-goodfire-vllm`)
docker run --network host -e HF_TOKEN ghcr.io/goodfire-ai/smg-goodfire:latest \
  --port 8000 --worker-urls http://127.0.0.1:30000 --monitor-rules Goodfire/Kimi-K3.1-monitors

The router exposes a standard OpenAI /v1/chat/completions endpoint. To customize monitors, thresholds, or the judge endpoint, pass local probes.toml, mmp.toml, or rules.toml files to those flags; each fork also includes a Dockerfile.goodfire to build from source.

Repository and serving stack

In this repository (gated)

Artifact Path Description
Activation probes probes/ Eleven .safetensors checkpoints (format_version: 2) reading layer 48 of Kimi K3.1 Pro
Policy rubrics policies/ Seven judge system prompts covering the Misuse (5) and Authorization (2) families
Serving configs probes.toml, mmp.toml, rules.toml Turnkey probe hook points, engine monitor bindings, calibrated thresholds, and judge rules

Open-source serving stack (public on GitHub)

The serving and monitoring stack is open source. Pair an inference engine fork with a router and the two core Goodfire libraries to run these monitors out of the box:

Layer Repositories Role
Inference engines sglang-goodfire, vllm-goodfire Extract layer-48 activations during generation and score probes in-flight (probes.toml, mmp.toml)
Routers & frontends smg-goodfire, dynamo-goodfire Orchestrate requests, stream probe scores, and apply policy actions (rules.toml)
Core libraries goodfire-inference, goodfire-monitor Shared probe runtime, thresholding, judge escalation, and rule enforcement

Evaluation results

The table below summarizes each monitor from the Monitor Card: share of evaluation violations flagged or refused with monitoring (Monitored) versus Kimi K3.1 Pro's built-in refusals (Baseline), alongside per-conversation normal-traffic flag rate and judge compute overhead measured by replaying over 100,000 public chat, coding, and tool-use conversations through Kimi K3.1 Pro.

Deployments enable only the monitors they need, choosing either Offensive cyber or Malicious cyber (Malicious cyber permits scoped offensive security testing). Dashes mark monitors without a built-in refusal baseline. Compute overhead is extra judge compute as a fraction of Kimi K3.1 Pro's inference compute.

Family Monitor Suggested action Monitored Baseline Normal flag rate Overhead
Misuse Offensive cyber Block 96% 49% 0.6% 0.3%
Misuse Malicious cyber (alt.) Block 95% 76% 0.2% 0.2%
Misuse CBRNe Block 98% 84% 0.1% 0.2%
Misuse Jailbreaks Block 95% 85% 0.2% 0.2%
Misuse Harmful assistance Block 96% 89% 0.4% 0.6%
Authorization Prompt injections Redirect 96% 83% 0.2% 0.3%
Authorization Risky actions Block / Ask / Redirect 88% - 5.5% 0.5%
Misalignment Reward hacking Log 90% - 0.6% 0.2%
Misalignment Evaluation awareness Log 84% - <0.1% 0.1%
User safety Psychological safety Redirect 93% - <0.1% <0.1%
User safety High-stakes advice Log 85% - 0.6% 0.4%

Suite totals on normal traffic (using Offensive cyber as the default over Malicious cyber):

  • Misuse suite (4 monitors): 0.9% per-conversation flag rate, 1.2% compute overhead.
  • Full suite (10 monitors): 7.7% per-conversation flag rate, 2.9% compute overhead.

External red-teaming (FAR.AI)

FAR.AI tested Kimi K3.1 Pro with a fixed set of 1,500 automated attack variants across five domains (Chemistry, Biology, Nuclear and radiological, Explosives, and Cybersecurity) via our hosted endpoint, without response prefilling or adaptations tailored to the monitors, and counted flagged responses as blocked. Running all three stages of FAR.AI's AI Security Leaderboard method (237,648 attempts across 360 prompts), Goodfire monitors reduced universal jailbreaks (variants that work on at least 75% of a domain's tested prompts) from 138 to 0, the same result as the proprietary frontier models currently on the leaderboard.

Metric Baseline (Kimi K3.1 Pro) Monitored (Misuse suite)
Attack success rate (Stage 1, all domains) 15.1% 0.01%
Successful jailbreaks flagged (all 3 stages) - >99.9% (89,315 / 89,348)
Universal jailbreak variants (>=75% ASR in a domain, 3 stages) 138 0

Probes, policies, and configuration

Each threshold is calibrated on our evaluation suites and normal-traffic replay to balance screening recall against judge compute overhead. Scores are raw log-odds; items with score > threshold escalate to the judge (or log directly where no judge policy is bundled).

Monitor Probe Policy rubric Architecture Scored span Threshold
Offensive cyber probes/offensive-cyber.safetensors policies/offensive-cyber.md Covariance Assistant reply -6.27
Malicious cyber probes/malicious-cyber.safetensors policies/malicious-cyber.md Rolling-max linear User + assistant -1.92
CBRNe probes/cbrne.safetensors policies/cbrne.md Covariance User message -6.89
Jailbreaks probes/jailbreaks.safetensors policies/jailbreaks.md Covariance User + assistant -9.42
Harmful assistance probes/harmful-assistance.safetensors policies/harmful-assistance.md Covariance User + assistant -3.44
Prompt injections probes/prompt-injections.safetensors policies/prompt-injections.md Covariance Tool result -3.77
Risky actions probes/risky-actions.safetensors policies/risky-actions.md Covariance Tool call -1.62
Reward hacking probes/reward-hacking.safetensors - Rolling-max linear Assistant reply 0.46
Evaluation awareness probes/evaluation-awareness.safetensors - Rolling-max linear Assistant reply -1.93
Psychological safety probes/psychological-safety.safetensors - Covariance User + assistant -3.80
High-stakes advice probes/high-stakes-advice.safetensors - Rolling-max linear User + assistant -3.67

Three configuration files wire the probes into the serving stack:

  • probes.toml: maps each probe name to its .safetensors path and Kimi K3.1 Pro hook point (model.model.layers.48.self_attn@input).
  • mmp.toml: registers each probe as an inference-engine monitor and configures which message spans (prompt, output, or both) emit scores.
  • rules.toml: sets operating thresholds, actions (stop for Misuse, log for Authorization, Misalignment, and User safety), and judge system_prompt_file paths for the seven monitors with bundled policy rubrics.

Architecture and file format

Every probe reads Kimi K3.1 Pro's residual stream at layer 48 (model.model.layers.48.self_attn@input) during the model's normal forward pass. Probes score discrete spans (user messages, assistant replies, tool calls, or tool results) matched by chat-template token boundaries, and only items crossing a calibrated screening threshold are escalated to a policy judge (see Goodfire's production cyber monitors on Kimi K3 post for the probe-plus-judge cascade design).

Two pooled probe architectures are included:

  • Covariance probes (7 probes): project each token's activations through a bottleneck, pool pairwise feature co-occurrence across the span instead of taking a simple average, and apply a linear readout. See Goodfire's Covariance-based Sequence Pooling post for the motivation and details.
  • Rolling-max linear probes (4 probes): score each token linearly and take the peak rolling-window average across the span.

In the Monitor Card, escalated spans are evaluated by DeepSeek-V4.1-Flash against each monitor's policy rubric, returning a suggested action (Block, Ask, Redirect, Log, or Allow).

Each checkpoint is a .safetensors file (format_version: "2") readable with safetensors:

import json
from safetensors import safe_open

with safe_open("probes/cbrne.safetensors", framework="pt") as f:
    metadata = f.metadata()
    aggregation = json.loads(metadata["aggregation"])
    threshold = float(metadata["threshold"])
    weight = f.get_tensor("weight")
    bias = f.get_tensor("bias")
    # Covariance probes also store "aggregation.readout" and "aggregation.bias"

Every file stores weight and bias tensors (plus aggregation.readout and aggregation.bias for covariance probes) and __metadata__ entries for format_version, base_model, threshold, and aggregation (pooling type, window or positive class index, and Kimi K3.1 Pro span token patterns).

Limitations and intended use

  • Model specificity: all eleven probes read moonshotai/Kimi-K3.1-Pro activations at model.model.layers.48.self_attn@input. They do not transfer to other base models or fine-tuned weights without re-evaluation and recalibration.
  • Cascade calibration: the reported thresholds are tuned for a probe-plus-judge cascade (balancing screening recall against judge compute overhead). Running a probe standalone without a judge requires refitting the threshold to match your deployment's target flag rate on production traffic.
  • Distribution shift: evaluation recall and normal-traffic flag rates reflect the benchmarks and public conversation replay described in the Monitor Card. Production workloads differ; operators should audit false flags and recalibrate thresholds on representative traffic.
  • Monitoring scope: these probes provide a runtime signal for auditing and escalation. They are one layer in a defense-in-depth deployment and do not guarantee detection of all policy violations.

Citation

@misc{goodfire2026kimimonitors,
  title  = {Kimi K3.1 Pro Monitors: Activation Probes and Monitor Card},
  author = {Goodfire},
  year   = {2026},
  month  = {December},
  url    = {https://huggingface.co/Goodfire/kimi-k3.1-monitors}
}
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Goodfire/kimi-k3.1-monitors

Finetuned
(34)
this model