Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into patch-1
  • Loading branch information
teknium1 authored Nov 3, 2023
commit d2ab4de40aaf1b64fe7babbf56fbc20e0887f64b
13 changes: 5 additions & 8 deletions fastchat/model/model_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1362,14 +1362,11 @@ class OpenOrcaAdapter(BaseModelAdapter):
use_fast_tokenizer = False

def match(self, model_path: str):
if "mistral-7b-openorca" in model_path.lower():
return get_conv_template("mistral-7b-openorca")
if "OpenHermes-2.5-Mistral-7B" in model_path.lower():
return get_conv_template("mistral-7b-openorca")
elif "openorca" in model_path.lower():
return get_conv_template("open-orca")
else:
return False
return (
"mistral-7b-openorca" in model_path.lower()
or "openorca" in model_path.lower()
or "openhermes-2.5-mistral-7b" in model_path.lower()
)

def load_model(self, model_path: str, from_pretrained_kwargs: dict):
revision = from_pretrained_kwargs.get("revision", "main")
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.