---
title: rongxian
canonical_url: "https://www.modelscope.cn/models/firefly123123/rongxian"
md_url: "https://www.modelscope.cn/models/firefly123123/rongxian.md"
repository: firefly123123/rongxian
chinese_name: "荣县知识问答助手"
last_updated: 2025-09-02
license: "Apache License 2.0"
pipeline_tag: text-generation
tasks:
  - text-generation
model_type:
  - qwen2
architectures:
  - Qwen2ForCausalLM
base_model:
  - Qwen/Qwen2.5-3B-Instruct
base_model_relation: finetune
parameters: 3.1B
tensor_type:
  - BF16
library_name:
  - transformer
  - safetensors
  - pytorch
frameworks:
  - Pytorch
language:
  - zh
inference_backends:
  - "deploy_task text/emb"
  - "lmdeploy 0.9.1"
  - "lmdeploy_turbomind 0.9.1"
  - "sglang 0.5.2"
  - "vllm 0.9.2"
downloads: 45
stars: 1
---

# rongxian

> rongxian - firefly123123 在 ModelScope 开源的模型。由中南民族大学风吹半夏实践队（自贡行）团队在四川省自贡市荣县青阳街道办的帮助下制作和训练。使用《荣县旧制统编》、百度百科、荣县人民政府网等数据训练而成。我的功能是专门回答有关荣县历史和当前情况的各种问题。

firefly123123/rongxian 是 ModelScope 魔搭社区上的 3.1B 参数text-generation模型，采用 Apache License 2.0 许可，基于 Qwen/Qwen2.5-3B-Instruct 构建，可用 deploy_task text/emb、lmdeploy 0.9.1、lmdeploy_turbomind 0.9.1 部署。

- **Repository**: firefly123123/rongxian
- **License**: Apache License 2.0
- **Tasks**: text-generation
- **Parameters**: 3.1B
- **Base model**: Qwen/Qwen2.5-3B-Instruct
- **Inference backends**: deploy_task text/emb, lmdeploy 0.9.1, lmdeploy_turbomind 0.9.1, sglang 0.5.2, vllm 0.9.2
- **Downloads**: 45
- **Stars**: 1
- **Last updated**: 2025-09-02

Source: https://www.modelscope.cn/models/firefly123123/rongxian

---

---

# RongXian

## 模型介绍

`RongXian-Qwen` 是一个基于 `Qwen2.5-3B-Instruct` 模型，使用荣县文化问答数据集进行 LoRA 微调得到的专用对话模型。该模型专注于回答与四川省自贡市荣县相关的历史文化、地理经济、旅游特产等多类问题，适用于文化推广、教育辅助和区域智能问答等场景。

## 模型特点

- **基础模型**：Qwen2.5-3B-Instruct
- **微调方式**：LoRA（Low-Rank Adaptation）
- **训练数据**：荣县新旧志、政府公开信息、百度百科等结构化问答对
- **语言**：中文
- **适用任务**：文化问答、地方知识检索、对话生成

## 使用方法

### 通过 ModelScope 调用

```python
from modelscope import AutoModelForCausalLM, AutoTokenizer

model_id = "firefly123123/rongxian"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")

input_text = "介绍一下荣县的大佛"
inputs = tokenizer(input_text, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
```

### 通过 Transformers 调用

```python
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "firefly123123/rongxian"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto")

messages = [
    {"role": "user", "content": "荣县有哪些特产？"}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to("cuda")

outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
```

## 训练数据

数据集包含两个部分：

- 荣县旧志（《荣县旧志统编》）
- 荣县新发展资料（来自荣县人民政府网、百度百科等）

数据格式包括 OpenAI 格式和 Alpaca 格式，涵盖地理、历史、经济、文化、旅游等多个维度。

## 适用场景

- 区域文化教育与推广
- 智能文旅助手
- 地方政策与发展规划问答
- 学术研究与数据挖掘

## 局限性

- 模型主要基于公开文本数据训练，可能存在信息滞后或细节不完整的情况。
- 不支持多模态输入（如图像、音频）。
- 对训练数据范围之外的问题可能回答不佳。

## 作者信息

该模型由中南民族大学风吹斗夏实践队（自贡行）成员训练并发布。

📧 Email：[3478584509@qq.com]  
🌐 GitHub：[https://github.com/hbt123-123]  
🌐 HuggingFace：[https://huggingface.co/firefly123firefly]  
🌐 ModelScope：[https://www.modelscope.cn/profile/firefly123123]

## 免责声明

本模型仅供参考和教育使用，回答内容不代表官方立场。使用者需自行核实关键信息的准确性。模型训练数据来源于公开资料，如涉及版权问题请联系作者处理。

---


SDK下载
```bash
#安装ModelScope
pip install modelscope
```
```python
#SDK模型下载
from modelscope import snapshot_download
model_dir = snapshot_download('firefly123123/rongxian')
```
Git下载
```
#Git模型下载
git clone https://www.modelscope.cn/firefly123123/rongxian.git
```

<p style="color: lightgrey;">如果您是本模型的贡献者，我们邀请您根据<a href="https://modelscope.cn/docs/ModelScope%E6%A8%A1%E5%9E%8B%E6%8E%A5%E5%85%A5%E6%B5%81%E7%A8%8B%E6%A6%82%E8%A7%88" style="color: lightgrey; text-decoration: underline;">模型贡献文档</a>，及时完善模型卡片内容。</p>
