FastChat
FastChat copied to clipboard
The fix for the Chinese-Alpaca-2-7B model matches the wrong AlpacaAda…
The fix for the Chinese-Alpaca-2-7B model matches the wrong AlpacaAdapter instead of the correct Llama2ChineseAlpacaAdapter.
Why are these changes needed?
def match(self, model_path: str):
- return "alpaca" in model_path.lower()
+ return "alpaca" in model_path.lower() and "chinese-alpaca" not in model_path.lower()
Related issue number (if applicable)
Checks
- [x] I've run
format.shto lint the changes in this PR. - [x] I've included any doc changes needed.
- [x] I've made sure the relevant tests are passing (if applicable).