BDH-CQ (wip)
Implementation of BDH-CQ: In-Context Learning with Recurrent Latent Reasoning, proposed by Pathway Research
Install
$ pip install bdh-cq
Usage
import torch
from bdh_cq import BDH
model = BDH(
dim = 512,
num_tokens = 20_000
)
ids = torch.randint(0, 20_000, (2, 1024))
logits = model(ids) # (2, 1024, 20_000)
Citations
@misc{engdahl2026bdhcq,
title = {BDH-CQ: In-Context Learning with Recurrent Latent Reasoning},
author = {Björn Engdahl and Adrian Kosowski and Jan Chorowski and Zuzanna Stamirowska and Przemysław Uznański and Junlin Jiang and Rohan Phadke and Remigiusz Kinas and Richard Zhong},
year = {2026},
eprint = {2608.09888},
archivePrefix = {arXiv},
primaryClass = {cs.NE},
url = {https://arxiv.org/abs/2608.09888}
}
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bdh_cq-0.0.11.tar.gz
(11.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
bdh_cq-0.0.11-py3-none-any.whl
(11.8 kB
view details)
File details
Details for the file bdh_cq-0.0.11.tar.gz.
File metadata
- Download URL: bdh_cq-0.0.11.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75f0c35e999cbcc0eb6f81ca5a1d4780656ffe4c7cea89f47f26e36365010527
|
|
| MD5 |
5bd4f639a276aa09e1a2bd5bfb88b461
|
|
| BLAKE2b-256 |
fc2b93a3b11d6d1c5c71f5af98427d2b600be951abae75f1204ceedd3740c626
|
File details
Details for the file bdh_cq-0.0.11-py3-none-any.whl.
File metadata
- Download URL: bdh_cq-0.0.11-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80ffc33ce2ba2cb414596f39af246c9a0be7d8b15c55569838398129e6ba56ee
|
|
| MD5 |
016c0c9f8a7cf71da0f2d12c971a34ec
|
|
| BLAKE2b-256 |
892bf167070adb9e8b63b9eb14be55ba7ee36590ab345c93ab480932a882df05
|