How Open-Weight LLMs Change AI Infrastructure and the Compute Supply Chain
When a Chinese model vendor releases the full weights of its flagship model, AI capability shifts from hosted APIs toward self-hosted deployments. This article explains how open weights differ from open source, and the license and hardware constraints of running a 70B-parameter model in-house. It also shows how to size GPU memory, KV cache, throughput and concurrency, and which inference optimizations, parallelism strategies and security practices matter. Finally, it traces how self-hosting reshapes demand across the AI compute supply chain, from accelerators and servers to memory, networking and power, and outlines a four-stage rollout path.
1. Background: From Calling an API to Owning the Model
In early November, a major Chinese model vendor released the full weights of its flagship large language model, triggering widespread discussion in overseas technical communities. Developers kept coming back to one question: what does this mean for us?
The answer is fairly straightforward. Until now, organizations accessed large-model capabilities in two main ways: calling a vendor’s API, or using a closed-source commercial model. The model ran on the provider’s infrastructure. Customers paid by usage and carried almost none of the operations burden. With open weights, developers can download the complete parameter files and deploy, run and optimize the model wherever sufficient compute is available. AI capability delivery has therefore expanded from “consuming a service” to include “owning the model.”
One distinction is worth keeping in mind. Better model capabilities drive demand across the compute industry over the long term, but short-term market moves also depend on risk appetite, capital flows and whether expectations materialize. Technical buzz does not guarantee a one-way rally in a sector, and a pullback does not necessarily signal a reversal of the industry trend. These are separate questions and should not be conflated.
2. Open Weights vs. Open Source
In technical discussions, “open weights” is often loosely called “open source,” but the two are very different.
- What you get: open weights provide the complete parameters of a trained model, usually along with model documentation, a tokenizer and inference examples. Training code, data mixtures and the full training pipeline are typically not included.
- Reproducibility: you can run inference, fine-tune, distill and quantize the weights, but you cannot “re-run the training” from them alone.
- Licensing: open weights usually come with a usage license. It may separate commercial from non-commercial use, set user-scale thresholds, or require derivative models to be named or attributed in a specific way. Always check the official license terms: technically usable and legally usable are not the same thing.
- Engineering responsibility shifts to you: once you hold the weights, GPU memory, bandwidth, concurrency and operations costs all return to your organization.
A quick back-of-the-envelope calculation:
- A 70B-parameter model stored in FP16 (2 bytes per parameter) needs about 140 GB just for the weights. Since 1 GB ≈ 10⁹ bytes in decimal terms, that is roughly 130 GiB. A single 80 GB accelerator cannot hold it. You need multi-GPU tensor parallelism, or 4-bit quantization (about 35 GB of weights).
- For mixture-of-experts (MoE) architectures, keep two metrics separate: total parameter count determines memory usage, while activated parameter count determines compute demand. Do not conflate them.
3. Why Self-Host? Value and Constraints
Three Sources of Value
1. Data sovereignty and compliance control
In data-sensitive industries such as finance, healthcare and government, inference runs inside your own or a dedicated environment, so data never leaves your security perimeter. This helps meet data classification and tiering requirements, along with cross-border data transfer rules.
2. A cost structure you can reshape
API access is pay-as-you-go, which suits volatile traffic or demand that has not been validated yet. Self-hosting relies mainly on fixed investments in compute, data center or cloud resources, and operations staff. Once call volume is stable and large enough, per-token costs can fall as utilization improves. Self-hosting fits high-volume, steady, long-context workloads such as 24/7 customer support, large-scale document review and code completion.
3. Deep customization and controlled iteration
You can run full-parameter or parameter-efficient fine-tuning, distillation, quantization and pruning, or attach a private knowledge base (RAG) to fit industry terminology and business rules. You also control model versions, upgrade schedules and rollbacks. That avoids the output drift that can follow a silent model upgrade on the provider’s side.
Three Practical Constraints
- Upfront investment and scale thresholds: the break-even point for self-hosting depends heavily on call volume, model size and hardware prices. It has to be calculated case by case.
- Engineering capability: inference performance tuning, GPU scheduling, fault recovery and capacity planning all require a specialized team.
- Licensing and evaluation burden: commercial licenses, output compliance and ongoing evaluation all become your responsibility.
In practice, most organizations combine both approaches. Sensitive core workloads run on private deployments, while traffic spikes and long-tail demand are handled elastically through cloud APIs.
4. Key Steps for Private Deployment
4.1 Model Evaluation and Selection
Do not rely on general-purpose leaderboards alone. Build an evaluation set that matches your own task distribution. Cover typical questions, edge cases and adversarial inputs. Score candidates on four dimensions: task quality, inference cost, deployment effort and license compliance.
Also check how well the model is supported by your target inference frameworks. That includes attention implementations, quantization formats and multi-GPU parallelism.
4.2 Hardware and Capacity Planning
Capacity planning starts with turning rough estimates into quantitative formulas.
GPU memory needs can be approximated as:
GPU memory ≈ weight memory + KV cache memory + framework and temporary overheadweight memory ≈ activated parameters × bytes per parameter+ total unactivated expert parameters × bytes per parameter(FP16: 2 bytes per parameter; 4-bit: ~0.5 bytes per parameter,plus quantization metadata)KV cache memory ≈ 2 × layers × KV heads × head_dim × sequence length × concurrency× bytes per elementframework ≈ typically 10%–20% of weight memory; depends on the framework
KV cache memory grows linearly with both concurrency and context length. It is often the first bottleneck in long-context, high-concurrency scenarios.
For example, with 64 layers, 8 KV heads, a head dimension of 128 and FP16 storage, each token needs about 1 MB of KV cache. A single request with a 128K context therefore needs roughly 128 GB of KV cache, far more than the weights themselves. You must cap concurrency and context length accordingly.
Throughput and latency can be estimated as follows:
Max single-request generation throughput (tokens/s)≈ memory bandwidth ÷ GPU memory data read per generated tokenMax requests ≤ target total throughput ÷ single-request throughputConcurrency per GPU ≈ available KV cache memory ÷ KV cache per request
During generation, producing each output token requires reading the full set of weights. This makes decoding a classic memory-bound workload. With small batches on a single GPU, the first levers for improving throughput are memory bandwidth and quantization, not raw compute.
def estimate_capacity(n_layers, n_kv_heads, head_dim, ctx_len,bytes_per_elem=2, gpu_mem_gb=80, gpu_count=2):"""Simplified estimate of per-request KV cache and max concurrency(framework overhead ignored)"""kv_per_token = 2 * n_layers * n_kv_heads * head_dim * bytes_per_elemkv_per_req = kv_per_token * ctx_len / (1024 ** 3) # KV cache per request (GiB)# Example assumes 90% of total GPU memory is usable, all reserved for KV cache.# In practice, subtract the memory used by weights.usable = gpu_mem_gb * gpu_count * 0.9max_concurrency = int(usable // kv_per_req)return kv_per_req, max_concurrencykv_size, conc = estimate_capacity(n_layers=64, n_kv_heads=8, head_dim=128, ctx_len=131072)print(f"Per-request KV cache: ~{kv_size:.1f} GiB, theoretical max concurrency: ~{conc}")
4.3 Inference Engines and Parallelism
Mainstream inference engines typically support the following optimizations. Combine them based on your workload:
- Paged KV cache management: allocate GPU memory in blocks on demand to reduce fragmentation and improve utilization.
- Continuous batching: assemble batches dynamically at each iteration step. Finished requests leave immediately, which reduces head-of-line blocking.
- Prefix caching: shared system prompts, few-shot examples and knowledge-base documents are computed only once. This significantly lowers time to first token (TTFT).
- Quantization: weights in 8-bit or 4-bit, and KV cache in 8-bit, trade precision for memory savings. Validate quality loss with your business evaluation set.
- Speculative decoding: a small draft model or multi-token prediction guesses ahead, and the main model verifies the guesses in batches.
- Sampling and reproducibility: default sampling is stochastic. When results must be reproducible, fix the random seed and use consistent decoding parameters.
For parallelism:
- Tensor parallelism (TP): best suited to high-bandwidth interconnects within a node.
- Pipeline parallelism (PP): best suited to scaling across nodes.
- Expert parallelism (EP): best suited to large-scale MoE models.
4.4 Serving and Observability
Put a model gateway in front of the inference service. It can centralize authentication, rate limiting, quotas and canary routing. It can also support tiered routing, sending simple requests to small models and complex ones to larger models.
Observability should cover at least:
- Time to first token (TTFT) and time per output token (TPOT)
- Output tokens per second
- GPU utilization and GPU memory usage
- Queueing time, timeout rate and error code distribution
Bring logs, metrics and traces into a unified logging and monitoring/alerting system. Define SLA thresholds and autoscaling policies.
4.5 Security and Compliance
- Trusted sources: download weights only from official channels and verify hashes or signatures. This helps prevent tampering and backdoors in model files.
- Input/output protection: at the gateway, detect prompt injection, filter sensitive information and run content safety checks.
- Knowledge-base permissions: RAG retrieval must enforce document-level access control to prevent unauthorized access.
- Regulatory compliance: if you offer generative AI services to the public, check the AI service rules, model or algorithm filing requirements and content labeling rules in each jurisdiction where you operate. Complete any required registrations and security assessments.
4.6 Elastic Cloud Infrastructure and Operations
Teams without their own data centers can combine elastic compute instances with model hosting services on the cloud:
- Scale instances down during quiet periods and automatically scale up during peaks, avoiding idle compute.
- Use object storage for model weights and knowledge-base documents, and a message queue to smooth out demand spikes.
- Platforms such as Baidu AI Cloud offer general-purpose capabilities like model hosting, elastic compute and monitoring/alerting. They can help reduce your infrastructure operations burden. Check the official documentation for specific features and regional availability.
5. From Model Capability to the Compute Supply Chain
The impact of open weights on the industry chain is not as simple as “everyone self-hosts.” It works through gradual shifts in demand structure and deployment models.
5.1 Three Waves of Inference Demand
- From centralized cloud to private deployments: organizations buy accelerators, servers and storage to run their own models. Even if each company’s deployment is smaller than a frontier training cluster, overall demand adds up as adoption grows.
- Long context and multimodality raise resource consumption per unit of work: KV cache memory grows with context length and concurrency. That directly increases demand for GPU memory capacity, memory bandwidth and system memory.
- Capabilities spill over to devices and the edge: as models get stronger, some tasks move down to phones, PCs and cars. Demand for device-side chips should recover gradually once memory cost pressure eases.
5.2 How Demand Reaches Upstream Segments
| Segment | Demand drivers | Main technology directions |
|---|---|---|
| Compute chips | Inference cards, training cards, device-side NPUs | Domestic AI chips ramping up production; maturing toolchains and operator libraries |
| Servers and interconnect | Large-scale deployments, multi-GPU parallelism | High-speed interconnect, rack-scale delivery, liquid cooling |
| Storage | Growth in weights and KV cache; HBM | Enterprise storage expansion, high-bandwidth memory |
| Optical communications and networking | Large-scale parallel inference and training | High-speed optical modules, switch network upgrades |
| Power and power devices | Rising power density per rack | Efficient power delivery, power management |
| Materials and components | Storage and logic capacity expansion | Domestic alternatives for equipment components, broader material categories |
5.3 Domestic Hardware and Mature-Process Nodes
- Domestic alternatives: expanding production and process upgrades drive the adoption of domestic equipment and components. They also support gradual growth in materials demand as capacity ramps up.
- Software ecosystem costs: for domestic AI accelerators to handle real inference workloads, frameworks, operator libraries and support in mainstream inference engines need to be mature. This is both a challenge and an opportunity in the software ecosystem.
- Analog and power devices: as AI demand spreads into devices and industrial settings, analog and power segments built on mature process nodes are likely to see improving demand.
6. Risks and a Realistic View
- Self-hosting is not always cheaper: if GPU utilization stays low for a long time, fixed costs are hard to spread. Self-hosted cost per token can end up higher than API pricing. Track actual cost in terms of “cost per 1,000 tokens” on a regular basis and compare it with elastic API quotes.
- Evaluations go stale: general leaderboards often diverge from real business performance. Keep updating your evaluation sets as the business evolves.
- Models evolve fast: model capabilities are still advancing quickly. Build an abstraction layer that lets you swap models, and avoid tying your system too tightly to a single one.
- Licensing and compliance risk: you need to cover commercial license terms, output compliance and any filing obligations.
- Short-term market volatility: short-term sector moves are driven mainly by risk appetite and capital flows. Whether the industry chain delivers over time depends on orders, capacity, product iteration and valuation. Track fundamental data and avoid chasing rallies or selling in panic.
7. A Phased Rollout Plan
- Phase 1: Evaluate (1–2 weeks). Map business use cases and call volumes, build an evaluation set, confirm license compliance and select a model.
- Phase 2: Validate (3–4 weeks). Deploy at a small scale, run quantization and accuracy regression tests, load-test latency, throughput and long-run stability, and calculate per-token cost.
- Phase 3: Launch (4–6 weeks). Connect the model gateway, roll out gradually and complete monitoring and alerting. Put output review and data masking in place.
- Phase 4: Optimize (ongoing). Tune batching and quantization strategies dynamically, scale capacity with load, and revisit the “self-hosted + cloud” cost mix every quarter.
# Example: hybrid routing between self-hosted inference and cloud APIsdef route_request(req, local_service, cloud_client):"""Route requests by task complexity to balance cost and quality"""if req.task_type in ("chat", "summarize") and len(req.messages) < 32:resp = local_service.chat(req) # High-frequency short requests go to self-hosted inference firstelse:resp = cloud_client.chat(req) # Complex or very long requests go to elastic APIsreturn resp
8. Conclusion
Releasing the full weights of a large model essentially turns “using a model” into “owning and operating a model.” For developers, it is a step up from API consumer to deployer and optimizer. For the industry, it means AI compute demand is spreading from a few centralized clusters across multiple tiers and scenarios. What ultimately creates value is not the weight release itself, but whether organizations can turn model capabilities into stable, compliant and sustainable business outcomes.
