/ Модель

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

Контекст
256 токенов
Лицензия
MIT
Архитектура
gpt2 · dense
Опубликована
14 дек 2025

cyborg-translator-en-ru

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

Cyborg Translator — компактная GPT-2-подобная модель для экспериментального перевода текстов между английским и русским языками.

105скачиваний за 30 дней2лайкавеса обновлены21 дек 2025

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Cyborg Translator — двуязычная модель для перевода между английским и русским языками, разработанная LoganResearch. Это плотная авторегрессионная Transformer-модель семейства GPT-2 с примерно 300 млн параметров, обученная с нуля на выровненных англо-русских текстах и реализованная как GPT2LMHeadModel. Для токенизации используется собственный BPE-словарь размером 32 тыс. токенов; модель работает с контекстом до 256 токенов и распространяется в формате safetensors. Обучение основано на последовательностном моделировании с супервизией; README описывает корпус из общедоступных английских книг и программно подготовленных и отфильтрованных русских переводов.

Модель предназначена для экспериментов с переводом EN↔RU, изучения влияния токенизатора на качество машинного перевода и образовательных проектов. Она не настроена на выполнение инструкций, может галлюцинировать при неоднозначном вводе и не проходила настройку безопасности. README не рекомендует применять её в производстве или для юридических и медицинских задач. Лицензия — MIT.

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

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

Ограничения

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

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

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

Открыть на Hugging Face

Cyborg Translator (EN ↔ RU)

Overview

This translation model was built from the ground up, starting with raw text data and ending with a fully functional bilingual English ↔ Russian language model. No pretrained translation models were used at any stage. The project emphasizes data curation, tokenizer design, architectural discipline, and alignment through supervised fine-tuning.

Training Procedure

The model was trained end-to-end from random initialization using a causal language modeling objective.

  • Optimizer: AdamW
  • Loss: Cross-entropy (next-token prediction)
  • Training strategy:
    • Stage 1: Monolingual English + Russian language modeling
    • Stage 2: Interleaved bilingual language modeling
    • Stage 3: Bidirectional translation alignment fine-tuning
  • Gradient accumulation used to simulate larger batch sizes
  • Checkpoints saved periodically and manually evaluated
  • Training conducted on consumer-grade GPUs

The focus was on stability, coherence, and alignment rather than maximum scale.

  1. Data Collection & Cleaning

The process began with a corpus of approximately 40 public-domain English books, which were: Cleaned via custom Bash and Python scripts Normalized for punctuation, casing, and encoding

Sentence-segmented and deduplicate Filtered to remove metadata, headers, and non-linguistic content This produced a clean English monolingual corpus suitable for language modeling and later bilingual alignment. 2. Parallel Data Creation (English ↔ Russian) To create bilingual supervision: Clean English sentences were translated into Russian using a controlled automated pipeline Sentence alignment was preserved strictly (1 English sentence ↔ 1 Russian sentence) Additional filtering removed mistranslations, malformed pairs, and length mismatches The result was a high-quality parallel English–Russian dataset suitable for supervised translation training. ⚠️ No pretrained translation models were fine-tuned; the translations were used only as supervision data. 3. Tokenizer Built From Scratch A SentencePiece BPE tokenizer (32k vocab) was trained from scratch on the combined English + Russian corpus. Key properties: Shared multilingual vocabulary Unicode-safe No language-specific hacks Enables cross-lingual parameter sharing This tokenizer was frozen and reused across all training stages. 4. Base Language Model Initialization The model architecture is a GPT-style causal transformer (~300M parameters) initialized randomly (no pretrained weights). Training began with: Standard causal language modeling objective Mixed English and Russian text Strict context length limits aligned with positional embeddings This stage taught the model: Syntax Word order Grammar Cross-lingual token co-occurrence patterns 5. Bilingual Language Modeling After initial convergence, the model was trained on interleaved English and Russian data, allowing it to: Develop internal multilingual representations Share semantic structure across languages Build fluency independently in both languages At this stage, the model was not yet a translator, but a bilingual language model. 6. Translation Alignment Fine-Tuning To convert the bilingual LM into a translator, a structured alignment phase was introduced. Training examples were formatted as:

source sentence target sentence

and the reverse direction:

source sentence target sentence

Key alignment principles: No natural-language instructions No chat formatting Strict conditional generation Low learning rate to preserve fluency This taught the model to: Condition generation on the source language Maintain semantic faithfulness Reduce hallucination while preserving coherence 7. Evaluation & Iterative Refinement The model was evaluated manually and iteratively on: Literal translation accuracy Sentence-level coherence Hallucination frequency Directional stability (EN→RU vs RU→EN) At ~300M parameters, the model achieves: Coherent sentence-level translation Stable grammar Occasional lexical or semantic drift (expected at this scale) This model was trained end-to-end on a self-curated parallel corpus derived from cleaned literary and technical texts.

Model Details

  • Architecture: Transformer (GPT-style causal LM adapted for translation)
  • Parameters: ~300M
  • Precision: FP32
  • Tokenizer: Custom BPE (32k vocab)
  • Framework: PyTorch / Hugging Face Transformers
  • Training Style: Supervised bilingual sequence modeling

Training Data

  • ~40 public-domain English books
  • Extensive text normalization and deduplication
  • Sentence-level alignment
  • Russian translations generated and filtered programmatically
  • Multiple cleaning passes (length, language ID, punctuation, encoding)

Emphasis was placed on corpus hygiene and alignment fidelity.

Intended Use

  • English ↔ Russian translation research
  • Studying effects of tokenizer choice on MT quality
  • Low-resource MT experimentation
  • Educational purposes

Limitations

  • Not instruction-tuned
  • May hallucinate under ambiguous input
  • No safety fine-tuning
  • Not suitable for production or legal/medical use

Alignment Perspective

This project explores how structured data curation and constrained supervision can reduce hallucination and improve faithfulness in small-to-mid-scale language models.

Key alignment-relevant aspects:

  • Conditioning without natural-language instructions
  • Strict source-target alignment
  • Avoidance of RLHF or preference modeling
  • Observation of failure modes under ambiguity

The model is intentionally not instruction-tuned to preserve interpretability of its learned representations.

Reproducibility

Inference example:

from transformers import AutoTokenizer, AutoModelForCausalLM

tok = AutoTokenizer.from_pretrained("LoganResearch/cyborg-translator-en-ru")
model = AutoModelForCausalLM.from_pretrained("LoganResearch/cyborg-translator-en-ru")

inputs = tok("Hello world", return_tensors="pt")
out = model.generate(**inputs, max_new_tokens=100)
print(tok.decode(out[0]))

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
GPT2LMHeadModel
Ревизия весов
79c8b45

0 моделей