---
title: X-Live-Base
canonical_url: "https://www.modelscope.cn/models/HengtaoWu/X-Live-Base"
md_url: "https://www.modelscope.cn/models/HengtaoWu/X-Live-Base.md"
repository: HengtaoWu/X-Live-Base
last_updated: 2026-11-23
license: apache-2.0
pipeline_tag: text-generation
tasks:
  - text-generation
model_type:
  - qwen3_moe
architectures:
  - Qwen3MoeForCausalLM
base_model:
  - Qwen/Qwen3-30B-A3B-Instruct-2507
base_model_relation: finetune
parameters: 30.5B
tensor_type:
  - BF16
library_name:
  - pytorch
  - transformer
  - safetensors
language:
  - zh
  - en
downloads: 11
stars: 0
tags:
  - conversational
  - function-calling
  - tool-use
  - qwen3
  - moe
---

# X-Live-Base

> X-Live-Base - HengtaoWu 在 ModelScope 开源的模型。X-Live-Base is a bilingual conversational language model built upon Qwen3-30B-A3B-Instruct-2507 through supervised fine-tuning and reinforcement learning. It supports natural Chinese–English dialogue, clarification…

HengtaoWu/X-Live-Base 是 ModelScope 魔搭社区上的 30.5B 参数text-generation模型，采用 apache-2.0 许可，基于 Qwen/Qwen3-30B-A3B-Instruct-2507 构建。

- **Repository**: HengtaoWu/X-Live-Base
- **License**: apache-2.0
- **Tasks**: text-generation
- **Parameters**: 30.5B
- **Base model**: Qwen/Qwen3-30B-A3B-Instruct-2507
- **Tags**: conversational, function-calling, tool-use, qwen3, moe
- **Downloads**: 11
- **Stars**: 0
- **Last updated**: 2026-11-23

Source: https://www.modelscope.cn/models/HengtaoWu/X-Live-Base

---

# X-Live Base

<p align="center">
  <a href="https://github.com/HengtaoWu/xlive"><img src="https://img.shields.io/badge/GitHub-X--Live-181717?logo=github&logoColor=white" alt="GitHub"></a>
  <a href="https://huggingface.co/HengtaoWu/X-Live-Base"><img src="https://img.shields.io/badge/🤗%20Hugging%20Face-X--Live%20Base-FFD21E" alt="Hugging Face"></a>
  <a href="https://www.modelscope.cn/models/HengtaoWu/X-Live-Base"><img src="https://img.shields.io/badge/ModelScope-X--Live%20Base-624AFF" alt="ModelScope"></a>
  <a href="https://huggingface.co/HengtaoWu/X-Live-Dual"><img src="https://img.shields.io/badge/🤗%20Hugging%20Face-X--Live%20Dual-FFD21E" alt="X-Live Dual on Hugging Face"></a>
  <a href="https://www.modelscope.cn/models/HengtaoWu/X-Live-Dual"><img src="https://img.shields.io/badge/ModelScope-X--Live%20Dual-624AFF" alt="X-Live Dual on ModelScope"></a>
</p>

X-Live Base is a bilingual conversational model for natural frontend dialogue
and asynchronous task coordination. It can converse directly with the user or
emit one of four native tool calls:

- `delegate`: start a background task;
- `update`: change an active task;
- `inspect`: check an active task;
- `cancel`: stop an active task.

X-Live Base uses a single autoregressive stream: natural language and any tool
call are generated by the same model. For independently decoded Dialogue and
Tool streams, see [X-Live Dual](https://huggingface.co/HengtaoWu/X-Live-Dual).

## Transformers Quickstart

```bash
pip install torch transformers accelerate safetensors
```

Run the following script from the downloaded model directory:

```python
import json
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_path = "."

tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForCausalLM.from_pretrained(
    model_path,
    torch_dtype=torch.bfloat16,
    device_map="auto",
).eval()

with open("tools.json", encoding="utf-8") as file:
    tools = json.load(file)

with open("system_prompt.txt", encoding="utf-8") as file:
    system_prompt = file.read().strip()

messages = [
    {
        "role": "system",
        "content": system_prompt,
    },
    {
        "role": "user",
        "content": (
            "Could you find me a nonstop flight from Shanghai to Seattle next Friday evening?"
        ),
    }
]

text = tokenizer.apply_chat_template(
    messages,
    tools=tools,
    tokenize=False,
    add_generation_prompt=True,
    enable_thinking=False,
)
inputs = tokenizer(
    text,
    add_special_tokens=False,
    return_tensors="pt",
).to(model.device)

with torch.inference_mode():
    output = model.generate(
        **inputs,
        max_new_tokens=512,
        do_sample=False,
    )

response = tokenizer.decode(
    output[0, inputs.input_ids.shape[1]:],
    skip_special_tokens=True,
)
print(response)
```

The repository already includes the tokenizer, chat template, English system
prompt, and four Tool schemas needed by the model.

## Model Files

```text
config.json                         model configuration
model-00001-of-00013.safetensors    merged model weights
...
model-00013-of-00013.safetensors
model.safetensors.index.json        weight index
tokenizer.json                      tokenizer
chat_template.jinja                 conversation and Tool format
system_prompt.txt                   frontend system prompt
tools.json                          native Tool schemas
xlive_protocol.json                 runtime protocol metadata
```

## License

X-Live Base is released under the Apache License 2.0. The Qwen base model and
other components retain their respective upstream terms.
