Merged
Conversation
Default is still 8000, but one can send as a parameter
The NLLB-200 model supports 200 languages, transformer-based and has better performance than M2M100 on FLORES benchmark. To use it, one can download the model and specify it using the BABELTRON_MODEL_TYPE=nllb either in docker or running locally directly.
6fc7b13 to
bedb3e8
Compare
bedb3e8 to
d679376
Compare
This file contains hidden or 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
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.
NLLB Model Support and Architecture Improvements
Overview
This PR introduces support for Facebook's No Language Left Behind (NLLB) translation model alongside the existing M2M100 model. The changes include comprehensive architecture improvements, enhanced documentation, and better model management capabilities.
Key Features
1. NLLB Model Integration
2. Model Management Improvements
3. API Enhancements
4. Documentation Updates
5. Testing Improvements
Technical Details
Model Configuration
API Changes
model_typeparameter to translation requestsEnvironment Variables
BABELTRON_MODEL_TYPEfor default model selectionBreaking Changes
Migration Guide
BABELTRON_MODEL_TYPE=nllb # Optional, defaults to m2m100make download-model-nllb-small # or make download-model-nllb-largeTesting
Documentation
Future Considerations
Related Issues
Checklist