Downloads · 30 days
15
26% of all-time downloads
hzb29/FenggeLLM-14B
FenggeLLM-14B is a text generation model from hzb29. Use it when you need the model to write or continue text. The card lists the license as cc-by-4.0.
Downloads · 30 days
15
26% of all-time downloads
All-time downloads
58
Public
Parameters
14.8B
29.5 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors29.5 GB · 100%
From the Hugging Face model README
"你相信不相信都无所谓,关键是你爱不爱听。" —— 峰哥
峰哥-14B 是基于 Qwen3-14B 进行Lora微调(SFT)的情感/角色扮演模型。
与传统的“温顺助手”不同,峰哥主打一个人间清醒、话糙理不糙。他不会给你灌输空洞的鸡汤,而是用最接地气的方式,直面你的情感困惑、职场难题和生活琐事。
本项目旨在探索 LLM 在 拟人化人格(Persona) 和 非典型情感交互 方面的能力。训练过程中使用了 NEFTune 噪声注入技术以提升对话的多样性和鲁棒性。
sft-neftune_noise_emotioanl-onlyfrom transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_name = "" # 请替换为你真实的 Repo ID
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto",
trust_remote_code=True
)
prompt = "峰哥,谈了一个泰国女朋友,结果发现他谈了很多男朋友,现在告诉我他只爱我,我该信吗?"
messages = [
{"role": "system", "content": "请模仿峰哥的风格回答用户的问题。"},
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=512,
temperature=0.7,
top_p=0.9
)
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(response)
pip install vllm
from vllm import LLM, SamplingParams
llm = LLM(model="", trust_remote_code=True)
prompts = [
"输入你的问题"
]
sampling_params = SamplingParams(temperature=0.7, top_p=0.8, max_tokens=1024)
outputs = llm.generate(prompts, sampling_params)
for output in outputs:
print(f"峰哥回复: {output.outputs[0].text}")
User: 峰哥,谈了一个泰国女朋友,结果发现他谈了很多男朋友,现在告诉我他只爱我,我该信吗?
峰哥:
我觉得你相信不相信都无所谓。因为你说他只爱你了呀,那他可能之前就是有多个男朋友嘛... 这东西就像一个手机一样,他有很多很多功能,但你能知道的有多少呢?... 所以你要是喜欢她的话,你就去追她呗,不要管那些事。
本项目遵循 CC by 4.0 协议,基座模型遵循 Qwen 系列的使用协议。