LMAAS.IO DEVELOPER BLOG
Ten Things That Quietly Break When You Run a Local LLM Yourself
Notes from building lmaas.io, with the numbers we measured along the way
By Kest, developer of lmaas.io
Open-weight models are free to download, and most of them will run the first time you try. Getting one to the point where a company can rely on it every day is a different job. Most of the problems we hit while building lmaas.io didn't throw an error. The system looked healthy and the answers were simply wrong.
I'm Kest, the developer behind lmaas.io, a service that runs open LLMs in a separate environment for each customer. These are ten of the problems we ran into, what we measured, and what we changed. Some of them are a little embarrassing. I've left those in, because they're the most useful part.
1. A model loads fine and still can't hold a conversation
Chat models depend on a chat template, the rule that marks where the user's turn ends and the model's reply begins. Some models on Hugging Face don't ship one. They load without complaint, then produce broken replies or keep writing and never stop.
What we do now: we check every model for a chat template. Models without one are labeled "chat not available" in our catalog and can't be newly selected for chat.
2. Some models have no slot for a system prompt
Most chat setups send a system prompt along with the user's message, something like "You are our internal helpdesk assistant." Some models simply have no place for it in their template. Gemma 1 and 2 and the early Mistral-7B instruct models are examples. Depending on the engine, the request is rejected outright, or the system prompt is silently dropped.
What we do now: we test each model for whether it accepts a system prompt and record the result. For models that don't, we fold the instructions into the front of the first user message, and if a request is still rejected, we resend it that way. Users don't have to know which model is which.
Checking this one model at a time, every time the catalog grew, was slow and unglamorous work. It's also exactly the kind of work you don't see until it's missing.
3. The model was fine. We were putting the documents in the wrong place
This one hurt the most.
We built RAG: the system searches a company's own documents and passes the relevant parts to the model with the question. Search was working. The answers had nothing to do with the documents. They were invented.
The model wasn't the problem. Ollama's chat endpoint expects the system prompt as the first entry in the messages list. We were sending it in a top-level field that the chat endpoint doesn't have. Ollama ignores fields it doesn't recognize, so every request came back "200 OK." Not one word of the company's documents ever reached the model.
What made it worse was that our code for the other engine, vLLM, was correct. Same function, two branches, one right and one silently wrong. A test that checked "the request looks the way it always has" was protecting the bug.
What we do now: the system prompt goes into the first message for every engine, and an automated test fails if anything is sent in a field the engine doesn't support.
4. Text that doesn't fit is cut off without a word
Every model has a context length, measured in tokens. Documents, the question, the chat history and the reply all have to fit. Whatever doesn't fit is dropped silently.
Japanese makes this harder to estimate because one character is not one token. On a Qwen2.5-family model we measured 0.647 to 0.764 tokens per Japanese character, depending on the mix of kanji, kana and symbols. Using the high end of that range, our original settings were already over the limit for our larger document allowance before the user's question was even added. Whether it overflowed depended on the user's text, which is the hardest kind of bug to reproduce.
What we do now: limits are calculated from the measured ratio, using the cautious end. We raised the context length from 8,192 to 16,384 tokens and can set a recommended length per model. The test no longer checks that a setting equals some number. It checks that a given amount of text actually fits.
5. The model gets unloaded, and the next question is slow
By default, Ollama unloads a model from GPU memory after five minutes without use. People at work ask a question, go do something else, come back ten minutes later. Each time, they wait for the slowest part, which is loading the model again.
In our test environment, after we changed the keep-alive time and related settings, the 90-second timeouts we had been seeing went from three to zero. To be honest about it: we increased the test server's memory around the same time, so we can't say which change did it. What we can say is that it stopped happening.
What we do now: keep-alive is tuned to how people actually use the service, and requests are designed to wait out a slow load instead of failing.
6. With no length limit, some models never stop
Some models are bad at ending a reply and will keep writing until something times out. If you cap the length, though, the user can't tell whether they got the whole answer or half of it.
What we do now: replies have a length limit, and when a reply hits it the chat screen says so and suggests sending "continue" to get the rest.
Some models talk too much. Others say little and think a lot. Each one has its own habits, and watching them show up is honestly one of the more fun parts of this work.
7. Very small models copy your documents, and change them while copying
To save on development cost, we tried very small models (0.5B and 1.1B parameters). Instead of answering, they copied the retrieved document into the reply and altered it on the way.
Rewriting the instructions stopped the copying. It didn't stop the next problem: when two similar documents came back, the model blended them and added conditions that appeared in neither. The output read like natural, fluent Japanese, which is why it was dangerous. Nobody would think to doubt it.
A bigger model won't be right every time. It does read the question and the material more carefully, though, and its answers stay much closer to the documents.
What we do now: the catalog can be filtered by task and by industry so customers can pick a model big enough for the job, and the model size available on each plan is published.
8. Fine-tuning runs out of GPU memory, and the number of records isn't the cause
LoRA fine-tuning trains a small add-on and leaves the base model untouched. We assumed memory would grow with the amount of data. It doesn't. It grows with the length of a single record.
What we measured on a 4B model:
| Data | Peak GPU memory | Result |
|---|---|---|
| 174 short records | 8.48 GB | OK |
| 60 long records, just under 8,000 characters each, no memory-saving setting | — | Out of memory 3 seconds after training started |
| Same 60 long records, gradient checkpointing on | 11.54 GB | OK |
With gradient checkpointing turned on, an 8B model trained on our longest data peaked at 18.64 GB. Both fit on a 24 GB-class GPU.
What we do now: a per-record length limit of about 2,000 tokens and the memory-saving setting are built into every training run. Customers register their data, pick Low, Standard or High, and training runs on its own.
9. Reading licenses for a thousand models
"Open" doesn't mean the same thing for every model. Whether you can use it commercially, fine-tune it or redistribute it varies by license. Fine-tuned models published by third parties add another layer, and their stated license sometimes differs from the base model they came from.
What we do now: we check licenses before listing a model and show commercial use, fine-tuning and redistribution for each one. When a fine-tuned model is used, the customer agrees to both its own license and the base model's, and we record who agreed and when.
10. Reasoning models print their thinking
Reasoning models such as Qwen3 write out their thinking before the answer. In a business chat that's hard to read, and it makes every reply slower.
What we do now: for models that support it, we ask them not to produce the thinking at all. If some of it still appears in the output, we strip it before it reaches the screen.
What the ten have in common
Most of these failed quietly. No error, just a wrong result. An error-free log tells you very little about whether a system is actually working.
So every time we got caught, we confirmed the cause on real hardware, wrote tests, and kept records of what we found. We also check whether those tests would actually catch the mistake they're meant to catch, and fix the ones that wouldn't. That part never really ends.
When you should build it yourself instead
If you need full control over model size and setup, or the system must run only inside your own network, run it yourself. lmaas.io is a cloud service and won't fit that requirement.
If you don't want company data going to an external AI service but you also don't have people to spend on the ten problems above, that's the case we built lmaas.io for.
What we don't promise
We don't guarantee that answers are accurate, that models or fine-tuned models are safe, or how fast replies will be. Check the output before you use it for work. How much fine-tuning helps depends on the model and the data. Our public documentation covers this in more detail, including what lmaas.io is not a good fit for.
About lmaas.io
lmaas.io is run by 35gates Inc. in Japan. Each customer gets a separate environment running open LLMs (over 1,000 in the catalog, including Gemma, gpt-oss, Llama and Qwen), with RAG over internal documents and LoRA fine-tuning on their own data. Documents, training data and conversations aren't sent to external AI services unless the customer sets up an external connection. Pricing is a fixed monthly fee, from $400 a month for customers outside Japan.
- Website: https://lmaas.io/
- Contact: https://lmaas.io/contact
- Public documentation, in English (GitHub): https://github.com/lmaas-official/lmaas-documents/tree/main/en
- AI model license notices: https://lmaas.io/licenses
If you want to check whether a particular model would work for your use case, send us a note through the contact form.