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

Small bug fixes for running models without tokenizers #168

Merged
merged 5 commits into from
Aug 28, 2024

Conversation

coryMosaicML
Copy link
Collaborator

Two small tweaks:

  1. In the image logger, change tokenizer.model.max_length to tokenizer.model_max_length
  2. In train.py, explicitly check if the model has a tokenizer, and if not set it to none. Previously we assumed that all diffusion models would come with a tokenizer for running generation, but this is no longer the case.

@coryMosaicML coryMosaicML merged commit c1f953f into mosaicml:main Aug 28, 2024
5 checks passed
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.

4 participants