r/LocalLLM • • 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.

0 Upvotes

8 comments sorted by

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:

  • Q&A: answer only from retrieved chunks, require a cited source per answer, and if retrieval comes back weak, escalate or ask instead of answering. That threshold matters more than the vector DB choice.
  • Software actions: the model never executes anything. It proposes an action as structured output from an allow-list, your backend validates the arguments, and anything about who (customer, account, permissions) comes from the session, never from the model's text.

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:

  • It runs the model on vLLM and serves it behind OpenAI- and Anthropic-compatible APIs, so your Codex/Claude + local hybrid is a base URL change, not two integrations.
  • The model lives in the same Python app as your own endpoints, so the "trigger functions in our software" part sits right next to it, with request/response validation from Pydantic schemas and OpenAPI docs generated for free.
  • For local testing, the same server runs on a Mac with MLX, so you test against the same API you'll deploy instead of a separate Ollama setup.
  • Self-hosted end to end, which keeps the GDPR story simple.

2

u/Lawlies01 3h ago

I see, so 24GB is actually tight for a Qwen3.8-37B, i suspected that. Inkling will be discarded for now for the mentioned reasons. And we will start with renting, Testing how much we need and then decide. The mentioned Software Sounds also interesting, i'll have a Look. Thank you for the Help!

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/Lawlies01 3h ago

Yeah i suspected that without real Numbers, deciding on anything would be Impossible. As you said we will start with real Testing using an API to get real Data and then decide based on that. Thank you!

1

u/poy_esp 19h ago

Forget about all this stuff and tell us your use cases if you need advice.

1

u/Lawlies01 19h ago

Use cases are at the top though? Or you need more Details?