One base model, many experts
A second expert went live in about one second, and the base model never restarted. That was on ml.g6.2xlarge with Qwen/Qwen3-8B-FP8. On the small model, a stand-in adapter is a 4.27 MB file next to a 1.52 GB base.
This post is how I built that loop on Amazon SageMaker AI with the vLLM container: what I tried, what broke, and the numbers I measured. There is a 4-minute video of the same story at the end. The test models are public stand-ins, Qwen/Qwen3-0.6B by default and Qwen/Qwen3-8B-FP8 as the larger one. Every number says where it was measured. Results vary with model, Region, load and the day.
The pain
You pick an open model on purpose: your weights, your data, and nobody changes the model under you. Then two teams each want their own expert. One wants support replies. The other wants it to read contracts.
The old way is a full copy of the model per expert, and per version. Gigabytes and a GPU each. So versioning hurts. Which copy is live? What trained it? How do you roll back without a new deploy? And an expert is never finished, because users ask new things every week.
The loop
What I wanted is a loop. Serve the base and its experts. Collect good examples from real questions. Train a new expert. Put it live next to the old one, so the old version stays one call away. In this build the examples were a sample file, not live traffic; collecting them is the part you add.
LoRA makes that cheap. Each expert is a LoRA adapter: a small set of extra weights on one shared base. The default rank-8 stand-in adapter packed to 4,265,925 bytes against a 1,519,193,708-byte Qwen/Qwen3-0.6B base, about 1 to 356. The rank-16 adapter my own training job wrote was 40,422,168 bytes. Either way, a new version is a small file, not a new copy of the model.
vLLM serves many of those adapters on one GPU. You can run it yourself on EC2, EKS or ECS, with full control and all the work, from GPU nodes to scaling. Or SageMaker AI: you pick the engine, the GPU and the scaling policy, and AWS runs the hosts.
Two of the ready-made serving containers on SageMaker AI fit this: one built on vLLM, and Large Model Inference (LMI). In my own earlier runs I ran the same small model on the same single L4 GPU with both. vLLM was faster in that test, so I used the vLLM Deep Learning Container.
On SageMaker AI
Serving runs along the top, training along the bottom, and they meet in one S3 bucket. Four steps get the top half working.
Step 1: your weights go in your own S3 bucket. I upload the files uncompressed under a prefix, and SageMaker mounts it read-only at /opt/ml/model when the container starts (uncompressed model artifacts). It was not faster than pulling from a model hub. The reason is control: I decide which files are served and when they change. The prefix must hold model files and nothing else. My first naive upload of the 8B model put 31 objects there instead of 10, because the download tool writes a hidden .cache tree.
Step 2: a fallback list of GPU sizes, because GPUs sell out. My first endpoint was pinned to one size. It sat in Creating for 31.0 minutes, then failed with InsufficientInstanceCapacity. I had quota; I did not have a free GPU. The same deploy as an instance pool, an ordered list of two sizes, reached InService in 6.6 minutes on ml.g6.4xlarge, after ml.g6.xlarge had no capacity (results vary).
Step 3: your app keeps the OpenAI client. SageMaker AI has an OpenAI-compatible route. Two lines change, base_url and api_key, and the key is a short-lived token minted from your AWS credentials. One trap: always send model=. On an expert's URL with model="", a non-streaming call quietly used the base.
Step 4: load the base once, and attach each expert with one call. Each expert is an adapter inference component with its own name:
sm.create_inference_component(
InferenceComponentName=ic,
EndpointName=EP,
Specification={
"BaseInferenceComponentName": BASE,
"Container": {"ArtifactUrl": ADAPTER_TARGZ},
},
)
On ml.g6.2xlarge with the 8B base, the base took about 7 minutes to load. A second expert went live in about one second, without restarting the base. Deleting one expert left the base and the other serving; a delete takes two to three minutes to settle. To roll back, callers switch back to the old expert's name, and the new one can go.
My first adapters went green, then returned 404 on every call. The fix was one environment variable on the base, VLLM_ALLOW_RUNTIME_LORA_UPDATING=true, which mounts the POST /adapters route SageMaker uses to register each adapter (container standards). A green adapter is not proof that it serves. I invoke it.
Is it worth it
Quality. Sharing a base must not change the answers. I sent the same 20 prompts to a shared base and to a plain endpoint. First I measured one endpoint against itself, same prompts, temperature 0. It matched only 70 to 75 percent exact on the 8B model, because batching changes the GPU arithmetic and near-ties flip. That is the noise floor. The shared base matched the plain endpoint 65 to 75 percent, close to that floor: no measurable change (results vary). Exact match is a rough test; it shows no drift, not that the answers are good. I measure the floor first.
Cost. A GPU endpoint costs the same every hour, busy or idle. On one ml.g6.2xlarge at $1.222 per hour list price in one Region, a million output tokens cost $11.43 with one user and $0.78 with sixteen (8B model, results vary). Keep the GPU busy, and the cost per answer falls.
Scale. Scale on requests in flight per copy, not CPU; the CPU stays quiet while the GPU queue fills (automatic scaling). The decision is fast and the delivery is not. In a separate live demo on ml.g6.2xlarge with Qwen/Qwen3-0.6B, scale-out was decided at 0:58 and the second copy was serving at 8:28 (live demo, results vary). So scale before the spike, not during it.
The next expert
Now close the loop. Your examples go into your own training container, run as a SageMaker training job on one GPU. I used an open-source trainer as a stand-in for a team's own container. The contract is five paths and one exit code: data in, adapter out. You pay for the seconds it ran.
The job trained the 0.6B model on 529 sample instruction rows, with 20 more held out. In the final participant run of the workshop, on ml.g6.xlarge, it billed 616 seconds, about 10 minutes, and the loss fell from 4.009 to 1.363 (results vary).
The job writes model.tar.gz with the adapter files at the archive root, which is exactly the shape an adapter component reads. So I point the new expert at the job output, with no repacking:
Specification={
"BaseInferenceComponentName": BASE_IC,
"Container": {"ArtifactUrl": adapter_s3},
},
In that run the lab stood up a fresh base first, so the new expert was the only one on it. It was InService on the first poll and answered HTTP 200 under its own name. On a base that is already serving, the same call adds it next to the others. The training took about ten minutes; building the image and deploying add more.
One warning. I asked one held-out question to the base and to the new expert. The expert answered in the training style and still stated a confident wrong fact. Training teaches style and format. For current facts, use retrieval.
What I learned
- Copies were the pain; adapters are the fix. One shared base, and every expert a small file you can add next to the others or remove.
- Capacity is a design input. Every GPU step gets a fallback list. A quota is not a free GPU.
- Green is not proof. An adapter can show
InServiceand still fail every call. Invoke it before you trust it.
Watch the video
The same story in under four minutes, with closed captions. The narration is a synthetic copy of my voice: a text-to-speech reading converted to my voice with open-source voice conversion.
Further reading: inference components and the vLLM Deep Learning Containers on GitHub.
Opinions are my own.