Downloads · 30 days
3
4% of all-time downloads
koharachan/RainChan-Q1
RainChan-Q1 is a question answering model from koharachan. Use it when the input is a question plus a passage. The card lists the license as apache-2.0.
Downloads · 30 days
3
4% of all-time downloads
All-time downloads
79
Public
Parameters
3.1B
6.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6.2 GB · 100%
From the Hugging Face model README
RainChan-一个有思想的Ai
RainChan-Q1 是一个融合了中英文能力的对话与问答模型,基于强大的 Qwen2.5-3B 基础模型进行进一步训练或微调。该版本(Q1)在保持原始模型广泛知识的基础上,优化了特定任务的表现(如代码理解、结构化问答、政治内容等)。
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "koharachan/RainChan-Q1" # 或你的本地路径
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
inputs = tokenizer("你好,请介绍一下你自己。", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))