UltraMem
Project description
UltraMem
Implementation of UltraMem, improved Product Key Memory design, from Bytedance AI labs
Install
$ pip install ultra-mem
Usage
import torch
from ultra_mem import UltraMem
ultra_mem = UltraMem(dim = 512)
tokens = torch.randn(1, 1024, 512)
out, aux_loss = ultra_mem(tokens) # (1, 1024, 512), ()
Citations
@misc{huang2025ultrasparsememorynetwork,
title = {Ultra-Sparse Memory Network},
author = {Zihao Huang and Qiyang Min and Hongzhi Huang and Defa Zhu and Yutao Zeng and Ran Guo and Xun Zhou},
year = {2025},
eprint = {2411.12364},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2411.12364},
}
@inproceedings{anonymous2025continual,
title = {Continual Learning via Sparse Memory Finetuning},
author = {Anonymous},
booktitle = {Submitted to The Fourteenth International Conference on Learning Representations},
year = {2025},
url = {https://openreview.net/forum?id=LGo7U1m24L},
note = {under review}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ultra_mem-0.0.6.tar.gz
(190.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
File details
Details for the file ultra_mem-0.0.6.tar.gz.
File metadata
- Download URL: ultra_mem-0.0.6.tar.gz
- Upload date:
- Size: 190.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3d6d938b424afe7c8ef5cca3c180099921e5b87d5d29aec907221733a4c2b84
|
|
| MD5 |
ff8fa85aca18435111d007e77272d068
|
|
| BLAKE2b-256 |
dfe82234e8fff245fae46b7612e01173d8241bfa8ac7c1df792d64bb105995c2
|
File details
Details for the file ultra_mem-0.0.6-py3-none-any.whl.
File metadata
- Download URL: ultra_mem-0.0.6-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6a0126f6cc2d45108eed86b67b104d0c0aa5fea0e6b091ab85378ae52dc8fa5
|
|
| MD5 |
b94f0b0cfe3dd0d12a4517f28909463b
|
|
| BLAKE2b-256 |
186228b3d67ecb6f25edfbc48c726f9c978a449f9c91b9dcfe9e642a3c70e337
|