Downloads · 30 days
3
1% of all-time downloads
huskyhong/noname-ai-v2_5
noname-ai-v2_5 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.
Downloads · 30 days
3
1% of all-time downloads
All-time downloads
278
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
Projects related to Noname AI/Noname AI, involving AI programs aimed at generating Noname skill codes by inputting skill effects.
Due to limited computing power, the online experience version is only a lightweight CPU version with limited precision. If needed, please choose the GPU version or full version for inference. Fine-tuned from QWen.
To better meet usage requirements, please try to meet the following requirements:
Install Python and the corresponding Python compiler.
Enter the following command in the terminal to install the required environment:
pip install -r requirements.txt
Run the program using the following Python code. The model will be automatically downloaded, and the code defaults to version 2.0 full version.
from transformers import AutoModelForCausalLM, AutoTokenizer
from transformers.generation import GenerationConfig
tokenizer = AutoTokenizer.from_pretrained("huskyhong/noname-ai-v2_5", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("huskyhong/noname-ai-v2_5", device_map="auto", trust_remote_code=True).eval() # Load the model using GPU
# model = AutoModelForCausalLM.from_pretrained("huskyhong/noname-ai-v2_5", device_map="cpu", trust_remote_code=True).eval() # Load the model using CPU
5model.generation_config = GenerationConfig.from_pretrained("huskyhong/noname-ai-v2_5", trust_remote_code=True) # You can specify different generation lengths, top_p, 和 other related hyperparameters
# For the first generation model, replace "huskyhong/noname-ai-v2_5" with "huskyhong/noname-ai-v1". For lightweight version v2.5 model, replace "huskyhong/noname-ai-v2_5" with "huskyhong/noname-ai-v2_5-light"
prompt = "请帮我编写一个技能,技能效果如下:" + input("请输入技能效果:")
response, history = model.chat(tokenizer, prompt, history = [])
print(response)
prompt = "请帮我编写一张卡牌,卡牌效果如下::" + input("请输入卡牌效果:")
response, history = model.chat(tokenizer, prompt, history = [])
print(response)
Alternatively, you can use Hugging Face's pipeline for inference.
from transformers import pipeline, AutoTokenizer, AutoModelForCausalLM, GenerationConfig
generator = pipeline(
"text-generation",
model="huskyhong/noname-ai-v2_5",
tokenizer="huskyhong/noname-ai-v2_5",
device=0, # Choose GPU device. If you want to use CPU, you can set device=-1
trust_remote_code=True
)
prompt = "请帮我编写一个技能,技能效果如下:" + input("请输入技能效果:")
response = generator(prompt, max_length=50, top_p=0.95) # You can adjust parameters such as generation length, top_p as needed
print(response[0]['generated_text'])
prompt = "请帮我编写一张卡牌,卡牌效果如下:" + input("请输入卡牌效果:")
response = generator(prompt, max_length=50, top_p=0.95) # You can adjust parameters such as generation length, top_p as needed
print(response[0]['generated_text'])
your_model_name with your actual model path.pip install -r requirements.txt
pip install streamlit
streamlit run webdemo.py
Training requires installing new dependencies:
pip install peft deepspeed
Clone the project和download the v2.3 version of the model files, taking the lightweight version as an example:
git lfs install
git clone https://github.com/204313508/noname_llm.git
git clone https://huggingface.co/huskyhong/noname-ai-v2_3-light
cd noname_llm/finetune
Modify the parameters required for training in the finetune script, such as model and dataset locations, then enter the following command to start training:
bash finetune.sh
Please refer to the Fine-tuning Guide for detailed steps.

If you have any related questions, please raise them in the official GitHub issue.
These demo images are based on version 2.3 release.

