Downloads · 30 days
15
19% of all-time downloads
snowfly/glm3-QLoRA-adgen
glm3-QLoRA-adgen is a text generation model from snowfly. 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.
在ChatGLM3-6B模型上使用QLoRA在HasturOfficial/adgen数据集上进行广告生成微调 HasturOfficial/adgen是广告生成数据集 - 微调使用一张4090显卡 - 使用nf4量化数据类型加载模型,开启双量化配置,以bf16混合精度训练 - perdevicetrainbatchsize = 8 - gradientaccumulationsteps = 4 - learningrate =…
Downloads · 30 days
15
19% of all-time downloads
All-time downloads
77
Public
Parameters
6.2B
12.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors12.5 GB · 100%
From the Hugging Face model README
在ChatGLM3-6B模型上使用QLoRA在HasturOfficial/adgen数据集上进行广告生成微调
HasturOfficial/adgen是广告生成数据集
from transformers import AutoTokenizer, AutoModel
model_name_or_path = "snowfly/glm3-QLoRA-adgen"
tokenizer = AutoTokenizer.from_pretrained(pretrained_model_name_or_path=model_name_or_path, trust_remote_code=True)
model = AutoModel.from_pretrained(pretrained_model_name_or_path=model_name_or_path, trust_remote_code=True, device='cuda')
model = model.eval()
input_text = '类型#裙*版型#显瘦*风格#文艺*风格#简约*图案#印花*图案#撞色*裙下摆#压褶*裙长#连衣裙*裙领型#圆领'
response, history = model.chat(tokenizer=tokenizer, query=input_text, history=[])
print(response)