[Model] Support Cohere2ForCausalLM (Cohere R7B) (#11203)

This commit is contained in:
Jani Monoses
2024-12-16 09:56:19 +00:00
committed by GitHub
parent b3b1526f03
commit bddbbcb132
5 changed files with 26 additions and 4 deletions
+2
View File
@@ -53,6 +53,8 @@ _TEXT_GENERATION_EXAMPLE_MODELS = {
# ChatGLMModel supports multimodal
"CohereForCausalLM": _HfExamplesInfo("CohereForAI/c4ai-command-r-v01",
trust_remote_code=True),
"Cohere2ForCausalLM": _HfExamplesInfo("CohereForAI/c4ai-command-r7b-12-2024", # noqa: E501
trust_remote_code=True),
"DbrxForCausalLM": _HfExamplesInfo("databricks/dbrx-instruct"),
"DeciLMForCausalLM": _HfExamplesInfo("Deci/DeciLM-7B-instruct",
trust_remote_code=True),