PyTorch + HuggingFace code for RetoMaton: "Neuro-Symbolic Language Modeling with Automaton-augmented Retrieval" (ICML 2022), including an implementation of kNN-LM and kNN-MT

knn-lm 开源项目推荐(5 个)
knn-lm 话题在 GitHub 上没有填写简介,这里按 Star 数汇总最相关的热门仓库。
热门项目 全部 5
GitHub 共 5 个仓库,已全部展示PyTorch code for the RetoMaton paper: "Neuro-Symbolic Language Modeling with Automaton-augmented Retrieval" (ICML 2022)
Your language model forgets everything. Sillage gives it a 4 MB memory that persists across sessions, no gradients, no fine-tuning, no growing index. Beats an unbounded kNN-LM at 1/13 the storage (perplexity 31 → 17). CPU-only, fully reproducible, four preprints with Zenodo DOIs.
A 28M-parameter transformer trained from scratch on a laptop, paired with a kNN retrieval memory it can lean on while writing — and a learned gate that decides when to trust it. PyTorch and NumPy only.
🖥️ Build and customize your coding environment with mt-code, a lightweight terminal-based editor featuring LSP support, plugins, and syntax highlighting.
关于这个话题
- 清单按 Star 数挑选该话题下最热门的 5 个项目,对应的话题主页见 https://github.com/topics/knn-lm。
- 该话题在 GitHub 上共有 5 个仓库, 这里呈现的是其中最具代表性的 5 个,不是全量列表。
- 星标与复刻数以 GitHub 上的实时数字为准。
- 当前 5 个项目累计 373 Star,覆盖 1 种主要语言。
- 中文简介由本站编译整理,可点「查看原文」对照项目方提供的原始说明。