u7-u7 c8f438c10a fix(environ): reject unsupported DEEPINFER_ACCELERATOR values
The variable picks the deepinfer/_so/<accelerator>-<arch> directory that holds
the extension module. The build scripts already reject anything but
nvidia/ascend (build.sh, scripts/build_vendor.sh), but the runtime accepted any
string: a typo such as "ascned" was silently coerced to the nvidia platform tag
in _so_platform_tag(), so the process looked for a directory that does not exist
and failed with a bare ModuleNotFoundError for deepinfer._C that never mentions
the variable.

Validate the value with EnvVar.choice so an unsupported value fails fast at
import time with the variable name. The documented behaviours are unchanged:
unset -> nvidia, "nvidia"/"ascend" -> themselves, and the empty value still
means "let deep_cluster detect the accelerator".
2026-10-26 16:41:59 +08:00
..
_C initial commit 2026-10-20 12:09:42 +08:00
distributed initial commit 2026-10-20 12:09:42 +08:00
engine initial commit 2026-10-20 12:09:42 +08:00
entrypoints initial commit 2026-10-20 12:09:42 +08:00
hugging_face initial commit 2026-10-20 12:09:42 +08:00
model_executor initial commit 2026-10-20 12:09:42 +08:00
npu_ops initial commit 2026-10-20 12:09:42 +08:00
structure_output initial commit 2026-10-20 12:09:42 +08:00
ve initial commit 2026-10-20 12:09:42 +08:00
worker initial commit 2026-10-20 12:09:42 +08:00
__init__.py initial commit 2026-10-20 12:09:42 +08:00
attrdict.py initial commit 2026-10-20 12:09:42 +08:00
config.py initial commit 2026-10-20 12:09:42 +08:00
environ.py fix(environ): reject unsupported DEEPINFER_ACCELERATOR values 2026-10-26 16:41:59 +08:00
load_class.py initial commit 2026-10-20 12:09:42 +08:00
logger.py initial commit 2026-10-20 12:09:42 +08:00
model_config_loader.py initial commit 2026-10-20 12:09:42 +08:00
multimodal_tokens.py initial commit 2026-10-20 12:09:42 +08:00
platform.py initial commit 2026-10-20 12:09:42 +08:00
py.typed initial commit 2026-10-20 12:09:42 +08:00
sampling_params.py initial commit 2026-10-20 12:09:42 +08:00
sequence.py initial commit 2026-10-20 12:09:42 +08:00
shared_memory.py initial commit 2026-10-20 12:09:42 +08:00
testing.py initial commit 2026-10-20 12:09:42 +08:00
timer.py initial commit 2026-10-20 12:09:42 +08:00
utils.py initial commit 2026-10-20 12:09:42 +08:00