Skip to main content

A simple adapter implementation to transform pretrained Transformer-family models into the Titans architecture.

Project description

RetentionEngine

A simple adapter implementation to transform pretrained Transformer-family models into the Titans architecture.

Experiments Setup

Exp 1: Comparison with Base Models [3B]

Baseline

  • Titans 4B (Gemma3 4B IT)
  • Llama3.2 3B Instruct
  • Qwen3 4B
  • Gemma3 4B IT
  • RAG + Llama3.2 3B Instruct
  • RAG + Qwen3 4B
  • RAG + Gemma3 4B IT

Suggested

  • Atlas-L 3B (Llama3.2 3B Instruct)
  • Atlas-Q 4B (Qwen3 4B)
  • Atlas-G 4B (Gemma3 4B IT)

Exp 2: Comparison with Base Models [8B]

Baseline

  • Titans 9B (Gemma2 9B IT)
  • Llama3.1 8B Instruct
  • Qwen3 8B
  • Gemma3 9B IT
  • RAG + Llama3.1 8B Instruct
  • RAG + Qwen3 8B
  • RAG + Gemma3 9B IT

Suggested

  • Atlas-L 8B (Llama3.1 8B Instruct)
  • Atlas-Q 8B (Qwen3 8B)
  • Atlas-G 9B (Gemma3 9B IT)

Exp 3: Comparison with Recurrent Models [8B]

Baseline

  • Titans 9B (Gemma2 9B IT)
  • Mamba2 8B
  • RWKV6 7B

Suggested

  • Atlas-L 3B (Llama3.2 3B Instruct)
  • Atlas-Q 4B (Qwen3 4B)
  • Atlas-G 4B (Gemma3 4B IT)
  • Atlas-L 8B (Llama3.1 8B Instruct)
  • Atlas-Q 8B (Qwen3 8B)
  • Atlas-G 9B (Gemma3 9B IT)

Build

git clone https://github.com/retentionlabs/RetentionEngine.git
cd RetentionEngine
uv pip sync

Usage

  • See usage.ipynb for usage examples.

Deploy

rm -rf dist/
rm -rf build/
rm -rf *.egg-info

python -m pip install --upgrade pip
pip install flit
python -m flit build

echo "Uploading..."
python -m flit publish

echo "Deployment complete!"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

retentionengine-0.0.1.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

retentionengine-0.0.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file retentionengine-0.0.1.tar.gz.

File metadata

  • Download URL: retentionengine-0.0.1.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for retentionengine-0.0.1.tar.gz
Algorithm Hash digest
SHA256 26d9df768a4d3ba88b44c8f4bf4fc9d52a8527e066447c654d33ee7dcad3feb1
MD5 97686eef1af9f579f5f83aeb1d22a62d
BLAKE2b-256 13d9218490a011e3e1ac2af2d8c137c75cc59b201000b7e10bc91e14fb8c6e8b

See more details on using hashes here.

File details

Details for the file retentionengine-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for retentionengine-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c75d953cd1e5660317b0427cb5ecc1dfa2e72806e001ca8e709ccb749e6836fb
MD5 d4dc77d56b40fa4477b43dd1646c1829
BLAKE2b-256 0f65eb3d0debce78173830989d9b0d3bb936ef6c61e9039c1eecf330293fc538

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page