Download code/readiness_check/__init__.py from ndaly/Voxtral-Mini-4B-Realtime-2602: direct link, hf CLI and curl.
- Browser
- Download file 988 Bytes
-
https://huggingface.co/ndaly/Voxtral-Mini-4B-Realtime-2602/resolve/main/code/readiness_check/__init__.py
- Command line
-
hf download hf://ndaly/Voxtral-Mini-4B-Realtime-2602/code/readiness_check/__init__.py
-
curl -L -o __init__.py https://huggingface.co/ndaly/Voxtral-Mini-4B-Realtime-2602/resolve/main/code/readiness_check/__init__.py
988 Bytes
| # SPDX-FileCopyrightText: © 2026 Tenstorrent USA, Inc. | |
| # SPDX-License-Identifier: Apache-2.0 | |
| """Readiness contracts and runners. Heavy dependencies load only when requested.""" | |
| from importlib import import_module | |
| _EXPORTS = {'BUILD_GENERATOR_FUNCTION_NAME': 'contract', 'GENERATOR_MODULE_RELPATH': 'contract', 'BuildGeneratorFn': 'contract', 'Generator': 'contract', 'NextInputFn': 'contract', 'GENERATOR_VLLM_MODULE_RELPATH': 'contract_vllm', 'ModelCapabilities': 'contract_vllm', 'VllmGeneratorAdapter': 'contract_vllm', 'generate_reference': 'generate', 'DEFAULT_K': 'generate', 'FORMAT_VERSION': 'schema', 'Reference': 'schema', 'ReferenceEntry': 'schema', 'load_reference': 'schema', 'save_reference': 'schema', 'TokenAccuracy': 'teacher_forcing'} | |
| __all__ = list(_EXPORTS) | |
| def __getattr__(name): | |
| if name not in _EXPORTS: | |
| raise AttributeError(name) | |
| value = getattr(import_module(f".{_EXPORTS[name]}", __name__), name) | |
| globals()[name] = value | |
| return value | |