Skip to content

Commit

Permalink
docs: bit misspell comments model adapter default template name conve…
Browse files Browse the repository at this point in the history
…rsation (#2594)
  • Loading branch information
guspan-tanadi authored Oct 21, 2023
1 parent f06b202 commit 8e90d5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion fastchat/conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ def get_conv_template(name: str) -> Conversation:
)
)

# ChagGPT default template
# ChangGPT default template
register_conv_template(
Conversation(
name="polyglot_changgpt",
Expand Down
8 changes: 4 additions & 4 deletions fastchat/model/model_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ def get_default_conv_template(self, model_path: str) -> Conversation:


class VicunaAdapter(BaseModelAdapter):
"Model adapater for Vicuna models (e.g., lmsys/vicuna-7b-v1.3)" ""
"Model adapter for Vicuna models (e.g., lmsys/vicuna-7b-v1.3)" ""

use_fast_tokenizer = False

Expand Down Expand Up @@ -605,7 +605,7 @@ def raise_warning_for_old_weights(self, model):
"current fastchat.\nYou can try one of the following methods:\n"
"1. Upgrade your weights to the new Vicuna-v1.3: https://github.com/lm-sys/FastChat#vicuna-weights.\n"
"2. Use the old conversation template by `python3 -m fastchat.serve.cli --model-path /path/to/vicuna-v0 --conv-template one_shot`\n"
"3. Downgrade fschat to fschat==0.1.10 (Not recommonded).\n"
"3. Downgrade fschat to fschat==0.1.10 (Not recommended).\n"
)


Expand Down Expand Up @@ -641,7 +641,7 @@ def load_model(self, model_path: str, from_pretrained_kwargs: dict):


class LongChatAdapter(BaseModelAdapter):
"Model adapater for LongChat models (e.g., lmsys/longchat-7b-16k)."
"Model adapter for LongChat models (e.g., lmsys/longchat-7b-16k)."

use_fast_tokenizer = False

Expand Down Expand Up @@ -1345,7 +1345,7 @@ def get_default_conv_template(self, model_path: str) -> Conversation:


class OpenOrcaAdapter(BaseModelAdapter):
"""Model adapater for Open-Orca models wich may use different prompt templates
"""Model adapter for Open-Orca models which may use different prompt templates
- (e.g. Open-Orca/OpenOrcaxOpenChat-Preview2-13B, Open-Orca/Mistral-7B-OpenOrca)
- `OpenOrcaxOpenChat-Preview2-13B` uses their "OpenChat Llama2 V1" prompt template.
- [Open-Orca/OpenOrcaxOpenChat-Preview2-13B #Prompt Template](https://huggingface.co/Open-Orca/OpenOrcaxOpenChat-Preview2-13B#prompt-template)
Expand Down

0 comments on commit 8e90d5c

Please sign in to comment.