/ Модель

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

Контекст
32 768 токенов
Параметры
7,1 млрд
Размер весов
15,4 ГБ
Лицензия
GPL 3.0
Архитектура
qwen2 · dense
Опубликована
2 апр 2024

Qwen1.5-7B-Translator

Генерация текстаТекст → текст

Дообученная на профессиональных документах модель Qwen1.5-7B для перевода между китайским и английским языками.

10скачиваний за 30 дней2лайкавеса обновлены3 апр 2024

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Qwen1.5-7B-Translator — модель для перевода китайских и английских документов, созданная DeyangKong на основе Qwen1.5-7B-Chat путём supervised fine-tuning на дополнительных данных для перевода. Она ориентирована на перевод профессиональных текстов и терминологии из физики, химии, биологии, компьютерных технологий и материаловедения. Модель использует плотную архитектуру Qwen2ForCausalLM с 7,1 млрд параметров, поддерживает чатовый шаблон и контекст длиной до 32 768 токенов.

В README сообщается, что на внутренней оценке переводов профессиональных документов модель немного уступила DeepL и заметно превзошла Alma; также авторы отмечают обработку длинных текстов свыше 3000 символов. Это результаты авторской оценки, а не независимая гарантия качества. Модель распространяется в формате safetensors по лицензии GPL-3.0.

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

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

Ограничения

Оценка качества в README проведена авторами на 99 профессиональных документах с использованием GPT-4 как судьи и не является независимым подтверждением заявленных результатов. Описанные данные и назначение сосредоточены на переводе между китайским и английским языками.

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

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

Открыть на Hugging Face

Qwen1.5-7B-Translator

image/png

Model Details

Model Description

This model is a SFT(Supervised Fine-Tuning) version of Qwen1.5-7B-Chat, trained on an additional Chinese-English document translation data set. After fine-tuning, the model's accuracy in translating professional terms in physics, chemistry, biology and other disciplines has been greatly enhanced, and can even be comparable to professional translation tools such as deepL.

We used LLaMA-Factory for fine-tuning. In order to avoid catastrophic forgetting after model fine-tuning, we tried to diversify the fine-tuning instructions and incorporated a small number of multi-round long conversations as the training set.

More details about training and evaluation can be found at: https://github.com/DeyangKong/TransLingoBridge

Uses

Direct Use

The instruction format of this model is qwen.

This format is available as a chat template via the apply_chat_template() method:

import torch
from transformers import AutoModelForCausalLM
from transformers import AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("DeyangKong/Qwen1.5-7B-Translator", torch_dtype=torch.float16, device_map="auto", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("DeyangKong/Qwen1.5-7B-Translator", trust_remote_code=True)

sentence = "Photocatalytic reduction of nitrate with TiO2 progressed with varied kinetics and to different products based on applied wavelengths."
messages = [
    {"role": "system", "content": "You are a helpful assistant."},
    {"role": "user", "content": f"As a professional translator, you're requested to convey the following English text into Chinese, ensuring the exactitude of specialized terminology:\n{sentence}"}
]
encodeds = tokenizer.apply_chat_template(messages, return_tensors="pt")
generated_ids = model.generate(encodeds, max_new_tokens=1024)
decoded = tokenizer.batch_decode(generated_ids)
print(decoded[0])

We used a variety of prompt words to build the data set during fine-tuning. One of them is used in the above code. Some prompt words are as follows:

Given your proficiency in English-Chinese translation, please ensure the following text is translated with precision, especially concerning technical and specialized terms:
Utilize your translation skills to accurately transform the following English sentences into Chinese, paying special attention to the proper translation of technical terms:
As a professional translator, you're requested to convey the following English text into Chinese, ensuring the exactitude of specialized terminology:
In your role as a language translation authority, accurately interpret the next English segment into Chinese, with emphasis on the precise translation of terminologies:
You are tasked with translating the subsequent English text into Chinese, as a translation specialist, ensuring that all technical terms are accurately translated:
Drawing upon your translation expertise, please meticulously translate the following English text into Chinese, ensuring the fidelity of specialized terms:

Evaluation

We compared the translation capabilities of deepL, Alma and Qwen1.5-7B-Translator on 99 professional documents involving several fields such as computer, chemistry, biology, materials science, etc., and used GPT4 as the judge for ranking.

The results It is shown that our model is only slightly inferior to deepL and far superior to Alma.

At the same time, our model also solves the problem of Alma’s translation errors on long texts of more than 3000 characters.

More details about training and evaluation can be found at: https://github.com/DeyangKong/TransLingoBridge

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей