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

Release 2.0.1 #36

Merged
merged 5 commits into from
Aug 2, 2024
Merged

Release 2.0.1 #36

merged 5 commits into from
Aug 2, 2024

Conversation

Lyaaaaaaaaaaaaaaa
Copy link
Member

No description provided.

Lyaaaaaaaaaaaaaaa and others added 5 commits May 7, 2024 15:28
It is now possible to send a list of banned words to the generator. It
will not generate theses words. It allows clients to send their own list
of banned words.
config.py:
- Added TORCH_DTYPE_SAFETY.

model.py:
- Updated _load_model to force (if config.TORCH_DTYPE_SAFETY is True)
torch_dtype to be set to float32 if cuda isn't available.
Because otherwise, it will lead to an error during generation.
See #31
Added a fallback to change torch_dtype if cuda isn't available.
Implemented the banned_words feature.
@Lyaaaaaaaaaaaaaaa Lyaaaaaaaaaaaaaaa merged commit e6db88e into main Aug 2, 2024
1 check 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.

1 participant