SShortSingh.
Back to feed

A Practical Guide to Self-Hosting LLMs: Models, Hardware, and Real Cost Math

0
·1 views

A software consultant deployed a 70B-class open-weight language model on two GPU servers for a fintech client in January after their compliance team banned all external AI APIs, requiring that no data leave the company's premises. The setup handled document Q&A, support triage, and internal code review at a fraction of the cost of hosted API services. The consultant has since generalized that deployment into a field guide covering model selection, serving stacks, and hardware cost calculations. Open-weight models are categorized into tiers ranging from small 1–4B parameter models requiring 4–8 GB VRAM to large 30–40B models needing 24–48 GB, each suited to different tasks. The guide also cautions that self-hosting is not always cheaper upfront and is best justified by data sovereignty requirements, high inference volumes, or the need for latency predictability.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

IndexFlow: Open-Source Rust-Based Indexing Infrastructure Launched on GitHub

A developer has released IndexFlow, an open-source indexing infrastructure tool built using the Rust programming language. The project has been shared on Hacker News under the 'Show HN' category, which highlights community-built tools and projects. The source code is publicly available on GitHub under the IndexFlowing organization. At the time of posting, the project had received 3 points and 1 comment on Hacker News, indicating it is in its early stages of community discovery.

0
ProgrammingDEV Community ·

How to Route GPT-5.6 Sol, Terra, and Luna by Task Type to Cut API Costs

OpenAI's GPT-5.6 family comprises three pricing tiers as of August 28, 2026: Sol at $4/$20 per million tokens, Terra at $2/$12, and Luna at $0.20/$1.20 for input and output respectively. At 100,000 tasks of typical size, choosing Luna over Sol can reduce costs from roughly $6,200 to $340, making model selection a significant engineering decision. A Python routing approach assigns models based on task consequence and ambiguity rather than prompt length, since short prompts can conceal complex reasoning needs. Luna suits high-volume, verifiable tasks like classification and extraction, Terra handles everyday coding and document analysis, while Sol is reserved for ambiguous or high-stakes decisions. For multi-stage workflows, the recommended pattern chains Luna for intake, Terra for drafting, and Sol only where unresolved complexity or high consequence demands it.

0
ProgrammingDEV Community ·

Developer Builds Browser-Based Braille Translator Using Unicode Bit Manipulation

A software developer created a fully client-side Braille translator that runs entirely in the browser without sending data to any server. The project revealed that Unicode encodes all 64 Braille dot combinations as code points from U+2800 to U+283F, making each character directly derivable through bit manipulation. A key challenge was handling numbers, since Braille letters double as digits and require a special number sign prefix to distinguish them from letters. The developer ultimately relied on hardcoded character mappings rather than algorithmic derivation, concluding that straightforward solutions often outperform clever ones. The tool was built as part of a broader suite of lightweight, offline-capable browser utilities.

0
ProgrammingDEV Community ·

Five Budget AI Models Benchmarked: Cost, Speed, and Agentic Performance Compared

A hands-on evaluation conducted on August 27, 2026 tested five low-cost AI models — Qwen3.8-Flash, GLM-5.3-Flash, DeepSeek V4 Flash Vision-Exp, Muse Spark 1.2, and Dots3-Note — across cost and capability dimensions. No single model ranked best overall; the optimal choice depends on the use case, such as daily coding, pay-per-use efficiency, large file edits, or web search speed. The GLM-5.3-Flash variant via OpenRouter (opzcode) led all four agentic benchmarks and offered the lowest blended pay-as-you-go cost at $0.05 per million tokens, though that promotional price expires on September 9, 2026. DeepSeek V4 Flash was the fastest at 120 tokens per second and the only model returning server tool use, but carries peak pricing up to $0.23 per million tokens on weekday business hours. Qwen3.8-Flash through the Codex wrapper carried zero marginal cost for users on a prepaid weekly quota, making it the practical default for everyday tasks despite not topping any single benchmark.