---
title: finetuned_Xunzi_Qwen2_1d5B_for_ancient_text_generation
canonical_url: "https://www.modelscope.cn/models/chostem/finetuned_Xunzi_Qwen2_1d5B_for_ancient_text_generation"
md_url: "https://www.modelscope.cn/models/chostem/finetuned_Xunzi_Qwen2_1d5B_for_ancient_text_generation.md"
repository: chostem/finetuned_Xunzi_Qwen2_1d5B_for_ancient_text_generation
chinese_name: "现代文转古文大模型"
last_updated: 2024-08-23
pipeline_tag: text-generation
tasks:
  - text-generation
model_type:
  - qwen2
architectures:
  - Qwen2ForCausalLM
parameters: 1.5B
tensor_type:
  - BF16
library_name:
  - safetensors
inference_backends:
  - "deploy_task text/emb"
  - "lmdeploy 0.9.1"
  - "lmdeploy_turbomind 0.9.1"
  - "sglang 0.5.2"
  - "vllm 0.9.2"
downloads: 342
stars: 3
---

# finetuned_Xunzi_Qwen2_1d5B_for_ancient_text_generation

> finetuned_Xunzi_Qwen2_1d5B_for_ancient_text_generation - chostem 在 ModelScope 开源的模型。将现代汉语转化为古汉语，显得更有文采。

chostem/finetuned_Xunzi_Qwen2_1d5B_for_ancient_text_generation 是 ModelScope 魔搭社区上的 1.5B 参数text-generation模型，可用 deploy_task text/emb、lmdeploy 0.9.1、lmdeploy_turbomind 0.9.1 部署。

- **Repository**: chostem/finetuned_Xunzi_Qwen2_1d5B_for_ancient_text_generation
- **Tasks**: text-generation
- **Parameters**: 1.5B
- **Inference backends**: deploy_task text/emb, lmdeploy 0.9.1, lmdeploy_turbomind 0.9.1, sglang 0.5.2, vllm 0.9.2
- **Downloads**: 342
- **Stars**: 3
- **Last updated**: 2024-08-23

Source: https://www.modelscope.cn/models/chostem/finetuned_Xunzi_Qwen2_1d5B_for_ancient_text_generation

---

# Model Card for Model ID

输入现代汉语句子，生成古汉语风格的句子。试用：https://modelscope.cn/studios/chostem/ancient_Chinese_text_generator


## Model Details

### Model Description

基于[荀子基座大模型](https://github.com/Xunzi-LLM-of-Chinese-classics/XunziALLM)，采用“[文言文（古文）- 现代文平行语料](https://github.com/NiuTrans/Classical-Modern)”中的部分数据进行LoRA微调训练，可以将现代汉语转化为古汉语，显得更有文采。

微调代码和过程参见本模型的[GitHub界面](https://github.com/JianXiao2021/ancient_text_generation_LLM)

### Model Sources

本模型已发布到 [Hugging Face](https://huggingface.co/cofeg/Finetuned-Xunzi-Qwen2-1.5B-for-ancient-text-generation/) 和 [ModelScope](https://modelscope.cn/models/chostem/finetuned_Xunzi_Qwen2_1d5B_for_ancient_text_generation/) 上

## Uses

可以直接访问我的 [ModelScope 空间](https://modelscope.cn/studios/chostem/ancient_Chinese_text_generator) 或 [Hugging Face 空间](https://huggingface.co/spaces/cofeg/ancient_Chinese_text_generator_1.5B)试用。生成时间可能长达一两分钟，请耐心等待。

如果想要本地运行或进一步微调，参考本模型的[GitHub界面](https://github.com/JianXiao2021/ancient_text_generation_LLM)

### Direct Use

本模型基于基座模型微调，并不具备聊天功能，仅用于文本生成。
本模型的微调输入数据具有如下格式：“现代文：……。 古文：”，且现代文仅包含一个句子。本地直接生成时需保证输入为此格式。
