Downloads · 30 days
0
GMagoLi/test-upload
test-upload is a text generation model from GMagoLi. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
0
Access
Public
Updated Sep 18, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.json2.8 MB · 100%
From the Hugging Face model README
这是一个基于Qwen架构的语言模型,使用VERL框架进行SFT训练。
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
# 加载模型和tokenizer
model = AutoModelForCausalLM.from_pretrained(
"GMagoLi/test-upload",
trust_remote_code=True,
torch_dtype=torch.bfloat16,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("GMagoLi/test-upload", trust_remote_code=True)
# 推理示例
prompt = "你好,请介绍一下你自己。"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(
**inputs,
max_length=512,
temperature=0.7,
do_sample=True,
pad_token_id=tokenizer.eos_token_id
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
该模型在代码生成和对话任务上表现出色,特别适合:
如果使用了本模型,请考虑引用:
@misc{qwen-repocoder-sft,
title={Qwen RepoCoder SFT Model},
author={Your Name},
year={2025},
howpublished={\url{https://huggingface.co/GMagoLi/test-upload}}
}