r/mlops • • 3h ago

Discussion A score quoted without its version is not reproducible evidence

1 Upvotes

An eval number enters a slide deck, then a ticket, then a planning doc. A quarter later nobody can say which build produced it. The score kept its decimals and lost its provenance.

The Agent Memory Leaderboard published its Cycle 2 official results on November 19: 9 leaderboards and 289 track entries. Open-source rows carry a version string next to the system name. Commercial entries submit a fixed product version for the same review. Before anything is published, the platform checks that the code, image or API used for the formal evaluation matches the declared version.

The results page also asks anyone citing a result to name the track, division, system name and version, and metric. Corrections will be posted there with the date and details.

JiuwenMemory, the openJiuwen community's long-term memory module, is on the Cycle 2 Textual Open-source Methods board as jiuwen-memory v1.0. Its README describes memory extraction, storage and retrieval, and the project keeps developing. That row describes v1.0, the build that was evaluated; it can't speak for the next release.

My take: an eval number that loses its version string on the way into a slide is closer to a rumor than a measurement.

How do you tie an external benchmark result to the exact build you deploy, and what makes you re-run it?


r/mlops • • 5h ago

Self-promotion Looking for MLOps engineers to read my book on running production AI systems before it ships

1 Upvotes

I'm opening a private beta for my book on designing and operating production AI systems, and I'm looking for engineers to read it before it ships.

It covers what sits around the model: how state, latency, cost and failure modes connect once a system runs in production.

What's inside:

  • Reliability, latency and cost as one architecture problem
  • Long-running agents with durable state, observable decisions and clear human authority
  • How retrieval, memory, context and fine-tuning fit together
  • Evaluation, security, tools and multi-agent coordination
  • Failure analysis and reference blueprints that connect the parts

It's written for senior engineers, architects and technical leaders who build and operate these systems.

The beta is selective: I'm choosing readers by role and by what they build. Readers who join can open all 20 chapters, read as much as suits them, and give feedback privately.

If that's your work and you'd like to read it, comment "beta" and I'll send you the details.


r/mlops • • 15h ago

Self-promotion On-demand H100 prices across the big clouds have an almost 2x spread

4 Upvotes

Disclosure: I built this, and we're in the RunPod, Vast.ai and Vultr referral programmes. The ranking is by price only.

I got tired of opening five pricing pages, so I made https://gpu.fly. It shows hourly prices per GPU, refreshed every hour. This morning an on-demand H100 SXM was $6.88 on AWS, $10.00 on Oracle, $11.06 on Google Cloud and $12.29 on Azure.

The big caveat is that RunPod, Vast.ai and Lambda aren't in the table yet, so $6.88 isn't the market price.

If you rent GPUs for real jobs, what would you need to trust a table like this?


r/mlops • • 13h ago

Discussion Cutting the GPU cost of serving many fine-tuned models

2 Upvotes

Hi everyone,

I'm a solo founder working on the serving side of fine-tuning, and I'd like feedback from people who actually run this in production.

The problem I'm going after is teams that serve a separate fine-tune per customer or per task. With LoRA in vLLM, throughput drops as the number of adapters goes up, and every adapter takes GPU memory away from the KV cache. You end up either adding GPUs or tuning max-loras and slots until something gives.

I built a LoRA replacement called GCMP, and I also changed the vLLM plugin. A GCMP adapter on Qwen3.8-27B is about 5.8 MB in bf16, compared to about 319 MB for LoRA r=32. So 256 adapters take about 1.5 GB instead of about 82 GB.

I tested it on Qwen3.8-27B in bf16 on one 80 GB GPU with 256 adapters loaded. GCMP held around 665 tok/s. LoRA r=8 got 329 tok/s with default settings and 441 tok/s after I tuned it to 64 GPU slots. That's about 1.5x more throughput than tuned LoRA on the same GPU, so for the same traffic you need fewer GPUs. GCMP also left more memory for KV cache (111K tokens vs 77K), and the server started in about 5 minutes vs 8 to 18 minutes for LoRA. The startup time matters if you restart or autoscale often.

There are limitations you should know about. With only one adapter, GCMP is about 35% slower than the bare base model, and LoRA is faster in that case, so this only pays off when you have many adapters. On a full-precision base, GCMP serving runs on one GPU for now. Tensor parallel isn't supported yet and pipeline parallel is untested. On my 4-bit CQ base it runs with pipeline parallel. The adapter is compiled and license-gated, and I'm adding an offline grace period so a network problem doesn't take serving down.

Deployment is through a CLI that runs on SkyPilot in your own cloud account. It picks the GPU type and count from the model size, and your data and models stay in your account. The training code is open at github.com/thousandml/training-factory. Pricing is flat and simple: $149 per GPU per month or $1,499 per GPU per year, with no per-token or per-adapter fees.

I'm looking for a few teams that serve many fine-tunes to try it free for a month on their own workload. I'd also like to hear what would block you from running something like this in production, whether that's the license check, monitoring, autoscaling or anything else.

Thanks for reading, feedback appreciated.


r/mlops • • 15h ago

Discussion Moving every team onto one shared LLM gateway and bracing for what breaks first...

2 Upvotes

were moving 9 teams off direct provider keys and onto one shared llm gateway in january. plan so far is a key per team, budgets per team, fallback to a 2nd provider, and logs going to our existing stack. the gateway itself isnt the scary part, its the 9 teams who all have something hardcoded somewhere. for anyone who did this rollout, what broke first


r/mlops • • 1d ago

Self-promotion Open-source, self-hosted evaluation gates for LLM and agent rollouts: CLI in CI, or an operator on Kubernetes

2 Upvotes

Evalsi turns evals into a deploy gate: exit 0 ships, exit 3 blocks.

  • Runs as a CLI, a GitHub Action, or a Kubernetes operator (EvalRun resources)
  • Scores live traces from MLflow, Phoenix, Langfuse or LangSmith and writes the scores back
  • Sandboxed, self-hosted, works air-gapped, with OIDC and RBAC

You can try it without a cluster: pip install evalsi runs the same spec locally.

I'm looking for teams to try it in a real pipeline and tell me what would stop them trusting it to block a rollout. I'll reply to everyone.

https://evalsi.dev · https://github.com/Abhishek-Rnjn/evalsi


r/mlops • • 1d ago

Discussion Any product/project idea?

3 Upvotes

hi

i am getting bored therefore want to create/develop something as devops engineer like any product or something adventures/excited

what can i create or should i do?


r/mlops • • 2d ago

Research / Academia Running LLMs in the real world: What's harder than it looks?

6 Upvotes

Hello!

We're a group of university students researching the practical challenges of running and optimizing large language models.

We're looking to understand how developers and researchers balance inference latency, model quality, hardware limitations, memory usage, and deployment costs.

We've prepared a short survey for anyone experimenting with, building, or deploying LLM applications.

Survey: https://forms.gle/FTukE9EpQ2taY4dY9

Estimated completion time: 5–7 minutes.

Responses from hobbyists, researchers, ML engineers, and production teams are all welcome. No proprietary information is requested.

We'd really appreciate your perspectives. Thanks!


r/mlops • • 2d ago

Discussion How do you handle quality gates in AI when models and libraries keep changing so fast?

1 Upvotes

I'm trying to figure out how teams actually handle quality gates in AI work, because everything changes so fast now.

Like, you can bump a model version, a library, a prompt, or an API, and the output changes, even if your code barely changed. That feels very different from normal software, where a version update is usually more predictable.

What I'm stuck on is the split:

- What do you run on every PR?

- What do you only run when the model or a library changes?

- And what do you save for a full release check, like evals, regression tests, and compatibility tests?

If you run everything on every PR, it's safe, but it's also slow and expensive, especially evals. If you run too little, things can break quietly and you don't notice the quality drop.

So for teams shipping AI features in production, what does your setup actually look like day to day? And has anything broken for you because the gate was too light?


r/mlops • • 2d ago

Discussion The Price of Structure: training-time head masking does not survive matched controls at ImageNet and LLM scale

6 Upvotes

We tested whether training-time attention head masking (DropHead-style) makes transformers more resilient to structured pruning. Earlier small-scale results, including ours, suggested large gains. We re-ran it at scale on AMD MI250X (LUMI): ViT-B/16 on ImageNet-1k, BERT-base on GLUE, OPT-1.3B and OPT-6.7B.

Setup : every compression cost is measured against a dense control fine-tuned for the same budget on the same seed. 3 to 10 seeds per configuration, baselines checked against published values, same-seed noise floors measured, thresholds fixed before the runs.

Findings :

- Fine-tuning alone is a large effect (+3.1 pts on ViT-B/16, +0.64 / +1.07 WikiText-2 perplexity on OPT-1.3B / 6.7B). Without a matched control you attribute it to pruning.

- With a short recovery fine-tune, masked models land within 0.51 pts of the same pruning on pre-trained weights. On BERT/GLUE at equal budget, magnitude pruning plus recovery is ahead on 6 of 8 cells over ten seeds. DropHead wins every cell only when neither arm is recovered.

- Cost tracks structure, not parameter count: after recovery, 50% unstructured attention sparsity ~0.2 pts on ViT-B/16 (about the control's own seed spread), 2:4 ~0.5, removing 50% of heads 3.9. Same ordering on both OPT models, and every matched cost is lower at 6.7B than at 1.3B.

- At equal parameters, removing FFN neurons costs less than removing heads on every model. One-shot rankings do not predict post-recovery rankings: for FFN neuron selection the order reverses on 7 of 7 seeds.

What we got wrong before: our earlier small-scale gains did not hold, and we withdrew those claims. We also report a negative result for a graph-based structural diagnostic we had proposed.

Limitations: AMD hardware only, largest model 6.7B, no recent model families yet. Measured speedups depend on batch size, device and runtime, so we do not claim a general latency number.

Preprint: https://doi.org/10.5281/zenodo.24390835

Data and checkpoint hashes: https://doi.org/10.5281/zenodo.24391200

Code: pip install sal-torch (MIT/Apache, see repo)

Happy to answer questions about the protocol, especially the controls and noise floors.


r/mlops • • 2d ago

MLOps Questions how do you catch an AI agent action that succeeded but was wrong?

2 Upvotes

guys


r/mlops • • 2d ago

Discussion I built a LoRA replacement that is 14-55x smaller with the same quality, and it serves 256 fine-tunes on one GPU without slowing down

2 Upvotes

Hello,

I built an adapter called GCMP that replaces LoRA for fine-tuning. On Qwen3.8-27B it is 2.9M parameters (about 11 MB) while LoRA r=32 is 159M and r=8 is 40M on the same layers. I trained all of them plus VeRA on the same data and settings and they all tie on 9 benchmarks (GSM8K, MMLU, IFEval etc). So same quality but much smaller.

The reason I care about the size is serving many fine-tunes, like one per customer. So I tested it in vLLM on one A40 48 GB, 32 requests at the same time each going to a random adapter:

Setup1 adapter64 adapters256 adapters
GCMP83 tok/s84 tok/s84 tok/s
LoRA r=8 default91 tok/s60 tok/s60 tok/s
LoRA r=8 max_loras 64-76 tok/s74 tok/s

With one adapter LoRA is a bit faster. With many adapters GCMP stays the same and LoRA drops unless you raise max_loras, and if you raise it the KV cache goes from 88k tokens to 43k. LoRA r=32 with 256 adapters didn't even finish loading on my machine because it needs about 82 GB of CPU RAM to hold them and I had 50 GB. Also vLLM loads LoRA adapters one by one so 256 of them took 30-40 min before the server started taking requests. GCMP loaded all 256 in about 6 min.

I also ran a 45 min test where a few tenants are busy and most are rare, and another one where a tenant gets replaced every 20 s while traffic is running. p99 time to first token was 1.2 s for GCMP vs 91 s for LoRA r=8, and swapping a tenant took 0.4 s vs 5.4 s. No memory leaks on either one.

Things that are not good yet: training is about 2x slower than LoRA, serving GCMP needs my own 4-bit base for now, and the absolute speed is low because of my 4-bit kernels on the A40 (same base for every row so the comparison is fair, but don't look at the absolute numbers). I only tested one model so far.

The code and scripts to reproduce everything are here: https://github.com/thousandml/training-factory

For people who serve many fine-tunes in production, what is the actual problem for you? Memory, startup time, swapping adapters, or something else? Would a smaller adapter help or is LoRA good enough?

Let me know what you think. Feedback appreciated


r/mlops • • 6d ago

Research / Academia CMU's Machine Learning in Production (17-445) lectures are going up free, one a week

50 Upvotes

Christian Kästner and Bogdan Vasilescu's course on building, deploying, and operating ML-enabled systems is now being published as full lecture recordings. The Fall 2026 lectures premiere starting 5 PM ET today, then weekly. See my first comment for links!


r/mlops • • 6d ago

Discussion more vram or higher throughput for an internal llm serving cluster in 2026?

7 Upvotes

the tradeoff is brutal when you are buying hardware for internal serving. more vram buys you room for larger models, massive context windows, and enough breathing room for concurrent agent loops. a faster gpu gives you better tokens per second and lower latency, but speed does not matter if your model and kv cache overflow the buffer and crash

.

for most internal api workloads, vram wins the first round. if a model or context length simply cannot fit in the physical frame buffer, raw compute speed is useless. but once you clear that memory threshold, memory bandwidth and inference speed start dominating user experience, especially when multiple teams are hitting the cluster at once.

mixed clusters complicate this further. an old card with massive vram is great for large contexts or batch jobs, while a newer, faster card is better for latency sensitive agent workloads. you do not want to waste fast compute on a tiny model, nor do you want to choke a heavy workload on slow silicon.

people use tools like gpustack to handle this split. it lets you manage resources across different workers and place model deployments based on actual capacity instead of treating every node the same way. it does not eliminate the physical hardware tradeoffs, but it lets you map workloads to the right hardware profile.

if you were building an internal serving cluster today, which side would you weight heavier? do you buy for maximum vram headroom, or do you chase peak throughput and faster tokens?


r/mlops • • 6d ago

Self-promotion How we built LRU model eviction on top of SGLang to serve 139 open models across 23 agent tasks on one Kubernetes cluster (Apache-2.0)

4 Upvotes

When you run an agent pipeline in production, the main LLM isn't the only thing eating VRAM. A single request often hits a prompt guard (Qwen3Guard-4B), an encoder (Qwen3-Embedding-4B), an entity/intent extractor (GLiNER2.5), a generator (Qwen3.8-27B-FP8), and a verifier (Granite-Guardian-2B).

Deploying those the standard way means running vLLM for guards, N separate TEI containers for embeddings, a custom FastAPI service for GLiNER, and SGLang for generation, each locking down its own GPU memory slice even when idle.

We built the Superlinked Inference Engine (SIE) under Apache-2.0 to collapse that fleet into one Helm chart and a single endpoint:

- The 27B LLM stays pinned on its own GPU pool via SGLang so it never gets evicted.

- Guards share one GPU pool and encoders share another.

- Models load on demand, batch concurrent requests, and use Least Recently Used (LRU) eviction when VRAM gets tight.

- If an individual SGLang process crashes, superlinked's inference engine unloads it and reloads cleanly on the next request.

Moving high-frequency retrieval and extraction off per-token APIs onto shared GPUs reduces the cost of self-hosted embeddings to ~$0.50 per 1B tokens (vs ~$20 on managed APIs) and the cost of reranking to ~$8.50 per 1B tokens (vs ~$87 on Cohere Rerank)."


r/mlops • • 8d ago

Self-promotion I needed to process a lot of data for a side project, so I built a batch AI platform that supports workflows like GitHub Actions

5 Upvotes

I run a niche product catalog site as a side project, and every incoming product needs AI processing: extracting specs, classifying it, writing descriptions, and checking for duplicates. There’s a lot of data, but none of it needs answers in seconds. Depending on the task, “soon” might mean within an hour or sometime in the next seven days.

I started with frontier providers, sending data over the real time APIs. Then pivoted to batch to save 50%. This all worked but accuracy was really bad with products being misclassified and other issues, so I decided to break it down into smaller steps that were more deterministic. This required a ton of Go code and managing many prompts.

I also wanted to see if I could just spin up a spot GPU for an hour on the weekend and run all the work for a couple dollars instead of paying OpenAI $20. In the end, I built a complete workflow engine and scheduler that uses both Spot GPUs and my own GPUs to process work depending on which model is needed.

The workflow engine makes it possible to eliminate the roundtrips back to my application between steps and I even added the ability to make tool calls or park at a step to allow human review. I can also target different models for different steps, to get better capability where it was needed.

Has anyone else encountered a need like this? How did you solve it?

Currently, I am using Gemma4-12b and Qwen3.6-35b-a3b for small and medium respectively. I benchmark tested several different models to determine these were the best balance of accuracy and performance as of last month. I will be testing the Qwen4 models soon. I stick to models I can get directly from the big labs. Maybe that offers a false sense of security, but it’s a rule I follow.

If anyone is interested, there is a UI for playing with the workflow engine and if you create an account, you can use the demo to send 10 requests to play with it. Would love feedback.


r/mlops • • 8d ago

(Gen)AI / Agents / LLMOps How do you score "insufficient visual evidence" in multimodal evals?

16 Upvotes

Working on a photo based bicycle repair triage prototype and a mechanic reviewing sample outputs pointed out a flaw in our evaluation criteria.

Several photos don't show enough detail to assess component wear reliably. The model will still name a plausible defect and our current rubric tends to reward that over saying another photo or physical inspection is needed.

I've been running image and description cases through Braintrust evaluations and inspecting the individual judgments. Some responses that received favorable scores were ones the mechanic said he couldn't responsibly make from the evidence shown.

Considering adding an assessability label to each test case then scoring diagnostic accuracy separately from how the model handles missing visual evidence. I want to avoid a rubric where asking for another photo becomes an easy way to score well, even when the original image is adequate.

How are you handling cases where the image doesn't show enough detail? Are you scoring those separately or letting the same rubric account for missing evidence?


r/mlops • • 8d ago

Career Title: backend dev thinking about a masters in LLM inference serving

21 Upvotes

I am a backend dev, 5 years in, mostly distributed systems stuff. rabbitmq, aws, ci/cd, that kind of thing. ive used LLMs in apps (langchain, whisper) but never touched GPUs at scale.

Got a shot at a fully funded 2 year masters in china starting sept 2027. the topic id want to research is LLM inference serving, basically how to route requests across GPU replicas and how to autoscale GPUs when cold starts take forever. been reading vllm, llumnix, serverlessllm etc and honestly i find it interesting.

But before i commit 2 years i want a reality check from people actually in this space:

  1. is inference infra too niche? feels like only frontier labs and big cloud providers hire for it. im in southeast asia so singapore or china would be the realistic targets
  2. if the AI bubble pops around 2027 or 2028, does this kind of role get hit hard or does it survive since inference is where the money is?
  3. would a masters actually help here or am i better off staying in industry and picking up k8s, kserve, vllm on the side? main reason for the masters is lab and GPU access tbh

Anyone who moved from backend into ML infra, would love to hear how it went


r/mlops • • 8d ago

Discussion before buying another gpu, check if your old cards still have a use

10 Upvotes

teams write off older gpus way too fast. people assume a card is useless if it cannot run the latest models. a developer recently used an 8gb rtx 4060 laptop gpu to run a quantized qwen 3.5 4b model through llama cpp. they built a whole local document q and a system on it. you do not need the newest hardware for everything.

if you have a few machines, you can offload internal document q and a to the old cards and let your main cards run the production api. gpustack is an option to consider for centrally managing model deployments on both sides. nobody wants to maintain a separate environment for every single machine.

buying another gpu is not an automatic upgrade anyway. mixing vram capacities and cuda versions turns a simple expansion into a weekend of debugging. adding 8gb to a 24gb node does not magically give you a 32gb memory pool. you still have to match the backend to the silicon.

i would rather see a team get useful work out of the hardware they already own before they approve another massive gpu purchase. before buying the next card, what tasks do you try to offload to the old cards you already have?


r/mlops • • 8d ago

Discussion What if an AI protocol had to prove not only what it can calculate, but also what it cannot yet justify?

4 Upvotes

One thing I am learning while developing the Organic Intelligence Protocol (OIP): a mathematical formula is not evidence, and passing software tests is not scientific validation.

Recently, I completed a focused implementation cycle:

- 21/21 targeted policy tests passed.

- 70/70 existing software regression tests passed.

- Seven identified implementation gaps were addressed in a new candidate version.

- The original candidate remains unchanged.

But there is an important distinction: these results establish software level behavior under the tested conditions..They do not establish empirical effectiveness or scientific validity.

I’m now working on a versioned canonical serialization specification, with cross-platform reproducibility still to be established.

I would rather expose what remains unproven than present an unfinished protocol as a breakthrough.

For researchers and engineers.. What would you independently test before considering this kind of protocol specification reliable?

Critical feedback is welcome.


r/mlops • • 8d ago

Discussion Serving many fine-tunes of one LLM: adapters 55× smaller than LoRA, same accuracy. Looking for feedback from people running this in production

12 Upvotes

Update 2 (Nov 21): multi-adapter serving results

Some of you asked me to test serving many adapters in vLLM and to sweep max_loras instead of using the default. So I did that.

I ran everything on one A40 48 GB with vLLM 0.27.1 and the same CQ 4-bit Qwen3.8-27B base for every run. 32 concurrent requests (384 total), 128 output tokens each, and every request goes to a random adapter. The adapters are perturbed copies of real trained adapters (the r=8 LoRA is the r=32 one sliced to rank 8). Numbers are total output tok/s:

Setup11664256p95 TTFT at 256KV cache at 256Time to ready at 256
Base, no adapter93.3111k
GCMP83.283.783.783.72.2 s72k~6 min
LoRA r=8, max_loras 16 (default)91.184.860.159.547.5 s88k~30 min
LoRA r=8, max_loras 6476.274.42.4 s43k~41 min
LoRA r=32, max_loras 16 (default)91.276.353.5out of host RAM at 74/25643knever ready
LoRA r=32, max_loras 32won't startwon't start

With one adapter LoRA is about 9% faster than GCMP, and GCMP is about 10% slower than the base without any adapter. With many adapters GCMP stays flat from 1 to 256 without tuning anything. With the default settings LoRA drops 35-40% by 64 adapters and p95 time to first token goes from about 2 s to around 50 s.

Raising max_loras helps r=8 a lot. With 64 slots it gets 74 tok/s at 256 adapters, which is about 12% behind GCMP. But those slots take memory from the KV cache, it goes down to 43k tokens compared to 72k for GCMP, so fewer long requests fit at the same time. For r=32 you can't do that on a 48 GB card. With 32 slots vLLM says "Available KV cache memory: -1.42 GiB" and doesn't start, so it's stuck at 16 slots.

The thing I didn't expect is startup time. vLLM registers LoRA adapters one by one, about 6 s each for r=8 and 18 s each for r=32. So 256 r=8 adapters take 30 to 41 minutes before the server accepts the first request. GCMP loads all 256 in about 6 minutes.

LoRA r=32 with 256 adapters never got to serving. I ran it twice and both times loading stopped at exactly 74 of 256 adapters (about 20 minutes in) with no error, and nothing happened after that. The reason is host RAM. vLLM keeps a copy of every adapter in CPU memory, and 256 r=32 adapters need about 82 GB of it, while my pod has a 50 GB memory limit. It ran out at 74 adapters (about 24 GB of adapters on top of the model loading). 256 r=8 adapters need about 20 GB, so they fit. For comparison 256 GCMP adapters are about 3 GB.

A couple of things to keep in mind. The absolute speed is low, about 2.6 tok/s per request at 32 concurrent. That's from my CQ decode kernels on the A40, not the adapters, since every row uses the same base, so look at it as a relative comparison. Also this is one GPU type, one model, short prompts and 128 token outputs. With longer contexts the KV cache difference would matter more. The script is in the repo (training/run_adapter_scaling.sh) if you want to try it on your hardware.


Update 1 (Nov 19): LoRA r=8 and VeRA added

I trained all four adapters on the same full precision BF16 Qwen3.8-27B base with the same data and settings and evaluated them with the same code:

AdapterParamsAnswer lossGSM8KSQuADMMLUIFEvals/step
LoRA r=32159M1.4800.9030.7760.8440.8251.37
LoRA r=840M1.5550.9100.7680.8460.7951.31
VeRA (r=256)2.89M1.4890.9030.7780.8460.8201.33
GCMP2.9M1.4710.8900.7600.8460.8152.74

All four are tied on all 9 benchmarks (every p ≥ 0.15). Since r=8 is as good as r=32, the fair size comparison is with r=8, so GCMP is about 14x smaller, not 55x. GCMP has the lowest loss but that didn't show up as benchmark wins. VeRA is the same size and quality and trains 2x faster than GCMP right now, but vLLM can't serve VeRA, so that's why the serving test above is against LoRA.

Original post below.


Hello,

I'm the founder of ThousandML and I built what I'm describing here. I'd like to get feedback from people who actually run LLM serving in production.

If you serve one fine-tune per customer or per task on the same base model, the adapters become a cost on their own. LoRA r=32 on a 27B model is about 320 MB per adapter. With hundreds of customers that's tens of GB that you need to store, move around and keep in GPU memory, and it limits how many adapters one GPU can hold.

So I built GCMP, which is an adapter that replaces LoRA. On Qwen3.8-27B it trains 2.9M parameters (about 11 MB per adapter) compared to 159M (about 320 MB) for LoRA r=32 on the same projections. Accuracy is the same as LoRA r=32 on 9 benchmarks. I compared them on a full precision BF16 base and on an NF4 base using the same evaluation code and paired significance tests:

Base + adapterSizeGSM8KSQuADMMLUIFEval
BF16 + LoRA r=32~320 MB0.9030.7760.8440.825
BF16 + GCMP~11 MB0.8900.7600.8460.815
NF4 + LoRA r=32~320 MB0.7930.7480.8400.835
NF4 + GCMP~11 MB0.8330.7560.8370.840

None of the differences are significant except GCMP being 4 points higher on GSM8K on NF4 (p=0.04).

For serving I built a vLLM plugin. You give it the list of adapters and each request picks its adapter by the model name:

CQ_GCMP_ADAPTERS="tenant-a=/adapters/a,tenant-b=/adapters/b" \
vllm serve <base-model> --quantization cq
# then send {"model": "tenant-a", ...}

All adapters are loaded once at startup and /v1/models lists them. Requests for different adapters can be in the same batch and it's one kernel call per layer, so no merging or swapping. Each adapter takes about 11 MB of GPU memory, plus a small routing buffer and a shared workspace (up to about 64 MB) that don't grow with the number of adapters. You can also replace an adapter by name without restarting.

There are still some things I need to work on. Adding a new adapter needs a restart (replacing one doesn't). Serving in vLLM needs my CQ 4-bit base for now, and I plan to add full precision bases next. Pipeline parallel works but tensor parallel doesn't yet. Training is about 2x slower than LoRA per step, and with a single adapter serving is about 9% slower than LoRA.

Everything runs on your own GPUs. The Python code is open source and the kernels are compiled with a license check, which is free during early access.

Repo: https://github.com/thousandml/training-factory

Full write-up: https://huggingface.co/blog/thousandml/cq-gcmp-4bit-finetuning

A couple of questions for those of you who serve many fine-tunes. How many adapters do you actually need per GPU and how often does that list change? And is a 30-80 minute startup with hundreds of LoRA adapters a real problem for you (autoscaling, deploys) or do you have a way around it?

Your feedback is appreciated.


r/mlops • • 9d ago

Discussion [D] What becomes the biggest challenge after a machine learning model is ready for deployment?

0 Upvotes

Getting a machine learning model to perform well during development is one thing. Keeping it reliable once it's running in production is another.

I've noticed that production deployment involves several challenges beyond model accuracy:

  • Monitoring model performance and detecting drift
  • Managing different model versions
  • Automating retraining and deployment workflows
  • Keeping data pipelines consistent
  • Tracking infrastructure and inference costs
  • Making sure models remain reliable as business requirements change

I'm interested in hearing from people who have taken ML models into production.

Which part of the MLOps lifecycle tends to require the most effort in your experience: deployment, monitoring, retraining, or ongoing maintenance?


r/mlops • • 10d ago

Discussion I benchmarked 3 self-hosted LLM gateways. Langfuse's was fastest, but its stack consume 3.5 GB RAM at idle stage

15 Upvotes

Setup. Langfuse AI Gateway 4.77.0 (public beta), LiteLLM proxy 1.108.4 with Postgres and a virtual key, and AcruxCore from its Docker Hub images. All three ran on one Ryzen 9 5900X, called the same OpenAI model with a 5-token cap, and used the same prompt. Latency is the gateway call minus a direct OpenAI call made in the same round. Each run had 150 rounds in random order, and I report the median with a 95% bootstrap interval.

Results

TestLangfuseLiteLLMAcruxCore
Added latency, no streaming−9 to +8 ms (interval includes zero)+61 to +67 ms+15 to +24 ms
1,000 streams on 2 CPUs, as shipped261 ok403 ok1,000 ok
1,000 streams, open-file limit raised1,000 ok, first token 1.7 s1,000 ok, first token 19.2 s1,000 ok, first token 3.8 s
Idle memory, gateway process13 MiB727 MiB200 MiB
Idle memory, whole stack3,584 MiB810 MiB405 MiB

What I took away

  • Langfuse's gateway is the fastest. It is a small Rust process, and with the limit raised it handled 1,000 streams best. But it cannot run alone: it checks every key against the Langfuse web service and records usage into ClickHouse. If you already run Langfuse, it costs you 13 MiB. If you don't, it brings a 3.5 GB stack with it.
  • Docker's default open-file limit of 1,024 decided the concurrency test. Each stream holds two sockets. Node raises its own soft limit at startup, but Rust (Langfuse) and Python (LiteLLM) keep 1,024. One ulimits: nofile line in Compose fixes it. Check /proc/<pid>/limits on your own gateway.
  • LiteLLM's 503s at high concurrency came from virtual-key lookups. When the key is not cached, every call queries Postgres through a pool of 10 connections, and a lookup over 10 s gets a 503. Making one call first, so the key is cached, removed them.
  • The OpenAI address matters more than the gateway. api.openai.com resolved to two Cloudflare addresses for me, and a new connection to the far one added ~250 ms. In my first run this made Langfuse look 43 ms faster than calling OpenAI directly. I pinned every path to the same address after that. If you benchmark gateways yourself, check this first.

Limits of this test: one machine, one network, short prompts, and one version of each. Langfuse can't point at a custom upstream URL, so I couldn't use a local mock model, and differences smaller than the intervals aren't measured.

If you rerun it and get different numbers, please post them. I'll update the write-up.

Disclosure: I build AcruxCore, one of the three gateways in this test. So you have every reason to distrust a benchmark that a vendor publishes on its own website. I would too. That is why everything is open source: the scripts, the Compose overrides and the raw JSON results. You can rerun the whole thing on your own machine and check whether you get the same numbers.


r/mlops • • 12d ago

Discussion Can you tell good MLOps work from a public repo alone? Here's what I look for. Tell me what I'm missing

6 Upvotes

I'm a 17 year old founder building an app called AI-Atlas, it currently has 70+ users and it basically evaluates people's public AI work across six fields; MLOps is one of them. MLOps is the hardest to judge from code, because so much of it lives outside the repo.

Also: I am passionate in AI Research, so I didn't have time to catch a glimpse over what criteria exactly does a MLOps project need to have to be considered excellent. Likewise, what or how could I identify any lacking areas that deserve to be showcased by the final score on that category, so that's why I decided to write in this sub, I am genuinely asking you guys for advice and feedback!

The signals I use:
- Reproducibility: pinned environments, seeded training, a single command that reproduces the reported numbers.
- Pipelines: training and serving split cleanly, configs instead of hard-coded paths.
- Delivery: CI that actually tests the model code, not just linting; containers and model packaging.
- After deployment: monitoring and drift checks, when they're present.

So what would you add, or weight differently? Someone with solid infra-as-code but no model training: should that count as MLOps at all?

Happy to share my project for anyone genuinely interested :)