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

✨ Add tokenization task to generation modules #351

Merged
merged 5 commits into from
Apr 25, 2024

Conversation

evaline-ju
Copy link
Collaborator

@evaline-ju evaline-ju commented Apr 24, 2024

Closes #350

Because TextGenerationTGIS is not a subclass but a backend type for TextGeneration, any additional tasks declared on the former were not actually getting added. By adding the additional tasks on TextGeneration and PeftPromptTuning respectively, this allows the tokenization tasks to be available on the TGIS backend implementations. Unimplemented functions have to be added or there will be errors.

Tokenization run functions could eventually be implemented since each LLM could be reasonably expected to have a tokenizer.

Std getting imported with LaunchConfig started to error in latest torch 2.3.0. It was observed the Std object is at https://github.com/pytorch/pytorch/blame/main/torch/distributed/elastic/multiprocessing/api.py and not in the LaunchConfig and was potentially getting imported through another import to the launcher api. tee is no longer an arg on LaunchConfig. Since this was a breaking change, torch is now pinned below 2.3.0.

Copy link
Collaborator

@gkumbhat gkumbhat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thanks for fixing.

@gkumbhat gkumbhat merged commit d81f11e into caikit:main Apr 25, 2024
5 checks passed
@gkumbhat gkumbhat deleted the llm-tok branch April 25, 2024 03:24
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.

Tokenization with TGIS models resulting in bad wiretype
2 participants