You may need to add a Hugging Face token to Translation.ipynb and Cloze_multi.ipynb if you want to access certain models.
papermill Translation.ipynb out.ipynb -p input_lang en -p latent_lang_1 en -p latent_lang_2 ja -p target_lang zh -p model_selected 3 -p layer_num 40
papermill Cloze_multi.ipynb out.ipynb -p latent_lang_1 en -p latent_lang_2 ja -p target_lang ja -p model_selected 3 -p layer_num 40
Set the appropriate layer_num
based on the model you are using (e.g., 40 for Llama-13b).
The llamawrapper.py
script is adapted from the work of wendlerc. We thank them for their valuable contribution.