-
Notifications
You must be signed in to change notification settings - Fork 3
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
Hf integration #1
base: main
Are you sure you want to change the base?
Conversation
utils for loading an existing checkpoint from mammoth: all CLI/ config file options: listed in https://github.com/Helsinki-NLP/mammoth/blob/main/onmt/opts.py |
encoder_layers=config_dict["enc_layers"][0], | ||
encoder_ffn_dim=config_dict["transformer_ff"], | ||
encoder_attention_heads=config_dict["heads"], | ||
decoder_layers=config_dict["dec_layers"][0], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be a sum, not a [0]
indices for special tokens are here: |
May this work for the SPM initialization https://github.com/google/sentencepiece/blob/master/python/add_new_vocab.ipynb ? |
General PR for the HF/mammoth integration project, will also put some doc/pointers here