/ Модель

Характеристики

Контекст
8 192 токена
Параметры
2,3 млрд
Размер весов
3,7 ГБ
Архитектура
qwen · dense
Опубликована
27 июл 2024

noname-ai-v2_5-light

Генерация текстаТекст → текст3 профессии

Дообученная облегчённая модель Noname AI генерирует код игровых навыков по описанию их эффектов.

19скачиваний за 30 дней0лайковвеса обновлены9 авг 2024

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Noname AI v2.5 Light — модель генерации текста, созданная для проекта Noname AI. Она преобразует описание эффектов навыка в код навыков; модель дообучена на базе QWen и содержит 2,3 млрд параметров. Репозиторий использует формат safetensors, а максимальная длина контекста составляет 8192 токена.

Модель предназначена для создания кода навыков по заданным эффектам и доступна для локального запуска на CPU или NVIDIA GPU, а также для развёртывания веб-интерфейса на Streamlit. Облегчённая версия рассчитана на более скромные ресурсы, однако README не уточняет поддерживаемые языки запросов и конкретную среду выполнения создаваемого кода.

Автор предупреждает, что сгенерированный код может содержать ошибки, избыточные фрагменты или лишние символы и требует ручной проверки. README ограничивает заявленное использование обучением и обменом знаниями и просит не использовать модель в коммерческих или незаконных целях; сведения о лицензии в метаданных отсутствуют.

Сценарии применения

  • генерация кода навыка по описанию его эффектов
  • подготовка черновика кода для игрового навыка
  • создание вариантов реализации эффекта навыка

Ограничения

Сгенерированный код может содержать ошибки и требует ручной проверки. README просит не использовать модель в коммерческих или незаконных целях; лицензия в предоставленных данных не указана.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

切换到中文版本

Switch to English Version

Noname AI

Projects related to Noname AI/Noname AI, involving AI programs aimed at generating Noname skill codes by inputting skill effects.

modelscope Online Experience

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.

Configuration Requirements

To better meet usage requirements, please try to meet the following requirements:

  • Computer (required)
  • Hard disk storage space of 20G or more (required)
  • If using the full non-quantized version/GPU version lazy one-click package, for computers with NVIDIA graphics cards, GPU inference is used, requiring half of the graphics memory + computer physical memory (physical memory does not include virtual memory) >= 16G
  • If using the full non-quantized version/CPU version lazy one-click package, CPU inference is used, requiring memory (including virtual memory) to be as close as possible to >= 32G for computers without graphics cards
  • If using the lightweight version/GPU version lightweight lazy one-click package, for computers with NVIDIA graphics cards, GPU inference is used, requiring half of the graphics memory + computer physical memory (physical memory does not include virtual memory) >= 4G
  • If using the lightweight version/CPU version lightweight lazy one-click package, CPU inference is used, requiring memory (including virtual memory) to be as close as possible to >= 12G for computers without graphics cards

Usage

Full Model Method

  1. Install Python and the corresponding Python compiler.

    • Note: Python compatible versions are 3.8, 3.9, 3.10, 3.11. Please do not install versions that are too high or too low.
  2. Enter the following command in the terminal to install the required environment:

    pip install -r requirements.txt
    
  3. 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'])
  1. If automatic downloading fails, you can manually download the model files and modify "huskyhong/noname-ai-v2" to the corresponding location in the code.
    Download links for the second-generation model:

Lazy One-Click Package

Web Version/Server Deployment

  • Install Python
  • Install dependencies
pip install -r requirements.txt
  • Install Streamlit
pip install streamlit
  • Allow port 8501 on the server (can also be changed to others, corresponding to webdemo.py file)
  • Run webdemo
streamlit run webdemo.py

Training

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.

Web Version/Server Example

webdemo1 webdemo2

Notes

  • AI generation is subject to uncontrollable factors, and the generated code does not guarantee 100% effectiveness. Bugs, redundant code, or additional special characters may still occur and require manual modification.
  • (Important) Follow AI specifications. This AI model is for learning and communication purposes only. Please do not use it for illegal or commercial purposes. The purpose of releasing this model is to encourage better learning and communication, and all related information involved in the model is public. I bear no responsibility for malicious use of this AI model.

Other Content

If you have any related questions, please raise them in the official GitHub issue.

Demo Images

These demo images are based on version 2.3 release.
demo

Sponsorship

  • Shamelessly begging for sponsorship sponsor

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
QWenLMHeadModel
Ревизия весов
67b8ead

0 моделей