mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 13:44:58 +08:00
[Bugfix] Re-enable support for ChatGLMForConditionalGeneration (#16187)
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
parent
55dcce91df
commit
027b204ff1
@ -233,9 +233,9 @@ See [this page](#generative-models) for more information on how to use generativ
|
|||||||
* `facebook/bart-base`, `facebook/bart-large-cnn`, etc.
|
* `facebook/bart-base`, `facebook/bart-large-cnn`, etc.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
- * `ChatGLMModel`
|
- * `ChatGLMModel`, `ChatGLMForConditionalGeneration`
|
||||||
* ChatGLM
|
* ChatGLM
|
||||||
* `THUDM/chatglm2-6b`, `THUDM/chatglm3-6b`, etc.
|
* `THUDM/chatglm2-6b`, `THUDM/chatglm3-6b`, `ShieldLM-6B-chatglm3`, etc.
|
||||||
* ✅︎
|
* ✅︎
|
||||||
* ✅︎
|
* ✅︎
|
||||||
- * `CohereForCausalLM`, `Cohere2ForCausalLM`
|
- * `CohereForCausalLM`, `Cohere2ForCausalLM`
|
||||||
|
|||||||
@ -124,6 +124,8 @@ _TEXT_GENERATION_EXAMPLE_MODELS = {
|
|||||||
"BloomForCausalLM": _HfExamplesInfo("bigscience/bloomz-1b1"),
|
"BloomForCausalLM": _HfExamplesInfo("bigscience/bloomz-1b1"),
|
||||||
"ChatGLMModel": _HfExamplesInfo("THUDM/chatglm3-6b",
|
"ChatGLMModel": _HfExamplesInfo("THUDM/chatglm3-6b",
|
||||||
trust_remote_code=True),
|
trust_remote_code=True),
|
||||||
|
"ChatGLMForConditionalGeneration": _HfExamplesInfo("thu-coai/ShieldLM-6B-chatglm3", # noqa: E501
|
||||||
|
trust_remote_code=True),
|
||||||
"CohereForCausalLM": _HfExamplesInfo("CohereForAI/c4ai-command-r-v01",
|
"CohereForCausalLM": _HfExamplesInfo("CohereForAI/c4ai-command-r-v01",
|
||||||
trust_remote_code=True),
|
trust_remote_code=True),
|
||||||
"Cohere2ForCausalLM": _HfExamplesInfo("CohereForAI/c4ai-command-r7b-12-2024", # noqa: E501
|
"Cohere2ForCausalLM": _HfExamplesInfo("CohereForAI/c4ai-command-r7b-12-2024", # noqa: E501
|
||||||
|
|||||||
@ -43,6 +43,7 @@ _TEXT_GENERATION_MODELS = {
|
|||||||
"BambaForCausalLM": ("bamba", "BambaForCausalLM"),
|
"BambaForCausalLM": ("bamba", "BambaForCausalLM"),
|
||||||
"BloomForCausalLM": ("bloom", "BloomForCausalLM"),
|
"BloomForCausalLM": ("bloom", "BloomForCausalLM"),
|
||||||
"ChatGLMModel": ("chatglm", "ChatGLMForCausalLM"),
|
"ChatGLMModel": ("chatglm", "ChatGLMForCausalLM"),
|
||||||
|
"ChatGLMForConditionalGeneration": ("chatglm", "ChatGLMForCausalLM"),
|
||||||
"CohereForCausalLM": ("commandr", "CohereForCausalLM"),
|
"CohereForCausalLM": ("commandr", "CohereForCausalLM"),
|
||||||
"Cohere2ForCausalLM": ("commandr", "CohereForCausalLM"),
|
"Cohere2ForCausalLM": ("commandr", "CohereForCausalLM"),
|
||||||
"DbrxForCausalLM": ("dbrx", "DbrxForCausalLM"),
|
"DbrxForCausalLM": ("dbrx", "DbrxForCausalLM"),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user