backend.ai-accelerator-mock
A mockup plugin for accelerators
This plugin deceives the agent and manager to think as if there are accelerator devices.
The configuration follows mock-accelerator.toml placed in the same location of agent.toml.
Please refer the sample configurations in the configs/accelerator directory and copy one of them as a starting point.
The statistics are randomly generated in reasonable ranges, but it may seem like "jumping around" because there is no smoothing mechanism of generated values. The configurations for fractional/discrete mode, fraction size, and device masks in etcd are exactly same as the original plugin.
Notes when setting up mock CUDA devices
The containers are created without any real CUDA device mounts but with BACKENDAI_MOCK_CUDA_DEVICES and BACKENDAI_MOCK_CUDA_DEVICE_COUNT environment variables.
Since the manager does not know if the reported devices are real or not, you can start any CUDA-only containers (but of course they won't work as expected).
Metadata
Release files for backend.ai-accelerator-mock 26.4.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| backend_ai_accelerator_mock-26.4.10.tar.gz | 12.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| backend_ai_accelerator_mock-26.4.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.2 kB
Release files / backend_ai_accelerator_mock-26.4.10.tar.gz
| Download URL | backend_ai_accelerator_mock-26.4.10.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d199719e5782fe307c6faa8b37718e794422171d92013178b62f9f9bfdb7ba31
|
|
BLAKE2b-256 checksum How to use checksums |
2c70c17b81759665fde3452c7189f122e72222c781f2f8a364950afdfe872e3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / backend_ai_accelerator_mock-26.4.10-py3-none-any.whl
| Download URL | backend_ai_accelerator_mock-26.4.10-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e5172993024fb0672469abaf220c921c59c502a8ddee4dded833f1ae7408eeb
|
|
BLAKE2b-256 checksum How to use checksums |
9446d897cf7f302f912c633dea09ca5699c217732317e86b9769497d3df015ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|