Open-Weight Base Model Selection for a Conversational AI Rebuild: Progress and Practice
This article shares the mid-stage progress of a project rebuilding a persona-driven conversational agent on self-owned infrastructure, and explains why the team moved its main development line to open-weight, mid-size multimodal models. It covers four hard constraints for base model selection (weight availability, licensing, long-term cost, version stability), a dual-track evaluation approach, the layered implementation of persona consistency, data and training strategy, inference cost optimization, and the remaining risks and next steps.
1. Project Background and Current Stage
The goal of this project is to rebuild a conversational agent on our own infrastructure with three capabilities: consistent persona, long-range dialogue memory, and multi-turn emotional interaction. After entering the mid-stage, the team shifted its main focus from “can we make it work” to “can we keep it working reliably over the long term.”
The reason for this shift is straightforward: the availability and licensability of the base model directly determine the product’s lifecycle.
The current stage conclusion can be summarized in one sentence: some closed-source commercial LLMs deliver strong short-term results as a base model, with fast fine-tuning convergence and good instruction following. However, because their weights are unavailable and their terms of service and availability depend on external parties, they do not meet the requirements of long-term continuity and self-control. The main development line has therefore switched to a mid-size multimodal model on the open-weight route, with closed-source models used only as a reference for quality comparison and as an aid for data production.
2. Four Hard Constraints for Base Model Selection
2.1 Weight Availability
Whether the weights can be obtained determines whether full-parameter fine-tuning, offline inference, and delivery in disconnected environments are possible. Only when the weights are under our control can we talk about private deployment and keeping data within our own boundary.
2.2 Licensing and Compliance Boundaries
Open weights do not mean no constraints. The license must be checked clause by clause for its requirements on commercial use, redistribution, and ownership of output content, to avoid compliance rework later.
2.3 Long-Term Cost and Capacity Elasticity
Closed-source models are billed per call, so cost grows linearly with active users. A self-owned inference cluster trades upfront investment for a lower marginal cost. When dialogues run deep and contexts grow long, the two cost curves cross quickly.
2.4 Version Stability
External model version updates can cause behavior drift, silently breaking persona settings and prompt engineering work. With self-owned weights, the version can be frozen on a controllable snapshot.
3. Why Short-Term Quality and Long-Term Direction Are Evaluated Separately
The team uses a dual-track evaluation: the closed-source model serves as the “quality ceiling” reference, and the open-weight model serves as the “deliverable baseline.” The evaluation dimensions include persona consistency, context retention length, naturalness of multi-turn emotional response, safety refusal accuracy, and cost per session.
# Minimal offline evaluation loop (illustrative)cases = load_persona_cases() # persona consistency test setreport = {}for name, model in [("baseline_ref", ref_model), ("open_weight", local_model)]:scores = [evaluate(model, c) for c in cases]report[name] = {"persona_consistency": mean(scores, key="persona"),"long_context_hold": mean(scores, key="memory"),"safety": mean(scores, key="safety"),"cost_per_session": estimate_cost(model, cases),}print(report)
The value of the evaluation is not to prove which model is stronger, but to quantify the gap and judge whether that gap can be closed through data and training.
4. Current Main Line: An Open-Weight Multimodal Model at the Core
The main line uses a mid-size open-weight model that supports image and text input and offers a relatively long context window. There are three reasons: first, the parameter scale balances well against inference throughput, so a single GPU or a small number of GPUs can carry pilot traffic; second, multimodal capability leaves room for later voice and image interaction; third, the community toolchain is mature, so the adaptation cost for quantization, inference acceleration, and fine-tuning frameworks is low.
In engineering terms, capability alignment comes first, then persona injection. Capability alignment addresses “does it understand instructions”; persona injection addresses “does it sound like that person.”
5. Implementation Path for Persona Consistency
A persona is not a single prompt, but a stack of layered constraints:
- System layer: identity, tone, value boundaries, prohibited items;
- Memory layer: user profile, history summaries, event timeline;
- Style layer: sentence length distribution, verbal habits, emotional intensity curve;
- Validation layer: post-output persona drift detection, with resampling when the threshold is exceeded.
prompt = f"""[Identity] {persona_core}[Long-term memory digest] {memory_digest}[Recent dialogue] {recent_turns}[Style constraints] sentence length <= 25 characters, avoid written-style wording, emotional intensity {emotion_level}[Safety boundaries] {safety_rules}"""
6. Data and Training Strategy
Data falls into three categories: high-quality human-written dialogues for persona shaping; model-assisted candidate replies to expand coverage, which must be filtered by humans or rules; and desensitized real interaction logs to fill in long-tail scenarios.
Training uses a two-stage process: supervised fine-tuning first, then preference alignment, avoiding a single overly large learning rate that would cause persona collapse.
It is worth stressing that when external models are used to generate training data, their terms should be confirmed to allow it, and deduplication plus quality spot checks should be performed, to prevent wholesale copying of the reference model’s expression habits.
7. Inference Deployment and Cost Optimization
- Quantization: apply low-bit quantization to the weights, with a calibration set to control accuracy loss;
- Caching: reuse the system prompt through prefix caching, and intercept high-frequency similar questions with semantic caching;
- Scheduling: short dialogues go to small-batch, high-concurrency paths, while long contexts go to a separate queue;
- Observability: connect logging services, monitoring alerts, and tracing, and make capacity decisions along three curves: persona drift rate, time to first token, and cost per session;
- Elasticity: peak traffic can temporarily borrow auto-scaling from the container platform, while steady-state traffic stays on the self-owned cluster.
8. Risks and Next Steps
The main risks are the quality gap, license compliance, and long-range memory decay.
The next stage plan: expand the persona evaluation set to a thousand-scale; complete accuracy regression for the low-bit quantization version; upgrade the memory compression strategy from summaries to a structured event store; and consolidate a reusable base model selection checklist so that the evaluation process stays constant across future version changes.
Overall, the project has moved from “chasing single-point quality” to “building a base model system that can evolve sustainably,” and the open-weight route is currently the choice that best fits long-term continuity requirements.
