-
Notifications
You must be signed in to change notification settings - Fork 100
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description:
The Python SDK currently provides a .tokenize() method to convert text into token IDs, but there is no .detokenize() (decode) method to convert token IDs back to text. This feature is important for chunking workflows, debugging custom inputs/outputs, and for compatibility with other token-based workflows (similar to Hugging Face's decode). Please consider adding .detokenize(token_ids) to allow round-trip conversion between text and token IDs.
Use Case:
- Splitting large text based on token count and reconstructing text for summarization or analysis.
- Making LM Studio SDK workflows more flexible and developer-friendly.
Thank you!
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request