/ Модель

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

Контекст
32 768 токенов
Параметры
7,1 млрд
Размер весов
15,2 ГБ
Лицензия
Apache 2.0
Архитектура
qwen2 · dense
Базовая модель
Qwen2.5-7B-Instruct
Библиотека
transformers
Опубликована
10 янв 2025

ContaLLM-Fashion-7B-Instruct

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

Китайскоязычная модель на базе Qwen2.5-7B-Instruct для генерации маркетинговых текстов в сфере моды и косметики.

37скачиваний за 30 дней2лайкавеса обновлены11 янв 2025

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

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

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

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

ContaLLM-Fashion-7B-Instruct — дообученная ContaAI китайскоязычная языковая модель для маркетинга в индустрии моды и косметики. Она основана на Qwen/Qwen2.5-7B-Instruct, использует плотную архитектуру Qwen2 и содержит 7,1 млрд параметров. Модель принимает текстовые инструкции и генерирует маркетинговые тексты с учётом бренда, товара, темы, преимуществ, хештегов, сценария публикации и желаемой длины. Контекст — до 32 768 токенов; заявленный основной язык — китайский.

Модель предназначена для создания разнообразных маркетинговых материалов и адаптации текста под заданные требования бизнеса. Репозиторий содержит веса в формате safetensors; для загрузки используется Transformers. Лицензия — Apache-2.0.

Разработчики сообщают о мерах безопасности при подготовке данных и обучении, но при генерации нет автоматической фильтрации ответов. Модель может выдавать проблемный контент, поэтому результаты следует проверять и при необходимости фильтровать.

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

  • создание рекламных текстов для модных и косметических товаров
  • подготовка публикаций о продукте по заданным преимуществам и теме
  • генерация маркетинговых материалов с упоминанием бренда
  • подбор хештегов и описания для рекламной кампании
  • адаптация длины маркетингового текста под формат публикации

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

ContaLLM-Fashion-7B-Instruct

ContaLLM-Fashion-7B-Instruct is a large-scale Chinese vertical marketing mode focusing on the fashion industry. You can customize and generate marketing texts according to users' specific marketing needs, brand, selection, content type, article length, topic, selling point, hashtag, scene, etc. Use the LLM's capabilities and training on existing high-quality marketing materials to help companies generate diversified, high-quality marketing content and improve marketing conversion rates.

Model description

  • Model type: A model trained on a mix of publicly available, synthetic and human-annotated datasets.
  • Language(s) (NLP): Primarily Chinese
  • Industry: Fashion Makeup Industry Marketing
  • License: apache-2.0
  • Finetuned from model: Qwen/Qwen2.5-7B-Instruct

Model Stage

IndustryVersionQwen 2.5 7B
Fashionbf16ContaAI/ContaLLM-Fashion-7B-Instruct
Fashion8bitContaAI/ContaLLM-Fashion-7B-Instruct-8bit
Fashion4bitContaAI/ContaLLM-Fashion-7B-Instruct-4bit

Using the model

Loading with HuggingFace

To load the model with HuggingFace, use the following snippet:

from transformers import AutoModelForCausalLM

model = AutoModelForCausalLM.from_pretrained("ContaAI/ContaLLM-Fashion-7B-Instruct")

System Prompt

The model is a Chinese beauty marketing model, so we use this system prompt by default:

system_prompt = '请根据用户提供的营销需求和其他信息写一篇时尚行业的营销推文。'

User Prompt

Users can enter the required marketing needs according to their own needs, non-required including brand, product selection, content type, topics, selling point, hashtag, scenes, content length, which content length has three specifications, respectively, shorter, medium, longer. The details are as follows:

Parameter nameRequiredMeaning and optional range
营销需求requiredFill in your marketing requirements, cannot be blank
品牌optionalFill in your marketing brand, or remove this row from the prompt
选品optionalFill in your product selection, or remove this row from the prompt
内容类型optionalFill in the article type, or remove this row from the prompt
内容长度optionalchoices=['较长', '中等', '较短'], choose what you need, or remove this row from the prompt
话题optionalFill in your marketing topic, or remove this row from the prompt
卖点optionalFill in the selling point for your marketing needs, or remove this row from the prompt
标签optionalFill in the hashtag, or remove this row from the prompt
场景optionalFill in the scenes for your marketing needs, or remove this row from the prompt

Example:

user_prompt = """营销需求:秋冬大包包推荐
品牌:Celine
选品:CELINE托特包
内容类型:产品种草与测评
内容长度:较短
话题:CELINE托特包、秋冬大包包、托特包用途
卖点:慵懒设计、大容量、新款限定设计
标签:CELINE、托特包、新品
场景:日常通勤、妈咪包使用、秋冬搭配"""

Use example (with template)

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "ContaAI/ContaLLM-Fashion-7B-Instruct"
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16, device_map="auto")
tokenizer = AutoTokenizer.from_pretrained(model_name)

system_prompt = '请根据用户提供的营销需求和其他信息写一篇时尚行业的营销推文。'

user_prompt = """营销需求:秋冬大包包推荐
品牌:Celine
选品:CELINE托特包
内容类型:产品种草与测评
内容长度:较短
话题:CELINE托特包、秋冬大包包、托特包用途
卖点:慵懒设计、大容量、新款限定设计
标签:CELINE、托特包、新品
场景:日常通勤、妈咪包使用、秋冬搭配"""

prompt_template = '''<|im_start|>system
{}<|im_end|>
<|im_start|>user
{}<|im_end|>
<|im_start|>assistant
'''

prompt = prompt_template.format(system_prompt, user_prompt)

tokenized_message = tokenizer(
  prompt,
  max_length=1024,
  return_tensors="pt",
  add_special_tokens=False
)

response_token_ids= model.generate(
  **tokenized_message,
  max_new_tokens=1024,
  do_sample=True,
  top_p=1.0,
  temperature=0.5,
  min_length=None,
  use_cache=True,
  top_k=50,
  repetition_penalty=1.2,
  length_penalty=1,
)

generated_tokens = response_token_ids[0, tokenized_message['input_ids'].shape[-1]:]
generated_text = tokenizer.decode(generated_tokens, skip_special_tokens=True)
print(generated_text)

Bias, Risks, and Limitations

The ContaLLM models implemented safety techniques during data generation and training, but they are not deployed automatically with in-the-loop filtering of responses like ChatGPT during inference, so the model can produce problematic outputs (especially when prompted to do so). It is also unknown what the size and composition of the corpus was used to train the base Qwen2.5 models, however it is likely to have included a mix of Web data and technical sources like books and code. The use of the models is at your own risk. You may need to monitor the outputs of the model and take appropriate actions such as content filtering if necessary.

License and use

All Qwen 2.5 ContaAI models are released under Qwen's Qwen 2.5 Community License Agreement.

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen2ForCausalLM
Ревизия весов
f98d457

0 моделей