Skip to content

Commit

Permalink
Add starling alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyrilvallez committed Apr 15, 2024
1 parent 270dfc7 commit c7eb68a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions textwiz/configs/causal/starling.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

# Mistral models
MODELS_MAPPING = {
'starling-7B-alpha': 'berkeley-nest/Starling-LM-7B-alpha',
'starling-7B-beta': 'Nexusflow/Starling-LM-7B-beta',
}
MODELS_DTYPES = {model: torch.bfloat16 for model in MODELS_MAPPING.keys()}
Expand All @@ -13,6 +14,7 @@


MODELS_VERSIONS = {
'starling-7B-alpha': {'transformers': '>=4.35.0', 'tokenizers': '>=0.14.0'},
'starling-7B-beta': {'transformers': '>=4.37.1', 'tokenizers': '>=0.14.0'},
}
MODELS_ADDITIONAL_TOKENIZER_KWARGS = {model: {'use_fast': False} for model in MODELS_MAPPING.keys()}
1 change: 1 addition & 0 deletions textwiz/templates/conversation_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@ def get_prompt(self) -> str:
'zephyr-7B-beta': ZephyrConversation,

# Starling
'starling-7B-alpha': StarlingConversation,
'starling-7B-beta': StarlingConversation,

# Command
Expand Down
1 change: 1 addition & 0 deletions textwiz/templates/prompt_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ def format_chat(self, prompt: str, model_context: str = '', system_prompt: str =
'zephyr-7B-beta': ZephyrPromptTemplate,

# Starling
'starling-7B-alpha': StarlingPromptTemplate,
'starling-7B-beta': StarlingPromptTemplate,

# Command
Expand Down

0 comments on commit c7eb68a

Please sign in to comment.