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

Mismatch in import of load_nllb_tokenizer in sonar/models/sonar_text/loader.py file #53

Open
Vijayavallabh opened this issue Jan 3, 2025 · 1 comment

Comments

@Vijayavallabh
Copy link

Vijayavallabh commented Jan 3, 2025

Please replace from fairseq2.models.nllb import load_nllb_tokenizer
with from fairseq2.data.text.tokenizers.nllb import load_nllb_tokenizer
on the sonar/models/sonar_text/loader.py file

I think the issue #52 is mainly because of above The issue is for the latest version on fairseq2, not for previous versions ig

@Vijayavallabh Vijayavallabh changed the title Wrong import of load_nllb_tokenizer in sonar/models/sonar_text/loader.py file Mismatch in import of load_nllb_tokenizer in sonar/models/sonar_text/loader.py file Jan 3, 2025
@mozhu621
Copy link

good solution, thanks bro

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

No branches or pull requests

2 participants