/ Модель

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

Контекст
32 768 токенов
Параметры
494 млн
Лицензия
MIT
Архитектура
qwen2 · dense
Базовая модель
Qwen2.5-0.5B-Instruct
Опубликована
18 фев 2025

Qwen2.5-0.5B-Chunk-Compressor

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

Дообученная Qwen2.5-0.5B-Instruct сжимает текстовые фрагменты для компактного представления в RAG-системах.

18скачиваний за 30 дней5лайковвеса обновлены18 фев 2025

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

cnmoro/Qwen2.5-0.5B-Chunk-Compressor — дообученная модель Qwen2.5-0.5B-Instruct для сжатия фрагментов текста. Она предназначена для подготовки более компактных и удобных для чтения фрагментов, сохраняющих информацию для систем поиска с дополненной генерацией (RAG). Модель построена на плотной архитектуре Qwen2ForCausalLM и содержит 494 млн параметров; нативная длина контекста — 32 768 токенов.

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

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

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

Ограничения

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

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

This is Qwen2.5-0.5B-Instruct finetuned to perform the compression of chunks of text.

The goal is to keep the information of each chunk in a RAG system more compressed and easier to read.

The usage of this template is strict

Sample inference:

from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "cnmoro/Qwen2.5-0.5B-Chunk-Compressor"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name).to("cuda")

prompt = """<|im_start|>system
Você deve compactar textos sem necessidade de legibilidade para humanos, mas mantendo informações essenciais compreensíveis para outro modelo de linguagem.

Regras para compressão:
Remova palavras desnecessárias como artigos, preposições e pronomes quando possível, desde que a compreensão seja preservada.
Preserve informações essenciais (nomes, locais, ações, conceitos-chave).
Reduza expressões complexas mantendo o significado.
Use listas e separadores para organizar as informações de forma eficiente.
Remova redundâncias e detalhes secundários que não impactam a compreensão geral.<|im_end|>
<|im_start|>user
Texto para compressão:
<Input>
Cleaning the toilet is a task that doesn't interest people. Many, however, pray
for technology that can save them from the unpleasant mission. Apparently, those
prayers were answered: a group of Chinese scientists developed the concept of a
self-cleaning toilet and managed to make it a reality. Thanks to 3D printing,
researchers at Huazhong University of Science and Technology have managed to
revolutionize the unpleasant household chore. The self-cleaning toilet, known
as “ARSFT”, an acronym for “abrasion-resistant super slippery toilet flush” — the
technology that allows automatic cleaning — emerged from a complex combination
of plastic and grains of sand that repel water. In plain English, the technology
ensures that no substance sticks to the surface. Therefore, in addition to being
a salvation for many, this can be a more sustainable alternative to conventional
toilets. The website New Scientist interviewed one of the project's scientists,
Yike Li, who created the self-cleaning toilet. According to Li, the Chinese used,
in addition to the combination of plastic and grains of sand, a laser to bring the
particles together, thus creating the 3D printed self-cleaning toilet. After printing,
the researchers used silicon oil to lubricate the surface of the toilet, managing
to penetrate it due to the structure of the model. This generated the toilet's
self-cleaning capacity, with the following materials leaving no marks after
flushing: Milk; Yogurt; Honey; Muddy water; Starch gel mixed with porridge.
Chinese scientists also tested the self-cleaning toilet with synthetic feces,
using a mixture of miso, yeast, peanut oil and water, managing to imitate human
excrement. Although it may be strange that scientists work to create toilet technologies,
several seemingly “unnecessary” innovations can have a major global impact.
The self-cleaning toilet created by Chinese researchers can considerably reduce water waste.
According to Chinese scientists, the self-cleaning toilet can withstand a thousand scraping
cycles thanks to its super slippery capacity. Therefore, the self-cleaning toilet has
a new flushing method that minimizes water consumption – and waste. The Daily Mail
points out that, since its invention in the 18th century, although the toilet has
increased hygiene, a significant amount of water is required due to the adhesion
between the surface of the toilet and human feces and urine. Worldwide, toilet
flushes correspond to 141 billion liters of water daily. Therefore, in addition
to saving a valuable resource for humanity, the self-cleaning toilet also has another
environmental benefit. In places such as public and chemical bathrooms, especially
where there is no connection to the sanitation system, the self-cleaning toilet
appears as an ideal solution.
</Input><|im_end|>
<|im_start|>assistant
Texto comprimido:
<Output>
"""

inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=384, temperature=0.5, do_sample=True)

input_length = inputs.input_ids.shape[1]
generated_tokens = outputs[0, input_length:]
generated_text = tokenizer.decode(generated_tokens, skip_special_tokens=True)

# Remove the stop token from the generated text
generated_text = generated_text.split("</Output>")[0]

print(generated_text)
# Output text:
# - Toilet cleaner - China developed self-cleaning toilet technology.
# - 3D printing - recycled material repels water, prevents sticking.
# - Self-cleaning toilet - reduces water use, waste, improves hygiene.
# - Environmental benefits: reduced water usage globally (141 billion liters/day), reduces resource waste.
# - Public/private bathroom solutions - ideal solution for areas lacking sanitation systems.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей