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

Improve model.py's structure #21

Merged
merged 1 commit into from
Sep 18, 2023
Merged

Conversation

Lyaaaaaaaaaaaaaaa
Copy link
Member

The structure of model.py has been improved.

  • Splitted load into three methods. load_tokens, load_model and load_translator.
  • Extracted from init to load the code related to the loading of files.
  • Splitted download into download_model and download_tokens.
  • Splitted save into save_model and save_tokens.

- Splitted load into three methods. load_tokens, load_model and
load_translator.
- Extracted from init to load the code related to the loading of files.
- Splitted download into download_model and download_tokens.
- Splitted save into save_model and save_tokens.
@Lyaaaaaaaaaaaaaaa Lyaaaaaaaaaaaaaaa merged commit 12e3d25 into Split-GPU-CPU Sep 18, 2023
@Lyaaaaaaaaaaaaaaa Lyaaaaaaaaaaaaaaa deleted the Improve_Model.py branch September 18, 2023 10:37
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