← 开源

Code for Quiet-STaR

Python
增长势头
+024 小时新增 Star0.0%
738
Star
91
Fork
+1
本周
1
贡献者
创建于 2024-03-17 · 更新于 2026-12-01 · 今日第 18281 名
主要开发者
README

Quiet-STaR

Code for Quiet-STaR: Language Models Can Teach Themselves to Think Before Speaking.

This project is implemented by simply patching the base Mistral implementation in Huggingface transformers using a new modeling_mistral.py and a new configuration_mistral.py and otherwise applying standard transformers features (e.g. the default Trainer). Our patches were applied to Huggingface's transformers version 4.37.0.dev0 under src/transformers/models/mistral/ -- we cannot guarantee that other changes to their implementation will not affect our implementation, so for reproducibility, we encourage using the same version.

One pitfall to be wary of: the model is not taught not to generate start and end thought tokens. Thus, when performing actual inference, it is necessary to mask these out.

We make an 8-thought-token ahead (including start and end tokens) model available via Huggingface.

排名相邻

AI Rank iPhone 版

随时追踪 AI 模型榜单

在 App Store 下载