-
Notifications
You must be signed in to change notification settings - Fork 5
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
(feat): Add small model lid.176.ftz
to library resources, for offline use
#5
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Refactor `get_model_loaded` to `load_model` with enhanced error handling - Rename constants for better clarity and consistency - Simplify language detection functions and improve docstrings - Use `Optional` typing and rename parameters for clarity
sudoskys
changed the title
Add small model
(feat): Add small model Sep 29, 2024
lid.176.ftz
to library resources lid.176.ftz
to library resources, for offline use
Refactor model loading to use an enum and cache class. Improve error handling and logging. Add functionality to fallback to a local small model if download fails.
add `USE_STRICT_MODE` setting to enable/disable strict mode in detection updated README.md to reflect the new setting removed redundant `USE_STRICT_MODE` declaration in `infer.py`
- Updated README with new `use_strict_mode` parameter examples - Removed unused imports and settings in `infer.py` - Implemented `use_strict_mode` in model loading functions - Added `NOTICE.MD` with license information
- Adjusted parameter alignment in `load_model` definition - Refactored `load_large_model` logic for clarity - Enhanced fallback logic for strict and non-strict modes
- Adjusted parameter alignment in `load_model` definition - Refactored `load_large_model` logic for clarity - Enhanced fallback logic for strict and non-strict modes
Sorry, forgot to provide the manual gc function for model_cache. The next update will be from the dev branch. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.