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.9.tar.gz
(8.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
File details
Details for the file bdh_cq-0.0.9.tar.gz.
File metadata
- Download URL: bdh_cq-0.0.9.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0811f7a74fda28642f41ab4af989eae8f906b64bdd80c63aa2346174616e435
|
|
| MD5 |
9a61391777f9f801981c1e87665a8ebe
|
|
| BLAKE2b-256 |
acf45b475934a0c64beb678771915f13d51374c659942a270d6cf3a3b62411f7
|
File details
Details for the file bdh_cq-0.0.9-py3-none-any.whl.
File metadata
- Download URL: bdh_cq-0.0.9-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ddded77fc532940ce9739de995e006f4538f8aca5f5e4ca8daad3938cad7978
|
|
| MD5 |
d475e49e677867c0185047f3d9579d4c
|
|
| BLAKE2b-256 |
73277aa9239d0dc0c35bb8e01ecc71f444e6abbc03d4ee242d9bab490d501270
|