Downloads · 30 days
13
9% of all-time downloads
ricardozhy/Qwen1.5-7B-poem
Qwen1.5-7B-poem is a machine learning model from ricardozhy. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Downloads · 30 days
13
9% of all-time downloads
All-time downloads
146
Public
Parameters
7.7B
15.4 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors15.4 GB · 100%
From the Hugging Face model README
本项目旨在构建一个深度融合中国古诗词文化知识的语言模型基座,为后续在古诗词生成、赏析、问答、翻译等多种下游任务上的指令微调(Instruction-tuning)提供一个强大而坚实的起点。
首先,请确保您已经安装了 transformers、torch 等必要的库。
pip install transformers
您可以直接从 Hugging Face 或 ModelScope 加载模型。
Hugging Face:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "ricardozhy/Qwen1.5-7B-poem"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype="auto",
device_map="auto",
trust_remote_code=True
)
ModelScope:
from modelscope import AutoModelForCausalLM, AutoTokenizer
model_id = "njauzwh/Qwen1.5-7B-poem"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype="auto",
device_map="auto",
trust_remote_code=True
)
本模型使用的核心训练数据来源于 GitHub 开源项目 VMIJUNV/chinese-poetry-and-prose。
为了将该模型的能力应用于实际场景,我们强烈建议开发者在此模型的基座上进行指令微调 (Instruction-tuning)。通过构建特定任务的指令数据集,您可以将 Qwen1.5-7B-poem 适配到以下各类应用中:
本项目采用 Apache License 2.0 许可证。
如果您觉得这个项目对您有帮助,欢迎在 GitHub 上给我们一个 ⭐️ Star,您的支持是我们持续优化的最大动力!
如有任何问题,欢迎通过 GitHub Issues 提交。
特别感谢 VMIJUNV/chinese-poetry-and-prose 项目及其贡献者们整理并提供的宝贵数据集,为本项目提供了坚实的数据基座。