LIVE · Thursday 3 December

Vendor to Fine-Tune a Custom Classifier On-Prem or in Your VPC: SageMaker, Azure ML, Cohere or Self-Hosted

The right choice depends on how closed your boundary must be. Use SageMaker or Azure ML with outbound traffic blocked for a VPC, Cohere for supported on-prem and air-gapped sites, and your own registry for a do-it-yourself air gap.

By Nick7 min read

To fine-tune and deploy a custom classifier in your VPC, use Amazon SageMaker or Azure Machine Learning with outbound traffic blocked. Train a small open encoder such as ModernBERT or DeBERTa-v3 there, and the fine-tuned weights stay in your own storage. For on-prem or air-gapped sites with vendor support, Cohere documents private deployments of both kinds. NVIDIA's NeMo microservices, sunset on October 1, 2026, and Databricks' retired Foundation Model Fine-tuning are no longer options for a new project.

Five questions about the boundary and the weights separate the options

A buyer should put the same five questions to every option:

  1. Ask whether training and inference both run inside your boundary, because some services keep only serving private.
  2. Ask whether you can export the fine-tuned weights in a standard format that you can serve without the vendor.
  3. Ask whether the product works fully air-gapped, including licence check-ins and telemetry.
  4. Ask which base models and which GPUs or CPUs are supported for a classifier.
  5. Ask what serving costs at your request volume and your latency target.

The model choice matters less than the network design, because classifiers are small. ModernBERT-base has about 149 million parameters, reads up to 8,192 tokens and is licensed under Apache 2.0. DeBERTa-v3-base from Microsoft has 86 million backbone parameters and is licensed under MIT. ModernBERT's model card says to fine-tune it for classification "following standard BERT fine-tuning recipes."

The table compares the four options that are still available and that document where training and serving run.

Option Where training and serving run How outbound traffic is blocked Fits best when
Amazon SageMaker AI Your AWS account EnableNetworkIsolation plus PrivateLink endpoints You are on AWS and a VPC is enough
Azure Machine Learning Your Azure workspace Managed network set to allow only approved outbound You are on Azure and a VPC is enough
Cohere private deployment Your VPC or your own hardware Full network isolation, including air-gapped on-prem You need vendor support on-prem
Self-hosted open encoder Your own servers Private registry with no egress You run your own GPUs or CPUs

Teams on AWS that need a VPC should use SageMaker with network isolation

SageMaker containers can reach the internet by default. Setting EnableNetworkIsolation to True on the training job and the model blocks that access. AWS writes that the containers then "can't make any outbound network calls to any service, including Amazon S3," and that no AWS credentials are given to them.

SageMaker still copies training data in and model artifacts out, apart from the container. Adding a VPC configuration sends those copies through your own subnet. Interface VPC endpoints, powered by PrivateLink, let your applications call the SageMaker API and runtime without an internet gateway or NAT device. AWS lists one exception, which is that a presigned notebook URL uses the public internet. An endpoint policy can also limit callers to a single action, such as invoking one named endpoint.

The fine-tuned model is an artifact in your S3 bucket, so you can serve it elsewhere later. SageMaker's pricing page lists no per-instance inference rates, which means that the cost has to come from the AWS Pricing Calculator.

Teams on Azure that need a VPC should use a managed virtual network

Azure Machine Learning's managed virtual network covers compute clusters, serverless compute and managed online endpoints, according to Microsoft's page dated October 13, 2026. The "allow only approved outbound" mode is designed to limit data exfiltration. In that mode, Microsoft says that every machine learning artifact must be prepared inside the private environment.

Microsoft warns that a workspace in this mode cannot be switched back to allow internet outbound. Before converting an existing workspace, Microsoft also requires that its compute instances, clusters and online endpoints be deleted. Plan the network before the first training run.

Teams that need on-prem with vendor support should take Cohere's terms in writing

Cohere offers private deployments on your own hardware and in a VPC on any cloud that meets its hardware requirements. Its deployment overview says that on-prem deployments include air-gapped environments, "where systems are physically isolated from unsecured networks." Cohere's private deployments page says that "prompts, outputs, and fine-tuned models stay entirely within your environment." It also says that setup "typically takes less than a day" after Cohere sends the components.

Cohere's private deployment overview leaves out four answers that a classifier buyer needs. It lists no hardware requirements, and it does not mention telemetry or licence check-ins. It does not say who owns the fine-tuned weights or whether they can be exported. It also does not describe fine-tuning a classifier specifically. Ask for each of these in the contract.

Teams that run their own air-gapped hardware can follow NVIDIA's checklist without NVIDIA's stack

NVIDIA's NeMo Customizer and NIM once offered a complete self-hosted stack. NVIDIA's NGC catalog page now says that NeMo microservices "has been sunset as of October 1, 2026," with no new releases. The method in NVIDIA's air-gapped guide for its separate NeMo Retriever 26.3.0 release still applies to an exported encoder. The install takes five steps:

  1. Pull each image on a connected staging machine, push it into a private registry inside the enclave and record its digest.
  2. Copy the fine-tuned weights into private storage, so that no service needs outbound access when it starts.
  3. Remove every reference to a public API host from the configuration.
  4. Point the GPU drivers and operators at the offline registry and the cached weights.
  5. Inside the enclave, run image pull tests, render the deployment once as a test and send one test request.

Each new model version crosses the gap by digest. It should pass an offline evaluation on a held-out labelled set before it replaces the version in service.

Two other options fit only narrow situations

Oracle Cloud Infrastructure Language suits teams that already use Oracle Cloud. It requires at least 10 training documents per class, recommends 100, and recommends 20 per class each for validation and testing. Its custom model endpoints are private and are placed in a compartment that you choose. Oracle's page does not say where training runs.

Parsec, a small language model lab, suits teams whose classifier picks the next action for an assistant from a fixed list. Its TOD model ranks options that the caller supplies and is published as Apache-2.0 LoRA adapters on Google's Gemma 4 12B base, which stays under Gemma 4 terms. Parsec's open-source openjev-sdk is built for fine-tuning such models. Parsec's TOD page lists a hosted price of $0.30 per 1,000 decisions. Parsec says that a custom-tuned model "can reach production within two weeks," which is its own claim. Its pages do not describe running its tuning service in a customer VPC or on-prem, and they give no ownership terms or tuning price.

Databricks no longer fits this use. Its documentation, last updated November 2, 2026, says that Foundation Model Fine-tuning "has reached end of life (EoL) and is no longer supported." Predibase's home page now redirects to a Rubrik product page.

Serving ten million classifications a month costs between about $50 and $1,150 on small private instances

Hugging Face publishes hourly rates for its Inference Endpoints on AWS, which can be made private with PrivateLink. Those rates are a useful reference for small instances. The worked example rests on four assumptions:

  • The team classifies 10 million documents a month, which is about four requests per second on average.
  • The month has 30 days, or 720 hours.
  • The model is a fine-tuned ModernBERT or DeBERTa-v3 encoder.
  • Each instance runs for the whole month.

On those assumptions, one two-vCPU Intel Sapphire Rapids instance at $0.067 an hour costs $48.24 a month, or about half a cent per 1,000 classifications. One NVIDIA L4 GPU at $0.80 an hour costs $576 a month. Two L4 replicas for redundancy cost $1,152 a month, or about 11.5 cents per 1,000. One NVIDIA A10G at $1.00 an hour costs $720 a month.

Whether one CPU instance or one L4 carries this load at an acceptable latency has not been measured. None of the vendors in this guide publishes throughput or median latency per classification for a fine-tuned encoder. A team should load-test its own model on the cheapest instance first and add capacity only when the measured latency is too high.

Sources

More in Products

All Products →