Instructions to use dd101bb/latent-tts-codi with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dd101bb/latent-tts-codi with Transformers:
# Load model directly from transformers import AutoTokenizer, CODIGPT2 tokenizer = AutoTokenizer.from_pretrained("dd101bb/latent-tts-codi") model = CODIGPT2.from_pretrained("dd101bb/latent-tts-codi") - Notebooks
- Google Colab
- Kaggle
Add pipeline tag and GitHub link
#1
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,20 +1,26 @@
|
|
| 1 |
---
|
| 2 |
-
library_name: transformers
|
| 3 |
-
license: mit
|
| 4 |
base_model:
|
| 5 |
- openai-community/gpt2
|
|
|
|
|
|
|
|
|
|
| 6 |
---
|
|
|
|
| 7 |
# CODI Model
|
| 8 |
|
| 9 |
<div align="center">
|
| 10 |
|
| 11 |
[](https://huggingface.co/dd101bb/latent-tts-codi)
|
|
|
|
| 12 |
|
| 13 |
</div>
|
| 14 |
|
| 15 |
## Overview
|
| 16 |
|
| 17 |
-
**CODI** (Continuous Chain-of-Thought via Self-Distillation) is a latent reasoning model based on GPT-2 that extends the base architecture with an optional projector module for enhanced hidden state representations. This model is part of the [Parallel Test-Time Scaling for Latent Reasoning Models](https://
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
## Model Details
|
| 20 |
|
|
@@ -43,6 +49,8 @@ huggingface-cli download dd101bb/latent-tts-codi --local-dir checkpoints/codi
|
|
| 43 |
|
| 44 |
### Basic Usage
|
| 45 |
|
|
|
|
|
|
|
| 46 |
```python
|
| 47 |
from transformers import AutoTokenizer
|
| 48 |
from src.generation_mixin import LatentGenerationMixin, LatentGenerationConfig
|
|
@@ -197,12 +205,6 @@ Run evaluation using the provided scripts:
|
|
| 197 |
./run_tests.sh
|
| 198 |
```
|
| 199 |
|
| 200 |
-
## Model Card
|
| 201 |
-
|
| 202 |
-
- **Paper**: [Parallel Test-Time Scaling for Latent Reasoning Models](https://arxiv.org/abs/2510.07745)
|
| 203 |
-
- **HuggingFace**: [dd101bb/latent-tts-codi](https://huggingface.co/dd101bb/latent-tts-codi)
|
| 204 |
-
- **Benchmarks**: GSM8K Test, GSM8K Hard, MultiArith
|
| 205 |
-
|
| 206 |
## Citation
|
| 207 |
|
| 208 |
If you use this model, please cite:
|
|
|
|
| 1 |
---
|
|
|
|
|
|
|
| 2 |
base_model:
|
| 3 |
- openai-community/gpt2
|
| 4 |
+
library_name: transformers
|
| 5 |
+
license: mit
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
---
|
| 8 |
+
|
| 9 |
# CODI Model
|
| 10 |
|
| 11 |
<div align="center">
|
| 12 |
|
| 13 |
[](https://huggingface.co/dd101bb/latent-tts-codi)
|
| 14 |
+
[](https://github.com/ModalityDance/LatentTTS)
|
| 15 |
|
| 16 |
</div>
|
| 17 |
|
| 18 |
## Overview
|
| 19 |
|
| 20 |
+
**CODI** (Continuous Chain-of-Thought via Self-Distillation) is a latent reasoning model based on GPT-2 that extends the base architecture with an optional projector module for enhanced hidden state representations. This model is part of the [Parallel Test-Time Scaling for Latent Reasoning Models](https://huggingface.co/papers/2510.07745) framework.
|
| 21 |
+
|
| 22 |
+
- **Paper:** [Parallel Test-Time Scaling for Latent Reasoning Models](https://huggingface.co/papers/2510.07745)
|
| 23 |
+
- **Code:** [Official GitHub Repository](https://github.com/ModalityDance/LatentTTS)
|
| 24 |
|
| 25 |
## Model Details
|
| 26 |
|
|
|
|
| 49 |
|
| 50 |
### Basic Usage
|
| 51 |
|
| 52 |
+
Note: The following code requires the generation logic provided in the [official repository](https://github.com/ModalityDance/LatentTTS).
|
| 53 |
+
|
| 54 |
```python
|
| 55 |
from transformers import AutoTokenizer
|
| 56 |
from src.generation_mixin import LatentGenerationMixin, LatentGenerationConfig
|
|
|
|
| 205 |
./run_tests.sh
|
| 206 |
```
|
| 207 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 208 |
## Citation
|
| 209 |
|
| 210 |
If you use this model, please cite:
|