[Models] Cohere Eagle + fix to Cohere MoE (#42078)

Signed-off-by: Terrencezzj <terrence@cohere.ai>
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Terrence Zhao
2026-05-08 21:46:26 -07:00
committed by GitHub
co-authored by Cursor
parent e8f9038ebd
commit a2812becd6
8 changed files with 377 additions and 41 deletions
+2 -1
View File
@@ -89,7 +89,7 @@ _TEXT_GENERATION_MODELS = {
"ChatGLMForConditionalGeneration": ("chatglm", "ChatGLMForCausalLM"),
"CohereForCausalLM": ("commandr", "CohereForCausalLM"),
"Cohere2ForCausalLM": ("commandr", "CohereForCausalLM"),
"CohereMoeForCausalLM": ("cohere_moe", "CohereMoeForCausalLM"),
"Cohere2MoeForCausalLM": ("cohere2_moe", "Cohere2MoeForCausalLM"),
"CwmForCausalLM": ("llama", "LlamaForCausalLM"),
"DbrxForCausalLM": ("dbrx", "DbrxForCausalLM"),
"DeciLMForCausalLM": ("nemotron_nas", "DeciLMForCausalLM"),
@@ -582,6 +582,7 @@ _SPECULATIVE_DECODING_MODELS = {
"MiMoMTPModel": ("mimo_mtp", "MiMoMTP"),
"MiMoV2MTPModel": ("mimo_v2_mtp", "MiMoV2MTP"),
"MiMoV2OmniMTPModel": ("mimo_v2_mtp", "MiMoV2OmniMTP"),
"EagleCohereForCausalLM": ("cohere_eagle", "EagleCohereForCausalLM"),
"EagleLlamaForCausalLM": ("llama_eagle", "EagleLlamaForCausalLM"),
"EagleLlama4ForCausalLM": ("llama4_eagle", "EagleLlama4ForCausalLM"),
"EagleMiniCPMForCausalLM": ("minicpm_eagle", "EagleMiniCPMForCausalLM"),