Downloads · 30 days
3
3% of all-time downloads
huskyhong/noname-ai-v1
noname-ai-v1 is a text generation model from huskyhong. 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
3
3% of all-time downloads
All-time downloads
87
Public
Parameters
7.7B
15.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors15.4 GB · 100%
From the Hugging Face model README
finetuned from Qwen-7B-Chat
from transformers import AutoModelForCausalLM, AutoTokenizer
from transformers.generation import GenerationConfig
tokenizer = AutoTokenizer.from_pretrained("huskyhong/noname-ai-v1", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("huskyhong/noname-ai-v1", device_map="auto", trust_remote_code=True).eval() # 采用gpu加载模型
# model = AutoModelForCausalLM.from_pretrained("huskyhong/noname-ai-v1", device_map="cpu", trust_remote_code=True).eval() # 采用cpu加载模型
model.generation_config = GenerationConfig.from_pretrained("huskyhong/noname-ai-v1", trust_remote_code=True) # 可指定不同的生成长度、top_p等相关超参
while True:
print("请输入技能效果:")
prompt = "请帮我编写一个技能,技能效果如下:" + input()
response, history = model.chat(tokenizer, prompt, history = [])
print(response)