The security team blocks a plan to send customer contracts to a cloud LLM, so the CEO proposes buying GPU servers to run an open-source model in-house. The IT lead has to recommend one option before the budget is approved.
An on-premise LLM is a large language model an organization runs on infrastructure it controls, such as its own data center or a private cloud tenancy it manages, so prompts, documents and outputs stay inside; for sensitive data, choosing between an on-premise LLM and a cloud API should start with which values may leave the company, not GPU size.
Key takeaways
- Start the decision from which values may leave the company, not from GPU size.
- Some data cannot leave even after masking; for that data, an on-premise LLM, including a private deployment the organization controls, is the remaining route.
- How many people one GPU server can handle depends on model size, serving software, memory management and request length, not only on the GPU.
- Automated detection can miss values, and deleting or inconsistently replacing values can remove context the model needs.
- One company can route different tasks to different deployments by data group.
How is an on-premise LLM different from a cloud LLM API?
An on-premise LLM receives prompts, reads documents and generates outputs inside infrastructure the organization manages. With a cloud LLM API, the organization’s application sends prompts and documents to an external provider’s service and receives the output, so the team has to account for data moving in both directions.
An on-premise deployment makes the IT team responsible for running the model, managing access, applying updates and evaluating model behavior. With a cloud API, the provider operates the service and controls model updates, while the customer’s team still evaluates the model, controls who can call it and checks whether the service meets company requirements.
Cloud API retention and training terms depend on the provider, the contract and the service configuration. OpenAI’s enterprise privacy page (updated January 8, 2026) is one provider’s published policy: it states “By default, we do not use your business data for training our models.” and “OpenAI may securely retain API inputs and outputs for up to 30 days to provide the services and to identify abuse.” The page also says customers can request zero data retention for eligible endpoints if they have a qualifying use case.
A no-training policy does not mean every prompt is deleted immediately. IT, legal and security reviewers should read their own provider’s terms for the exact plan, endpoint, retention settings and exceptions rather than assume another provider works the same way. Some providers also offer a separate zero data retention arrangement, with its own eligibility rules and exceptions.
Which data should decide between an on-premise LLM and a cloud API?
Security and data teams can sort the information each AI task reads into three groups: data that cannot leave the company, data that can leave once specific values are protected, and data with no relevant restriction. Each group points to a different route.
Some contracts, regulations and internal policies forbid external processing even after identifying values are masked. For that data, an on-premise LLM, including a private deployment the organization controls, is the remaining route, and the team still has to confirm that the internal environment meets the same requirement.
Other information can go to an external API once the organization protects specific values, such as names, account numbers or contract terms. The protection has to keep the context the model needs, so the team should test whether protected documents still produce accurate answers before approving the route. Before CUBIG proposes LLM Capsule, its context-preserving data layer for AI, CUBIG checks with the customer whether numbers, locations and relationships in the data are confidential on their own, not only names and IDs.
Public documents and material already cleared for external processing can often use a cloud API when the provider’s terms meet company requirements. The IT team then spends its effort on access control, application design and output review instead of running model servers.
| Data group | Route | What to check |
|---|---|---|
| Cannot leave the company, even after masking, under a contract, regulation or internal policy | On-premise LLM, including a private deployment the organization controls | Whether the internal environment meets the same requirement, and who will operate and patch it |
| Can leave once specific values are protected, such as names, account numbers and contract terms | Cloud API, with those values protected before sending | Missed values, answer errors and whether answers map back to the right record |
| No relevant restriction, such as public documents or material already cleared for external processing | Cloud API under the provider’s terms | Access control, retention terms for the exact plan and endpoint, and output review |
A legal document assistant and a summarizer for public information may land in different groups even inside one company. Teams should classify the data each task reads before choosing where the model runs.

What does running an on-premise LLM take beyond buying GPUs?
GPU servers provide computing capacity, not a working LLM service. The IT team still has to select a model, configure serving software, handle concurrent requests and maintain the systems, and the data team needs a way to check whether the model answers the actual business questions.
Model selection should start from the task. A model that summarizes documents may behave differently from one that extracts contract clauses, so data and AI teams should evaluate candidates on representative company documents and expected questions, counting wrong answers, missing information and unsupported claims.
Concurrent use shapes server design. The vLLM PagedAttention paper (Kwon et al., SOSP 2023) states “High throughput serving of large language models (LLMs) requires batching sufficiently many requests at a time.” The paper reports that the KV cache memory for each request “grows and shrinks dynamically”, and that wasted memory limits how many requests can run together.
Server capacity therefore depends on serving software and memory management, not only on the GPU model. Long contracts and long answers raise the memory each request needs, so a server that handles short questions well may slow down when many employees submit long documents at once.
Operations continue after launch. IT staff update model files, patch operating systems and serving software, monitor resource use and investigate failures, while security staff review access permissions and logs. The organization should name owners for these jobs before approving a hardware purchase.
Teams can size hardware from a test, not an estimate: run an open model on representative documents at the expected number of concurrent requests, and measure answer quality, response time and memory use. A single-user demo does not show that a deployment can serve the whole organization.
What happens when you mask data before sending it to a cloud API?
Masking can reduce how much sensitive information reaches a cloud LLM. The OWASP Top 10 for LLM Applications 2025 entry LLM02:2025 Sensitive Information Disclosure notes that “Techniques like pattern matching can detect and redact confidential content before processing.” Teams still need to test that coverage on the documents they process.
The documentation of Presidio, an open-source project for detecting and anonymizing personal data in text and images, warns that “there is no guarantee that Presidio will find all sensitive information” and says additional systems and protections should be employed. Automated detection is one layer of review, not proof that a document is clean.
Masking commonly fails in two ways. Detection can miss a value: a regular expression may catch a standard account number but miss an unusual format, a name written an unexpected way, or a value inside a table, footnote or scanned page. Protection can also remove context: deleting values or replacing them inconsistently can leave the model unable to tell which customer signed a clause or whether two records refer to the same person.
Some masking tools replace the same value consistently across records and keep those relationships, so teams should evaluate the method they plan to use rather than assume every tool breaks context.
NIST SP 800-188 (September 2023) defines de-identification as “any process of removing the association between a set of identifying data and the data subject.” Removing that association does not hide everything else: the remaining information can still reveal confidential business details, such as prices or contract terms, so reviewers should check what a protected document still exposes.
Human review matters when an AI answer could affect a contract, a customer decision or another high-risk process. A reviewer compares the output with the source record and checks whether the model confused people, clauses or account details before the answer goes out.
CUBIG’s comparison of Snowflake masking and LLM Capsule recommends counting four results for each setup on one AI task: protection misses, answer errors, incorrect restoration and the manual checking needed before anyone can use the result. A team can use the same counts to test a cloud API route with protected values, and compare answer errors and manual checking with an on-premise model on the same task.

How should a team decide before it buys hardware?
The IT lead can bring data rules, operating requirements and test results into one decision with six checks:
- List the AI tasks and the documents each one reads, including data pulled from databases, attachments and connected systems.
- Mark which values cannot leave the company even after masking, which can leave once protected, and which have no restriction.
- Check the provider’s retention and training terms for the exact plan and API endpoint, with the security and legal teams.
- Estimate concurrent users and test an open model on the real task with realistic document lengths before sizing hardware.
- Test the protection method on real samples and count missed values, answer errors and answers that map back to the wrong person or record.
- Decide who reviews outputs before they reach customers, and who changes the route when data rules change.
An on-premise LLM makes sense when data rules require internal processing and the company can operate the model. A cloud API can make more sense when the required information can leave under approved conditions and the team prefers the provider to run the model servers. A company can also use both, routed by data group.
Related entries: on-prem LLM, data masking, pseudonymization and data redaction. Related article: AI vendor risk assessment.
Where does CUBIG fit?
LLM Capsule is CUBIG’s context-preserving data layer for AI. LLM Capsule replaces sensitive or controlled values with context-preserving substitutes before data is sent to an approved AI path, then restores the original values in the response so the result can be used in the actual work. LLM Capsule can be adopted on its own.
CUBIG Shorts
Where LLM Capsule Sits in Your Workflow
A short clip from CUBIG on The Ravit Show.
The customer decides which values to protect, which relationships to keep, which model paths to allow and where results are restored. CUBIG confirms supported models, deployment location and restoration scope for each customer environment. LLM Capsule does not decide which data may leave the company; the security, legal and data owners make that call, and data that cannot leave at all still needs an internal route.
Before you buy GPU servers or approve a cloud API, sort one AI task’s data into the three groups above and count protection misses and answer errors on real samples. See how LLM Capsule fits a task that needs the context of sensitive values.
