Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tokenizer.py to decode list of tensors as well as single tensor #296

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

ba2512005
Copy link
Contributor

@ba2512005 ba2512005 commented Jan 22, 2024

This is an enhancement to fix functionality of Lollms-webui, specifically the lord of internet and wikipedia personalities, as well as anything else that uses workflows or returns list of tensors to be decoded.

This change identifies the type, and decodes based on the type. If a list is detected it calls itself recursively and decodes each item in the list until completion.

ParisNeo/lollms-webui#480

This is an enhancement to fix functionality of Lollms-webui, specifically the lord of internet and wikipedia personalities, as well as anything else that uses workflows or returns list of tensors to be decoded. 

This change identifies the type, and decodes based on the type. If a list is detected it calls itself recursively and decodes each item in the list until completion. 

ParisNeo/lollms-webui#480 (comment)
@ba2512005
Copy link
Contributor Author

@turboderp please review and approve

turboderp added a commit that referenced this pull request Feb 1, 2024
@turboderp turboderp merged commit 56b0a12 into turboderp:master Feb 1, 2024
anchortense pushed a commit to anchortense/exllamav2-logit-threshold-samplers that referenced this pull request Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants