Downloads · 30 days
122
18% of all-time downloads
mavis8368/Xing4.0-29B-A4B-MTDR
Xing4.0-29B-A4B-MTDR is a text generation model from mavis8368. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This model performs instruction-oriented multi-turn dialogue rewriting in smart home central display scenarios. It takes multi-turn dialogue history and the current user utterance as input, then generates a correct, c…
Downloads · 30 days
122
18% of all-time downloads
All-time downloads
697
Public
Parameters
31.2B
62.4 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors62.4 GB · 100%
How the weights are stored.
BF1631.2B · 100%
From the Hugging Face model README
This model performs instruction-oriented multi-turn dialogue rewriting in smart home central display scenarios. It takes multi-turn dialogue history and the current user utterance as input, then generates a correct, clear, and complete instruction for the current turn.
The rewritten instruction is designed to improve downstream understanding, parsing, and execution. It preserves the user's original intent while resolving ambiguity, completing omitted information, standardizing expression, and aligning the utterance with downstream processing requirements.
| Item | Description |
|---|---|
| Input | Multi-turn dialogue history, current user utterance, optional dynamic rewriting rules |
| Output | A rewritten, normalized, and complete instruction for the current turn |
| Objective | Preserve user intent while improving clarity, completeness, and downstream executability |
| Task Type | Instruction-oriented multi-turn dialogue rewriting |
| Primary Domain | Smart home central display / human-machine dialogue |
This model is intended to be integrated as a component in a larger dialogue pipeline. It can serve as a pre-processing or mid-processing module before downstream intent recognition, slot filling, task planning, device control, or response generation.
The smart home central display scenario is complex and covers multiple specialized capability domains. Rewriting requirements vary significantly across capability types. For example, device control, information query, media playback, schedule management, and home automation may each require different normalization and completion strategies.
To support such diversity, the model is designed to handle:
Instruction rewriting is a critical component of an end-to-end pipeline, with complex processing both upstream and downstream. Therefore, the model must operate under strict latency and concurrency constraints while jointly optimizing:
The model is intended to be compatible with common serving optimizations such as batching, KV cache, quantization, and other deployment-level acceleration techniques, depending on the target runtime.
The model is designed to support runtime rewriting rules and multi-scenario rule compatibility.
Rules may be provided through one or more of the following sources:
Rules can be scoped by:
When multiple rules conflict, the intended resolution strategy may include:
The exact rule schema and conflict-resolution policy should be documented according to your production implementation.
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "Xing4.0-29B-A4B-MTDR"
tokenizer = AutoTokenizer.from_pretrained(
model_id,
trust_remote_code=True
)
model = AutoModelForCausalLM.from_pretrained(
model_id,
trust_remote_code=True,
device_map="auto"
)
messages = [
{
"role": "system",
"content": (
"You are an instruction rewriting model for smart home central displays. "
"Rewrite the current user utterance into a complete, clear, and executable instruction. "
"Preserve the original intent and follow the provided rewriting rules."
)
},
{
"role": "user",
"content": "- User: Turn on the living room light.\n -Bot: OK. -User: Make it brighter. \n\n - Output: "
]
input_ids = tokenizer.apply_chat_template(
messages,
return_tensors="pt",
add_generation_prompt=True
).to(model.device)
outputs = model.generate(
input_ids,
max_new_tokens=128,
do_sample=False
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
{
"history": [
{"role": "user", "content": "- User: Turn on the living room light.\n -Bot: OK. -User: Make it brighter.\n\n - Output: ",
"rules": [
{
"domain": "device_control",
"instruction": "Resolve pronouns and ellipsis using dialogue history."
}
]
}
{
"rewritten_instruction": "Increase the brightness of the living room light."
}
The model was trained on private, domain-specific dialogue data collected from our own smart home central display scenarios. Due to privacy and commercial constraints, the dataset cannot be publicly released. This model card provides a representative example only to illustrate the data format and task definition. No personally identifiable information (PII) is included in the released example.
The training data is formatted as instruction-following samples. Each sample contains:
instruction: A system-level task instruction that defines the role of the dialogue query rewriting expert, the core task, scenario principles, context-dependency rules, special-case handling rules, and output format constraints.input: A multi-turn dialogue history represented as a list of messages. Each message contains a role (user or assistant) and content.output: The final rewritten query that the model should generate for the last user turn.{
"instruction": "You are an intelligent dialogue query rewriting expert...",
"input": [
{"role": "user", "content": "- User: 查询家庭健康" \n -Bot: 请问您想查询哪位家庭成员的什么健康项目"\n -User: 查一下我爸的 \n -Bot: 好的,请问想查询血压、血糖还是心率\n -User: 血压\n-Bot:请问需要查询哪个时间范围的\n -User: 今天的 \n\n -Output:"}
],
"output": "查一下我爸今天的血压"
}
## Limitations and Risks
- Performance may degrade on out-of-domain utterances, rare devices, or unseen rule combinations.
- Ambiguous or conflicting user intents may require system-level disambiguation.
- Dynamic rules must be validated to avoid unsafe or contradictory instructions.
- The model should not be used as the sole decision-maker in safety-critical scenarios.
- Privacy and security risks should be handled at the system level when processing user dialogue data.
## Citation
If you use this model, please cite:
```bibtex
@misc{mavis8368,
title = {Instruction-Oriented Multi-Turn Dialogue Rewriting Model for Smart Home Central Displays},
author = {mavis8368},
year = {2026},
howpublished = {\url{https://huggingface.co/mavis8368/Xing4.0-29B-A4B-MTDR}}
}