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.14.tar.gz
(12.4 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.14-py3-none-any.whl
(12.5 kB
view details)
File details
Details for the file bdh_cq-0.0.14.tar.gz.
File metadata
- Download URL: bdh_cq-0.0.14.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c533988c681cecfd5d3dcd807c50ff4521ed33df0832d1ef5806196f0bff38f7
|
|
| MD5 |
152ff9c696fa6843303e749fbe2d09f3
|
|
| BLAKE2b-256 |
dfd98ebe7be1d5cd56159f3264d862d99f4b1827b7f176f8f9fc5b43801853f3
|
File details
Details for the file bdh_cq-0.0.14-py3-none-any.whl.
File metadata
- Download URL: bdh_cq-0.0.14-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4607855581b42ae925df5f05616e79681f1f7783922a81c7ab987a91d3278e2c
|
|
| MD5 |
cf6442cf8c95080d888a1825b495e93f
|
|
| BLAKE2b-256 |
f92efa1edeb928f6bb3907d4f6920ddbf4c106c588eb87ca8ee84968edfa1855
|