FastChat icon indicating copy to clipboard operation
FastChat copied to clipboard

The fix for the Chinese-Alpaca-2-7B model matches the wrong AlpacaAda…

Open linstreamer opened this issue 1 year ago • 0 comments

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.sh to 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).

linstreamer avatar Apr 18 '24 06:04 linstreamer