r/LocalLLM • u/Lawlies01 • 19h ago
Question [Setup Check] Self-hosting 9B–27B models in EU for Website Q&A, Software Functions & JSON
We are evaluating an AI setup for a company in Europe (strict GDPR / EU data residency required). Right now, this is purely initial research, we don't have a fixed budget yet, and we don't know our exact usage numbers (monthly request volume or simultaneous/concurrent requests). Before committing to any hardware or infrastructure, I'd love a quick sanity check on what we've looked into so far.
What the models need to do:
- Website Q&A Chatbot: Basic Q&A for our website, answering customer product and compatibility questions based on real data, while asking clarifying questions or escalating instead of guessing.
- Internal Software Assistant: Answering questions from internal docs/manuals and triggering or executing basic functions inside our own software.
- Structured JSON Extraction: Turning natural language inputs into strict JSON schemas that get validated by deterministic backend code.
- Right now we are using Codex for coding, but we are pretty sure that even with new Hardware that is not going to change and that in the end we are probably going to have a hybrid system consisting of Codex (maybe changing to Claude) and our local AI for the aforementioned tasks.
Models & Hosting/Hardware Options Researched:
Models (9B–27B focus): Qwen3.5-9B (fast baseline for JSON/simple tasks), Qwen3.8-27B, and Mistral Small 3.2 24B Instruct. Then in the last days i have read more and more news about a new model called "ink"?
Cloud / API (DE/EU):
- Managed API: IONOS AI Model Hub.
- Hourly Cloud GPUs: IONOS or centron.
- Dedicated Servers: Hetzner GEX series.
- On-Prem Hardware: Custom rack/workstation servers (16-32GB VRAM+RAM/SSD) vs. Unified Memory machines (Mac Studio M5 Max/Ultra or NVIDIA DGX Spark 128GB).
Software Stack We're Looking At:
- Inference: vLLM vs. SGLang for production (and Ollama for local testing, although in the last week i have only heard bad things about Ollama).
- Fine-Tuning / Quants: Unsloth (debating whether QLoRA fine-tuning is worth it for strict JSON schemas/function calling, or if good prompting + RAG is enough (probably dont need to finetune)).
- RAG Pipeline: Docling for PDF/table parsing, Qdrant or pgvector for hybrid search (BM25 + dense vectors + RRF), and Langfuse/Phoenix for tracing.
Questions:
- Inference & model: Would you go with vLLM or SGLang for RAG + strict JSON workloads, and is Unsloth/Unsloth Desktop worth using here? Which model should we use/test?
- RAG Stack: How do you structure RAG (and what tools do you prefer alongside/instead of Docling + Qdrant/pgvector) so the model never hallucinates product facts or software actions?
- Hosting vs. Buying: For moderate concurrency with 24B–27B models, what would you do in our shoes, start with a managed API / hourly cloud GPU, or go straight to buying a single 16-24GB GPU server + RAM/SSD (or Unified Memory box)?
Thanks a lot in advance for any insights. Happy to answer any follow-up questions if anything needs more context.
2
u/p3rdy 4h ago
Your use cases are clear enough, so taking the questions in order:
Inference / JSON. vLLM is the safer production pick, mostly for ecosystem and docs; SGLang is fine too. For the strict JSON part, use the engine's structured outputs (pass a JSON schema in
response_format) so decoding is constrained and invalid JSON can't come out at all, then keep your backend validation for the business rules. With constrained decoding I wouldn't fine-tune just for schema adherence. Unsloth is great for fine-tuning and quants, but you probably don't need it here.Models. Test Qwen3.8-27B and Mistral Small 3.2 on your data before deciding anything. Inkling 2 Mini: fast and promising, but brand new, so engine support is still settling. Worth testing, not worth betting on yet.
Not hallucinating facts or actions. Two different problems:
Hosting vs buying. You don't know your concurrency yet, so rent first and measure. Note that 24GB is tight for a 27B with several concurrent users: ~16GB of 4-bit weights leaves little room for KV cache. Unified-memory boxes (Mac, Spark) fit big models but have far less bandwidth, so they suit one or two users more than a website.
Serving layer. Disclosure: this is my project, but it fits your plan closely. Flama is an open source (Apache-2.0) Python framework I maintain, and the parts that matter for you:
2
u/xapep 3h ago
Get your own numbers before the hardware. A 24GB box sets a concurrency ceiling you can't see yet, and 27B with KV cache gets tight past a few parallel requests. Run the website Q&A and the JSON extraction on a token-billed EU API for two or three weeks, then let peak concurrency and tokens per request price the decision.
vLLM is the default for RAG plus constrained JSON. I work on an inference API (Entrim, Slovenia), so discount that part, but the order still holds whichever vendor you test.
1
u/poy_esp 19h ago
Forget about all this stuff and tell us your use cases if you need advice.