quartodoc integration

This commit is contained in:
Dan Saunders
2025-03-14 16:16:07 +00:00
committed by Dan Saunders
parent c907ac173e
commit e4fd7aad0b
18 changed files with 1005 additions and 1 deletions

View File

@@ -0,0 +1,38 @@
# utils.tokenization { #axolotl.utils.tokenization }
`utils.tokenization`
Module for tokenization utilities
## Functions
| Name | Description |
| --- | --- |
| [color_token_for_rl_debug](#axolotl.utils.tokenization.color_token_for_rl_debug) | Helper function to color tokens based on their type. |
| [process_tokens_for_rl_debug](#axolotl.utils.tokenization.process_tokens_for_rl_debug) | Helper function to process and color tokens. |
### color_token_for_rl_debug { #axolotl.utils.tokenization.color_token_for_rl_debug }
```python
utils.tokenization.color_token_for_rl_debug(
decoded_token,
encoded_token,
color,
text_only,
)
```
Helper function to color tokens based on their type.
### process_tokens_for_rl_debug { #axolotl.utils.tokenization.process_tokens_for_rl_debug }
```python
utils.tokenization.process_tokens_for_rl_debug(
tokens,
color,
tokenizer,
text_only,
)
```
Helper function to process and color tokens.