Downloads · 30 days
7
28% of all-time downloads
xmindai/xm-phi-stfRL
xm-phi-stfRL is a machine learning model from xmindai. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft.
xm-phi-stfRL 是由 XMindAI 基于微软开源模型 Phi-4 微调的大语言模型,采用 PEFT(参数高效微调)技术和强化学习优化(RLHF)。该模型在通用任务场景下表现出色,适用于文本生成、问答、情感分析等任务。通过高效参数微调技术,显著提升模型性能,同时降低计算资源消耗。
Downloads · 30 days
7
28% of all-time downloads
All-time downloads
25
Public
Parameters
14.7B
29.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors29.6 GB · 100%
From the Hugging Face model README
xm-phi-stfRLxm-phi-stfRL 是由 XMindAI 基于微软开源模型 Phi-4 微调的大语言模型,采用 PEFT(参数高效微调)技术和强化学习优化(RLHF)。该模型在通用任务场景下表现出色,适用于文本生成、问答、情感分析等任务。通过高效参数微调技术,显著提升模型性能,同时降低计算资源消耗。
microsoft/Phi-4使用该模型进行文本生成:
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_name = "xmindai/xm-phi-stfRL"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto")
# 示例
text = "请用中文介绍人工智能的应用场景。"
inputs = tokenizer(text, return_tensors="pt").to("cuda")
output = model.generate(**inputs, max_length=512, do_sample=True, top_p=0.9, temperature=0.7)
print(tokenizer.decode(output[0], skip_special_tokens=True))
Congliu/Chinese-DeepSeek-R1-Distill-data-110k-SFT
Phi-4 模型架构,采用自回归生成方式。