whatisgithub

What is arc-encoder?

kyutai-labs/arc-encoder — explained in plain English

Analysis updated 2026-08-08 · repo last pushed 2026-07-30

33PythonAudience · researcherComplexity · 4/5ActiveLicenseSetup · hard

In one sentence

Compresses text so language models can process longer documents without needing bigger models. Trains a small encoder that shrinks text roughly 8x before feeding it to models like Mistral or Llama.

Mindmap

mindmap
  root((repo))
    What it does
      Compresses text 8x
      Extends model context
      Pretrained encoders included
    Tech stack
      Python
      Multi-GPU training
      Mistral and Llama models
    Use cases
      Question answering
      Retrieval augmented generation
      Long document processing
    Audience
      AI researchers
      Engineers
    Licensing
      Mixed licenses
      Non-commercial retrieval tools

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Feed longer documents into existing language models without upgrading to a bigger one.

USE CASE 2

Build question-answering systems that include more source material as context.

USE CASE 3

Compress Wikipedia passages or reference docs for retrieval-augmented generation apps.

USE CASE 4

Train a custom text encoder tailored to your preferred open-weights model.

What is it built with?

PythonPyTorchCUDAMistralLlamaOlmo

How does it compare?

kyutai-labs/arc-encoder410979729/scope-recallabdullahselek/reducepy
Stars333333
LanguagePythonPythonPython
Last pushed2026-07-302022-04-03
MaintenanceActiveDormant
Setup difficultyhardmoderatemoderate
Complexity4/53/53/5
Audienceresearcherdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires multi-GPU infrastructure, specific open-weights model checkpoints, and manual configuration as this is research code rather than a polished product.

Core code appears permissive, but the retrieval utilities are under a non-commercial license, so check carefully before any commercial use.

So what is it?

ARC-Encoder is a tool that compresses text so large language models can process more of it at once, like fitting a longer document into the model's memory without needing a bigger model. The core benefit is letting you feed substantially more context (longer documents, more background material) into models like Mistral 7B or Llama 3.1 8B before hitting memory or speed limits. The way it works is by training a small encoder model that sits in front of the main language model. This encoder takes chunks of text and compresses them into a condensed representation, roughly 8 times smaller than the original, which the main model can still read and understand. Think of it as a translator that summarizes text into a format the big model consumes efficiently. The project comes with pretrained encoders you can download and use directly, or you can train your own from scratch on your preferred model. This is primarily aimed at AI researchers and engineers working on retrieval-augmented generation, question answering, or any application where context length is a bottleneck. For example, if you're building a system that feeds Wikipedia passages into a model to answer trivia questions, ARC-Encoder could let you include more source material without upgrading to a larger, more expensive model. The project includes evaluation scripts for exactly these kinds of QA benchmarks, along with long-context retrieval tasks. The project is built around multi-GPU distributed training and closely integrates with specific open-weights models (Mistral, Llama, Olmo). It comes with pretrained checkpoints trained on 2.6 billion tokens, and the architecture shares components between the encoder and decoder, which keeps things modular. The retrieval utilities are licensed separately under a non-commercial license, which is worth noting if you're considering commercial use. This is research code accompanying a published paper rather than a polished product, so expect some manual setup and configuration.

Copy-paste prompts

Prompt 1
Set up ARC-Encoder with a pretrained checkpoint and compress a long document so I can feed it into Mistral 7B for question answering.
Prompt 2
Train a custom ARC encoder model on Llama 3.1 8B using my own text corpus with multi-GPU distributed training.
Prompt 3
Run the ARC-Encoder evaluation scripts on a QA benchmark to compare compressed context versus full context accuracy.
Prompt 4
Use ARC-Encoder to compress 50k tokens of Wikipedia passages down to roughly 6k tokens and then query them with a language model.

Frequently asked questions

What is arc-encoder?

Compresses text so language models can process longer documents without needing bigger models. Trains a small encoder that shrinks text roughly 8x before feeding it to models like Mistral or Llama.

What language is arc-encoder written in?

Mainly Python. The stack also includes Python, PyTorch, CUDA.

Is arc-encoder actively maintained?

Active — commit in last 30 days (last push 2026-07-30).

What license does arc-encoder use?

Core code appears permissive, but the retrieval utilities are under a non-commercial license, so check carefully before any commercial use.

How hard is arc-encoder to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is arc-encoder for?

Mainly researcher.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.