salesforce / CodeT5

Home of CodeT5: Open Code LLMs for Code Understanding and Generation
https://arxiv.org/abs/2305.07922
BSD 3-Clause "New" or "Revised" License
2.74k stars 401 forks source link

How to switch the working mode of the model? #99

Open ZhaoYu-Lab opened 1 year ago

ZhaoYu-Lab commented 1 year ago

For example, how to set to use only encoder mode? Explicitly add mode='encoder-only' when encoding sentences like Unixcoder?