/ Модель

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

Контекст
32 768 токенов
Размер весов
35,1 ГБ
Архитектура
cola2 · dense
Библиотека
transformers
Опубликована
6 ноя 2026

Cola2

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

Cola2 — диалоговая языковая модель ByteDance-Seed для генерации текста с непрерывным семантическим сжатием и диффузионным моделированием латентных блоков.

2 652скачиваний за 30 дней18лайковвеса обновлены6 ноя 2026

Бенчмарки

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

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

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

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

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

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

Cola2 — языковая модель ByteDance-Seed для генерации текста и диалогов. Она сочетает динамическое сжатие семантических фрагментов с непрерывными латентными представлениями и дискретным декодированием токенов: архитектура включает VAE, блоково-каузальный Diffusion Transformer примерно на 4 млрд параметров и span-каузальный декодер. Модель использует Transformers и веса Safetensors; для работы требуется включить custom-код через trust_remote_code=True.

Cola2 предназначена для генерации продолжений и ответов в диалоге, а также для исследовательской оценки языковых моделей на задачах понимания текста. Контекст составляет 32 768 токенов. В карточке описан обученный на 346,03 млрд исходных токенов чекпойнт и результаты оценки по восьми задачам; генерация латентных блоков стохастическая, поэтому результаты и ответы могут различаться между запусками.

Для воспроизведения рекомендованы Python 3.10+, PyTorch 2.2+, Transformers 4.51–4.x, Safetensors 0.4+ и CUDA с bfloat16. Обучающий код в репозитории не включён. Лицензия в предоставленных данных не указана.

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

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

Ограничения

Генерация стохастическая даже при жадном выборе токенов, поэтому результаты могут различаться между запусками. Для инференса требуется custom-код Transformers с trust_remote_code=True; обучающий код в репозитории отсутствует.

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

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

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

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

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

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

Открыть на Hugging Face

Cola2

Cola2 is a continuous-latent language model that co-adapts semantic compression and discrete text generation. It combines a dynamic-compression VAE, a block-causal Diffusion Transformer (DiT), and a span-causal token decoder with latent feedback.

GitHub · 中文说明 · Paper · Project page

Overview

The accompanying paper is titled “Cola2: Co-Adaptive Hierarchical Language Modeling with Continuous Semantic Compression and Balanced Discrete Generation.” Cola2 dynamically groups text into semantic spans, represents each span with a compact continuous latent, generates latent blocks with a DiT, and realizes those latents as discrete tokens.

The released checkpoint was trained on 346.03B source tokens and reaches a reported 60.10 average across eight evaluation tasks. These are reported paper results; individual runs may differ because latent generation is stochastic.

This repository contains:

  • eight sharded safetensors weight files;
  • tokenizer and generation configuration files;
  • Hugging Face Transformers remote-code modules;
  • normalized JSONL data for eight evaluation tasks; and
  • SHA256SUMS for release-file verification.

The inference implementation, command-line tools, examples, benchmark runner, and documentation are maintained in the Cola2 GitHub repository. Training code is not included in this release.

Project overview

Animated preview of the Cola2 method and results.

Click the preview to watch the full video · Open the interactive project page

Method

Cola2 method overview: semantic compression, balanced discrete decoding, detached latent-prior training, and block-wise inference.

Stage I jointly trains the dynamic-compression encoder and the token decoder. Stage II continues adapting that VAE with token-side supervision while an approximately 4B DiT learns the detached latent distribution through Flow Matching. During inference, Cola2 repeatedly proposes a latent block, decodes tokens, and re-encodes the committed text under the fixed span layout so the continuous and discrete histories stay aligned.

Controlled scaling

The controlled study compares AR, LLaDA, Cola DLM, uncompressed Cola-MDM, and compressed Cola2-MDM at matched model size, data, and evaluation settings. Cola-MDM has the strongest aggregate scaling; Cola2-MDM converges more slowly but continues closing its gap to LLaDA after roughly 150B tokens and remains unsaturated at about 210B tokens.

Controlled scaling trends for AR, LLaDA, Cola DLM, Cola-MDM, and Cola2-MDM.

The optimal decoder classifier-free-guidance weight remains near -0.9 for most of training and gradually moves toward zero.

Optimal decoder CFG weight over the controlled scaling run.

Post-pretraining results

The resource-constrained checkpoint uses 346.03B source tokens. Its latent DiT is still unconverged, yet Cola2 reaches a 60.10 eight-task average and exceeds Llama-3-8B on HellaSwag and StoryCloze with more than 43× fewer reported pretraining tokens.

TaskLlama-3-8BQwen2.5-7BQwen3-8B-BaseLLaDA-8B-BaseCola2
Pretraining tokens15T+18T~36T2.3T346B
RACE75.7789.9590.6587.4069.91
NarrativeQA42.7032.9037.3036.0032.70
HellaSwag39.2175.6768.1369.6541.75
StoryCloze79.4995.0997.4495.9480.42
LAMBADA75.7071.8271.2067.9063.00
ARC-Easy90.8696.0097.3593.8587.62
TruthfulQA63.0469.0372.5864.8754.10
MMLU63.1970.1672.3161.2751.32
8-task average66.2575.0875.8772.1160.10

Values are accuracies (%) except for the token row. Models use different training recipes, tokenizers, and token-counting conventions, so this table contextualizes capability rather than isolating the generation paradigm. Each Cola2 task value is the mean of three latent-noise sampled evaluations; see the reference results and reproduction protocol.

Requirements

Python 3.10+, PyTorch 2.2+, Transformers 4.51–4.x, and safetensors 0.4+ are required. CUDA with bfloat16 is recommended.

python -m pip install "torch>=2.2" "transformers>=4.51,<5" "safetensors>=0.4" accelerate

Quick start

This model uses custom Transformers code, so trust_remote_code=True is required.

import torch
from transformers import AutoModel, AutoTokenizer

model_id = "ByteDance-Seed/Cola2"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModel.from_pretrained(
    model_id,
    trust_remote_code=True,
    torch_dtype=torch.bfloat16,
    low_cpu_mem_usage=True,
).to("cuda").eval()

prompt = "Question: What is the capital of France? Answer:"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
generator = torch.Generator(device=model.device).manual_seed(42)

with torch.inference_mode():
    output = model.generate(**inputs, generator=generator)

answer = tokenizer.decode(
    output[0, inputs.input_ids.shape[1] :],
    skip_special_tokens=True,
)
print(answer)

Cola2 is a base model, not an instruction-tuned chat assistant.

Default generation preset

Without overrides, generate() uses the released paper preset:

  • 8-step low-noise-biased Euler DiT schedule;
  • DiT classifier-free guidance (CFG) scale 10;
  • decoder CFG scale -0.9;
  • one latent span per decoder chunk;
  • dynamic duration and latent feedback;
  • greedy token selection; and
  • max_new_tokens=32.

Greedy token selection does not make generation deterministic: latent generation starts from Gaussian noise. Pass a seeded torch.Generator when comparing outputs.

Command line

Clone and install the source repository to use the included chat and benchmark scripts:

git clone https://github.com/ByteDance-Seed/Cola2.git
cd Cola2
python -m pip install -e .

export COLA2_MODEL_PATH=ByteDance-Seed/Cola2
bash scripts/run_chat.sh

Use /reset to clear local chat history and /quit to exit.

Evaluation

The eval_data/ directory contains normalized JSONL files for ARC-Easy, HellaSwag, LAMBADA, MMLU, NarrativeQA, RACE, Story Cloze, and TruthfulQA. To run the 200-example smoke benchmark from a source checkout:

export COLA2_MODEL_PATH=ByteDance-Seed/Cola2
export GENERATE_TASK_DATA_DIR=/path/to/downloaded/cola2/eval_data
bash scripts/run_benchmark_quick.sh --models cola2

For the full benchmark grid and three-seed paper protocol, see the evaluation documentation and reproduction protocol. The original paper seeds are not published, so small differences from the reference results are expected.

Download and verify

hf download ByteDance-Seed/Cola2 --local-dir /path/to/cola2
cd /path/to/cola2
sha256sum -c SHA256SUMS

Documentation

Citation

Please cite the Cola2 arXiv paper. BibTeX and machine-readable metadata are provided in CITATION.md and CITATION.cff.

License

The repository code is licensed under the Apache License 2.0. Model weights, tokenizer assets, benchmark datasets, and other third-party materials remain subject to their respective terms. See NOTICE for attribution details.

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

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

0 моделей