When Patronus Lynx hallucination detection fits a RAG assistant
Patronus Lynx hallucination detection is a grounding check that asks whether an answer is supported by the documents the assistant retrieved. A team should consider self-hosting it when its RAG assistant answers from internal policies, contracts, clinical or customer records, and the data may not leave infrastructure the organization controls. Self-hosting also makes sense when the team needs a fixed model version that its compliance and security reviewers can examine, rather than a judgment from an external API that changes without notice. If the assistant answers from public content only, or the team cannot staff GPU operations, a simpler check may be the better first step.
NeMo Guardrails is the Apache 2.0 toolkit that calls the judge model from an output rail, compares the verdict with the configured policy and decides whether the answer is returned, blocked or flagged. The check only works well when the retrieval rails pass the relevant chunks to it, so the team should confirm that the chunks handed to the judge are the same chunks the generator used, and that irrelevant or masked content is handled before the judge sees it. Before going further, confirm which Lynx size and license terms apply to your use with Patronus, and confirm the exact configuration keys in the NeMo Guardrails documentation for your installed release.
vLLM serves the Lynx model behind an OpenAI-compatible endpoint, so the guardrail calls it like any other model. The main costs are the accelerator capacity sized for the chosen model size, the infrastructure around it, the engineering to deploy and secure the endpoint, and the evaluation work to confirm that Lynx flags the failures your assistant actually produces. Ask any implementation partner to price these components separately in writing, and ask which of them recur each month and which are one-time setup.
How a RAG answer reaches the Lynx judge
The request starts with a user question that the retriever answers with chunks. Retrieval rails check those chunks before the application LLM drafts an answer from them. The output rail then sends the chunks and the answer to the Lynx judge on vLLM, which returns a verdict that decides whether the answer is allowed, blocked or warned. Check that the chunks passed to the rail are the same ones the model saw, and that the vLLM endpoint is reachable only from the guardrails server.
Path from user question through retrieval and Lynx verdict, with the vLLM trust boundary.
Choosing between Lynx 8B and Lynx 70B for your hardware
The 8B variant suits deployments where every answer passes through a grounding check and a fast verdict matters more than the last increment of judgment quality. It has a smaller weight footprint, so more of the accelerator memory is left for the KV cache that holds the prompt and retrieved evidence. Teams often start here when the retrieved context is moderate in length and the check runs on a single node.
- Typical use case: high-volume grounding checks on RAG answers, including internal assistants where many questions arrive each hour.
- Weight memory: the footprint depends on the precision you load, such as full, half or quantized weights, so read the parameter and precision details on the Lynx model card before choosing a GPU.
- Layout: one GPU is the simplest layout. Tensor parallelism across GPUs is only needed if the precision and context length you plan to use do not fit.
- Concurrency: more simultaneous checks consume more KV cache, which reduces the number of requests the GPU can hold in flight.
Confirm the weight memory, supported precisions and maximum context length against the exact checkpoint and quantization you plan to run, and check the vLLM memory settings you intend to use.
The 70B variant suits checks where judgment quality carries more weight than latency, such as high-risk answers, long or dense evidence, or a offline review pipeline that scores answers after they are generated. Its weights are much larger, so the hardware plan starts from memory requirements rather than from the request rate. Expect a larger GPU pool, more power and cooling, and a more involved operations plan than the 8B variant.
- Typical use case: high-stakes answers in regulated workflows, or batch evaluation of answer sets where per-check latency is less critical.
- Weight memory: the weights usually need several accelerators unless you use a supported quantization. Take the exact figure from the Lynx model card and the precision you choose.
- Layout: the model is typically split across GPUs in one node with tensor parallelism. Spanning nodes uses pipeline parallelism, and vLLM's docs say inter-node traffic is insecure by default, so those nodes must sit on an isolated network.
- Latency: each check does more computation, so measure end-to-end time on your own hardware under expected load.
Confirm the GPU count, interconnect requirements and supported quantizations for the 70B checkpoint with the Lynx model card and the vLLM parallelism documentation before you order hardware.
Four factors determine the hardware for either size: the weights, the KV cache for the context you send, the number of concurrent checks and the latency target. Weights are a fixed cost once the precision is chosen. The other three scale with usage, so they decide whether a single GPU stays enough as traffic grows. Because the grounding check receives the retrieved chunks and the answer, the prompt is often longer than the answer alone.
- Model weights: a fixed memory cost set by the parameter count and precision.
- KV cache for retrieved context: the cache grows with prompt length, so more or larger chunks per check leave less room for concurrent requests.
- Concurrency: the number of checks running at once sets how much KV cache must be reserved at peak.
- Latency target: a tighter target favors more headroom per GPU or more replicas, which increases capacity cost.
Ask your team to measure typical and peak prompt lengths from your retriever before sizing, and confirm how vLLM reserves memory for the cache with the current release you deploy.
Tensor parallelism splits each layer of the model across GPUs in the same node, so the GPUs must communicate quickly. vLLM uses tensor parallelism within a node and pipeline parallelism across nodes, and its docs describe Ray or its own multiprocessing backend for multi-node runs. For a grounding check, the simplest design is one server per model size, with extra replicas added for throughput instead of spreading one model across more machines than it needs.
- Within a node: choose the tensor parallel size to match the GPUs that share a fast interconnect in that node.
- Across nodes: pipeline parallelism adds communication between machines, so prefer a single node when the model fits.
- Throughput: separate server instances behind a load balancer are a common way to add capacity, which you should confirm with your serving design.
- Exposure: vLLM's
--api-keyoption does not cover every endpoint, so place a reverse proxy in front of the server that allowlists only the endpoints the application needs.
Confirm the parallel settings, supported GPU types and multi-node requirements for your chosen Lynx checkpoint in the vLLM parallelism and security documentation before you commit to a layout.
Configuration options and when each one fits
This table compares the decisions a team makes when self-hosting Lynx behind NeMo Guardrails, from model size and precision to where the check sits and how it fails. Read each row for the condition under which the option fits and what it adds in latency, hardware or operations. Confirm the exact external judge configuration keys in the 0.25.0 documentation before you write any config.yml.
| Decision | When it fits | Trade-off and cost |
|---|---|---|
| Lynx 8B or 70B | 8B fits short answers and a single modest GPU budget where a faster check matters more than the last points of judge accuracy. 70B fits high-stakes answers such as policy, clinical or financial content where missed hallucinations are costly. | The 70B model needs multi-GPU capacity and higher memory, so hardware is the main cost. Ask the vendor or your own benchmark for accuracy on your documents before choosing. |
| Serving precision or quantization | Use the full-precision weights when judge accuracy is the priority and you have the memory. Use a quantized build when the GPU budget is tight and you have measured the accuracy effect on your own labeled answers. | Lower precision reduces memory and can raise throughput, but it can change verdicts near the threshold. Re-run your evaluation set after every change in precision. |
| Single node versus multi-GPU tensor parallelism | A single node with enough accelerators is the simpler path for one judge route with modest traffic. Split the model across GPUs within a node when one device cannot hold the weights. | Tensor parallelism adds inter-GPU communication and tighter coupling of the serving process. Multi-node pipeline parallelism adds network and security work, since vLLM documents that inter-node traffic is insecure by default. |
| Shared OpenAI-compatible endpoint or dedicated judge route | A shared endpoint fits when the same vLLM server already serves the application model and you accept shared capacity. A dedicated judge route fits when you want separate scaling, quotas, logs and access rules for the checker. | A dedicated route means another deployment to size, patch and monitor. Shared serving risks judge calls queuing behind user traffic, so measure latency under load before combining them. |
| Check placement: output rail on the answer | Place Lynx on the generated answer with the retrieved chunks as context when you need one verdict on the final response. This is the simplest placement to reason about for a RAG assistant. | Each answer triggers a full judge call, adding latency on the response path. Streaming and blocking behavior need design work, because a verdict can arrive after tokens have been shown. |
| Check placement: retrieval checks on chunks | Use retrieval-side checks when you want to filter irrelevant or unsafe chunks before generation, separately from the answer check. This suits corpora where bad chunks cause most errors. | Retrieval checks run on every chunk, which multiplies judge calls per query. Confirm which rails your NeMo Guardrails version supports on retrieval chunks before you plan around it. |
| Blocking versus warning behavior | Block when a wrong answer would cause harm and the user cannot verify it. Warn, or attach a caveat, when the assistant is advisory and users can check the cited source. | Blocking raises refusal rates and support load when the judge is over-cautious. Warning keeps answers flowing but depends on users reading the caveat. Tune the threshold on labeled cases first. |
| External judge configuration keys | Use the keys documented for external models in the 0.25.0 NeMo Guardrails documentation, once you have confirmed their exact names and values in your version. | A mismatch in key names fails silently in some setups, so verify the loaded configuration with a test request that should be flagged. |
Where Lynx sits beside self-check and AlignScore
The three grounding approaches differ mainly in who does the judging. Self-check fact-checking uses the application LLM itself as the judge: after the answer is generated, the same model family is asked whether the answer is supported by the retrieved chunks. AlignScore is a separate factual consistency model that scores how well a claim agrees with its evidence, and it runs as its own service. Lynx is also a separate model, a hallucination judge served as its own endpoint, which you would host on vLLM alongside your generator. Each choice moves a different cost onto your team: self-check spends your generator's capacity, while AlignScore and Lynx add a second service to deploy, secure and monitor.
The extra work per answer also differs. Self-check adds at least one more call to the application model for every checked response, so its latency and token spend scale with traffic and with how many chunks are included. AlignScore and Lynx each add one call to a dedicated service per checked answer, which keeps generator load unchanged but means you must size that service for peak concurrency. Infrastructure follows the same pattern: self-check needs no new hardware if your generator already has headroom, whereas Lynx requires GPU capacity sized for the model you pick, and AlignScore has its own compute requirements you should confirm against the NeMo Guardrails documentation for your release.
Because no measured latency or accuracy figures were supplied for this comparison, do not choose on published rankings. Build a labeled evaluation set from your own documents: sample real questions, record the answer and the retrieved chunks, and have reviewers mark each claim as supported or unsupported. Run all three methods over the same set, record false blocks, missed hallucinations, p95 latency and GPU or token cost, and compare them at the thresholds you intend to deploy. Confirm the licensing and data handling terms of each judge before the test, since a method that sends chunks to an outside API changes your data flow. Only then decide which judge, or combination, belongs in your pipeline.
Setup sequence from GPU host to a tested guardrail
This sequence takes a GPU host from a driver check to a Lynx judge served by vLLM, a NeMo Guardrails configuration that calls it, and a test set showing that known hallucinations are blocked. Each step ends with a check you can record before moving on. Confirm hardware and checkpoint choices against the model card and your own environment before you start.
Confirm the NeMo Guardrails delivery path
NVIDIA has sunset the NeMo Guardrails microservice, and its NGC container page says there will be no new releases and the artifact is no longer supported. Plan the deployment around the open-source library and server installed from PyPI, and confirm that path with your NVIDIA account team before you build. Record the decision, the package version you will pin (the current release is 0.25.0), and the Python version you will use, which must be 3.11, 3.12 or 3.13. Done when the owner has written confirmation and the pinned versions are in your change record.
Provision the GPU host and confirm drivers
Provision a GPU host for the Lynx checkpoint you chose, 8B or 70B, and use the model card's memory guidance as your starting point, since this page does not set GPU counts. Install the driver and CUDA stack that match your accelerator. vLLM runs on NVIDIA CUDA, AMD ROCm and Intel XPU GPUs, so check the vLLM installation documentation for the versions it supports. Run
nvidia-smito confirm every expected GPU is visible and healthy. Done when the device list shows all planned GPUs and a small test workload runs on each one without errors.Install vLLM and serve the Lynx checkpoint
Install vLLM in an isolated Python environment, then start the chosen Lynx checkpoint with
vllm serve, setting tensor parallelism to match the GPUs on the node. Bind the server to a private network interface and set an API key, knowing that the key does not cover every endpoint. If the model spans several nodes, place them on an isolated network, because vLLM node-to-node communication is insecure by default. Done when the server log reports the model loaded and shows no GPU memory errors.Confirm the OpenAI-compatible endpoints respond
Send a short grounded prompt to
/v1/chat/completionsand read the response back, since the judge will be called through this OpenAI-style interface. Then scrape/metricsfrom your monitoring host and confirm that request counts, token throughput and latency histograms appear. The--api-keyoption does not protect/metricsor/health, so put a reverse proxy in front that allowlists only the endpoints the guardrail needs. Done when the chat completion returns a valid response and the Prometheus scrape succeeds.Install NeMo Guardrails and load the configuration
On the application host, create a Python 3.11, 3.12 or 3.13 environment and install the pinned
nemoguardrailspackage from PyPI. Create the configuration folder withconfig.yml, Colang files and any custom actions, and add a model entry that points at the vLLM base URL. Use the Guardrails class, since LLMRails is deprecated as of 0.25.0. Confirm the output rail placement and the prompt format the Lynx checkpoint expects against its model card. Done when the guardrails server or Python API starts and loads the configuration without errors.Run grounded and ungrounded test answers
Build a small test set with answers that the retrieved chunks support, answers that add a fact the chunks do not contain, and known hallucinations drawn from your own domain. Run each case through the full pipeline and log the verdict, latency and judge output for every answer. Confirm that the known hallucinations are blocked or flagged and that grounded answers pass. Done when the results are saved with the configuration version, and the test set is kept for regression runs after every change.
Securing the vLLM endpoint that serves the judge
The Lynx judge runs on a vLLM server that receives retrieved customer and internal content with every check. The controls below cover who can call the endpoint, which paths stay exposed, how nodes talk to each other, what gets logged, and where the guardrail server sits relative to the application.
API access control for the judge
Every guardrail call sends the question, the retrieved chunks and the answer to the vLLM server, so only the NeMo Guardrails server should be able to reach it. The --api-key option is one layer, and it should be paired with network-level restrictions. Confirm which clients hold keys, how keys are issued and rotated, and that no application or developer laptop can call the judge directly.
Limits of the API key
According to the vLLM security docs, --api-key protects the /v1, /v2, /inference and /cohere routes, but not /invocations, /pause, /resume, /abort_requests, /metrics or /health. The docs warn against relying on the key alone. Check each unprotected path from outside the guardrail network and confirm that a pause or abort request cannot be sent by an unauthorized caller.
Reverse proxy allowlist
The vLLM docs recommend a reverse proxy that exposes only the endpoints meant for users. For the judge, that means the chat or completions route the guardrail server calls and nothing else. Deny /pause, /resume, /abort_requests and /invocations at the proxy, and decide whether /metrics and /health are reachable only from your monitoring network. Test the allowlist with requests that should fail.
Isolating nodes in multi-node runs
The vLLM security docs state that communication between nodes in a multi-node deployment is insecure by default, with no authorization or encryption. A judge spread across nodes for the 70B model therefore needs its nodes on an isolated network segment. Confirm with your platform team which network carries tensor and pipeline traffic and that no other tenant shares it.
Logging and retention of retrieved content
Judge requests carry customer or internal documents, and access logs or prompt captures can copy them into places with weaker controls. Decide what the vLLM server, the proxy and the guardrail server log, whether request bodies are stored, and how long they are kept. Confirm the retention period with your compliance team, then set log levels and log storage to match.
Separating the guardrail server from the application
Keep the NeMo Guardrails server and the judge in a network zone that the application can reach only through the guardrail API. The application should never hold credentials for vLLM or reach its port directly. Review firewall rules, service accounts and container network policies together, and check that a compromised application cannot send arbitrary prompts to the judge.
Questions buyers ask before self-hosting Lynx
What does a self-hosted Lynx deployment cost, and what drives the cost?
The cost has three parts: accelerator capacity to run the judge model, the surrounding infrastructure, and the people who build and operate it. vLLM is open source under Apache-2.0 with no paid edition, so the software itself adds no license fee, but the GPUs in your cloud account or data center are a real recurring expense. One-time work covers sizing, serving setup, wiring the judge into your NeMo Guardrails configuration and building an evaluation set. Recurring costs cover compute hours, storage, monitoring, upgrades and retesting. Ask any quote for the GPU type and count, the hosting location, the evaluation work included and what happens to retesting after an upgrade. No figure is given here; any number should come from a written scope.
How long does setup take, and what sets the duration?
Duration depends on how quickly capacity is available and how much of the surrounding work already exists, so no fixed timeline applies to every environment. The main drivers are GPU procurement or allocation, approvals for network placement and access, whether a reverse proxy and monitoring already exist, how many RAG pipelines will call the judge, and how long it takes to build a labeled evaluation set. Setup also slows down if the team must first settle the vLLM and NeMo Guardrails versions they will pin. Ask for milestones with dependencies named, so you can see which items sit on the critical path and which the client controls.
What must our team provide before a Lynx deployment starts?
Four inputs matter most. First, GPU capacity in an environment you control, with enough memory for the model size you choose. Second, a named platform owner who can make decisions about the serving stack, access and upgrades. Third, evaluation data drawn from your own RAG questions, source documents and answers, labeled by people who know the subject matter. Fourth, access to the retrieval pipeline and the NeMo Guardrails configuration, plus the security inputs for network placement and API key handling. Missing evaluation data is the input teams most often underestimate, because without it you cannot tell whether the judge is working for your content.
Can our internal team run Lynx on vLLM without an outside partner?
Yes, if your team already runs GPU workloads and has the skills to do so. The work spans GPU driver and CUDA setup, model serving, an API gateway, metrics, evaluation design and NeMo Guardrails configuration, so look for experience in each area rather than in one. Security detail matters too. The vLLM security documentation says the --api-key option does not protect every endpoint, and it recommends a reverse proxy that allowlists only the endpoints meant for users. A common path is to pilot on a single RAG assistant with internal staff, then decide which parts to keep in-house. Ask any partner to state which parts of the work they would hand back to you.
How should we choose between the Lynx 8B and 70B models?
The choice is a trade-off between judgment quality and the cost of each check. The 70B model usually needs more accelerator memory and more time per check, while the 8B model is smaller and cheaper to host. Decide with your own data: build a labeled set of grounded and hallucinated answers from your documents, measure detection quality for each size, measure latency at the concurrency you expect, and compare the GPU footprint each needs. Check the memory requirements in the model's published documentation before you size hardware, because this page does not state them. Keep in mind that a smaller model may suit a low-risk internal assistant while a regulated customer-facing system may justify the larger one.
Does Lynx replace self-check fact-checking in NeMo Guardrails?
Not automatically. Self-check fact-checking uses the application's own LLM with a prompt to judge whether an answer is supported by retrieved evidence. Lynx is a dedicated judge model that you host separately, so it adds a second model to run, monitor and upgrade. Whether it replaces self-check depends on measured results on your data, on latency under your load and on who must operate the extra service. Many teams compare both on the same evaluation set before choosing. The comparison of grounding methods covers latency, hosting, accuracy and cost in more detail, and the answer for your assistant should come from that test rather than from a general claim.
How do vLLM and NeMo Guardrails upgrades affect the Lynx judge?
Upgrades can change serving behavior, response formats and the scores your thresholds depend on, so each upgrade needs a retest. vLLM ships new minor releases about every two weeks, for example v0.28.0 on August 26, 2026 through v0.31.0 on October 5, 2026, so pin versions and upgrade on a schedule. NeMo Guardrails 0.25.0 deprecates the LLMRails class in favor of Guardrails, with removal planned no earlier than 0.27.0, so the configuration code may need changes. After each change, rerun your evaluation set, check the judge's scores against the thresholds you set and review the NeMo Guardrails documentation for breaking changes. Ask partners whether retesting after upgrades is in scope.
What does the ongoing run cost include after go-live?
The recurring cost includes accelerator hours, storage for models and logs, monitoring, and the staff time to keep the stack running. Beyond that, expect security patching, version upgrades, retesting against the evaluation set, and refreshing that set as your documents and questions change. Someone also has to respond when the judge fails or slows down, which means on-call coverage and runbooks. vLLM exposes Prometheus-format metrics at /metrics, which helps with alerting, but someone must own the dashboards. Ask for a written list of what a support or retainer covers, how many upgrades it includes and how incidents are escalated.
Limits to confirm in your environment before buying hardware
Patronus Lynx sizing depends on facts that the model card, the NeMo Guardrails configuration and your own documents determine, not on the GPU alone. The cards below list what to confirm, and with whom, before you commit budget to accelerators.
License and commercial use terms
Confirm the license attached to the Lynx 8B and 70B checkpoints you plan to download and whether it permits your intended commercial use, internal deployment and any redistribution of derived containers. The license governs the model weights, which are separate from the Apache-2.0 license of NeMo Guardrails and vLLM. Ask Patronus for written confirmation of the terms that apply to your use, and have your legal team review them before procurement.
Context length against your chunk sizes
Find the maximum context length the checkpoint supports, then compare it with the prompt size your pipeline produces. A judge prompt holds the question, the answer and every retrieved chunk, so the chunk count and chunk length in your knowledge base or custom retriever set the real input size. Check the limit in the Patronus model documentation and test your largest realistic prompt on the vLLM server you plan to run.
External judge model support in NeMo Guardrails
Verify that your NeMo Guardrails 0.25.0 configuration can register the Lynx judge as an external model that points at your vLLM endpoint, and that the hallucination or fact-checking rail calls it through the model settings you expect. Confirm the exact configuration keys and any prompt format requirements in the NeMo Guardrails documentation, then test with a small configuration in a staging environment.
NeMo Guardrails docsHandling multiple retrieved chunks
Establish how the judge expects multiple chunks to be presented, whether as one combined context block or as separate passages, and how it scores an answer that draws on several of them. Your retrieval rail output and any chunk filtering will shape this input. Ask Patronus for the recommended format, and record how your configuration joins chunks so reviewers can reproduce each verdict.
Accuracy on your own documents
Public benchmark results do not show how the judge performs on your policies, product manuals or clinical or financial text. Build a labeled set of grounded and ungrounded answers from your own corpus, run it through the full guardrail path and measure false blocks and missed hallucinations against thresholds your business owners accept. Use an internal evaluation to decide between the 8B and 70B models, and between Lynx, AlignScore and self-check.
NeMo Helix path for gateway deployments
If you plan to run guardrails as middleware in front of model endpoints, confirm with NVIDIA how NeMo Helix, the open control plane that now succeeds the retired NeMo Microservices, applies guardrail configurations and whether it can host a Lynx judge endpoint. Ask your NVIDIA account team about the support path, since the NeMo Guardrails microservice is sunset. Do not size the gateway tier until this path is confirmed.
NeMo Helix guardrail docsHow DeployOpen works on this
DeployOpen plans and delivers a self-hosted Patronus Lynx check inside your own infrastructure, wired into NeMo Guardrails for your RAG assistant. The work starts with a written scope that fixes the model size, serving stack, GPU capacity and evaluation criteria before any build begins.
How we scope
- Written scope covering which Lynx size, serving host and GPU capacity your environment can run
- Mapping of which RAG answers pass through the Lynx rail and which use cheaper checks
- Agreed acceptance criteria for latency, false positives and the threshold used to block answers
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts
How we build
- Deploy vLLM serving the chosen Lynx model behind a reverse proxy that exposes only needed endpoints
- Configure the NeMo Guardrails output rail to call the Lynx endpoint with retrieved chunks as evidence
- Test the rail against your own grounded and ungrounded answer samples before going live
- Harden access to the model endpoint, including API keys, network isolation and metrics exposure
How we hand over
- Documented configuration files, Colang flows, deployment manifests and the vLLM serving settings used
- Evaluation results from your test set, with the threshold chosen and the reasoning behind it
- Runbook covering GPU sizing assumptions, scaling steps, upgrade checks and rollback
- Knowledge transfer sessions for the engineers who will operate the check after handover
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer
- Retesting after NeMo Guardrails or vLLM upgrades, with release notes reviewed before rollout
- Monitoring guidance for latency, throughput and KV cache use in production
- Periodic review of the threshold and model choice as your document corpus changes

