MCPcopy
hub / github.com/z-lab/dflash / _check_transformers_model

Function _check_transformers_model

dflash/benchmark.py:176–182  ·  view source on GitHub ↗
(model_name: str)

Source from the content-addressed store, hash-verified

174
175
176def _check_transformers_model(model_name: str) -> None:
177 if not _TRANSFORMERS_SUPPORTED_PATTERN.search(model_name):
178 raise ValueError(
179 f"Transformers backend does not support '{model_name}'. "
180 f"Only Qwen3 series and LLaMA-3.1-8B-Instruct are supported. "
181 f"Use --backend sglang or --backend vllm for other models."
182 )
183
184
185def _get_transformers_attn_impl() -> str:

Callers 1

_run_transformersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected