mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-04-10 05:17:03 +08:00
[CI Fix] Pin tests/models/registry.py MiniMaxText01ForCausalLM to revision due to model changes (#20199)
Signed-off-by: mgoin <mgoin64@gmail.com>
This commit is contained in:
parent
3c545c0c3b
commit
c329ceca6d
@ -70,6 +70,12 @@ class _HfExamplesInfo:
|
||||
length that is too large to fit into memory in CI.
|
||||
"""
|
||||
|
||||
revision: Optional[str] = None
|
||||
"""
|
||||
The specific revision (commit hash, tag, or branch) to use for the model.
|
||||
If not specified, the default revision will be used.
|
||||
"""
|
||||
|
||||
def check_transformers_version(
|
||||
self,
|
||||
*,
|
||||
@ -207,7 +213,8 @@ _TEXT_GENERATION_EXAMPLE_MODELS = {
|
||||
"MiniCPM3ForCausalLM": _HfExamplesInfo("openbmb/MiniCPM3-4B",
|
||||
trust_remote_code=True),
|
||||
"MiniMaxText01ForCausalLM": _HfExamplesInfo("MiniMaxAI/MiniMax-Text-01",
|
||||
trust_remote_code=True),
|
||||
trust_remote_code=True,
|
||||
revision="a59aa9cbc53b9fb8742ca4e9e1531b9802b6fdc3"), # noqa: E501
|
||||
"MiniMaxM1ForCausalLM": _HfExamplesInfo("MiniMaxAI/MiniMax-M1-40k",
|
||||
trust_remote_code=True),
|
||||
"MistralForCausalLM": _HfExamplesInfo("mistralai/Mistral-7B-Instruct-v0.1"),
|
||||
|
||||
@ -88,6 +88,7 @@ def test_can_initialize(model_arch: str, monkeypatch: pytest.MonkeyPatch):
|
||||
model_info.default,
|
||||
tokenizer=model_info.tokenizer,
|
||||
tokenizer_mode=model_info.tokenizer_mode,
|
||||
revision=model_info.revision,
|
||||
speculative_config={
|
||||
"model": model_info.speculative_model,
|
||||
"num_speculative_tokens": 1,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user