backend.ai-accelerator-mock


Namebackend.ai-accelerator-mock JSON
Version 24.3.3 PyPI version JSON
download
home_pagehttps://github.com/lablup/backend.ai
SummaryBackend.AI Mockup Accelerator Plugin
upload_time2024-04-30 16:58:17
maintainerNone
docs_urlNone
authorLablup Inc. and contributors
requires_python<3.13,>=3.12
licenseLGPLv3
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/lablup/backend.ai",
    "name": "backend.ai-accelerator-mock",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.13,>=3.12",
    "maintainer_email": null,
    "keywords": null,
    "author": "Lablup Inc. and contributors",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/f9/0d/2e2f66d00ff47f53179e6f3a0ee893132a88713886aaec00b53cf8946f53/backend.ai-accelerator-mock-24.3.3.tar.gz",
    "platform": null,
    "description": "# backend.ai-accelerator-mock\n\nA mockup plugin for accelerators\n\nThis plugin deceives the agent and manager to think as if there are accelerator devices.\nThe configuration follows `mock-accelerator.toml` placed in the same location of `agent.toml`.\nPlease refer the sample configurations in the `configs/accelerator` directory and copy one of them as a starting point.\n\nThe statistics are randomly generated in reasonable ranges, but it may seem like \"jumping around\" because there is no smoothing mechanism of generated values.\nThe configurations for fractional/discrete mode, fraction size, and device masks in etcd are exactly same as the original plugin.\n\n## Notes when setting up mock CUDA devices\n\nThe containers are created without any real CUDA device mounts but with `BACKENDAI_MOCK_CUDA_DEVICES` and `BACKENDAI_MOCK_CUDA_DEVICE_COUNT` environment variables.\nSince 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).\n",
    "bugtrack_url": null,
    "license": "LGPLv3",
    "summary": "Backend.AI Mockup Accelerator Plugin",
    "version": "24.3.3",
    "project_urls": {
        "Documentation": "https://docs.backend.ai/",
        "Homepage": "https://github.com/lablup/backend.ai",
        "Source": "https://github.com/lablup/backend.ai"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9f2a51b2ffcfdca576a53078d76768a05f8e1f65eb130dcf48c4561fffcd5474",
                "md5": "47491bb875f4bad2898f31ce3eca955d",
                "sha256": "8f419d6fc57c32485d93c38863192f3479753a9fa95668f62cd74caf747b4ee1"
            },
            "downloads": -1,
            "filename": "backend.ai_accelerator_mock-24.3.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "47491bb875f4bad2898f31ce3eca955d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.13,>=3.12",
            "size": 11889,
            "upload_time": "2024-04-30T16:57:33",
            "upload_time_iso_8601": "2024-04-30T16:57:33.106406Z",
            "url": "https://files.pythonhosted.org/packages/9f/2a/51b2ffcfdca576a53078d76768a05f8e1f65eb130dcf48c4561fffcd5474/backend.ai_accelerator_mock-24.3.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f90d2e2f66d00ff47f53179e6f3a0ee893132a88713886aaec00b53cf8946f53",
                "md5": "d410aa987b288ebb54ae3a7745856c3d",
                "sha256": "ea4b928d60e401cc836de2349702d8dd6cc5c23cdec67418f24174a5db9dd35e"
            },
            "downloads": -1,
            "filename": "backend.ai-accelerator-mock-24.3.3.tar.gz",
            "has_sig": false,
            "md5_digest": "d410aa987b288ebb54ae3a7745856c3d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.13,>=3.12",
            "size": 11918,
            "upload_time": "2024-04-30T16:58:17",
            "upload_time_iso_8601": "2024-04-30T16:58:17.794171Z",
            "url": "https://files.pythonhosted.org/packages/f9/0d/2e2f66d00ff47f53179e6f3a0ee893132a88713886aaec00b53cf8946f53/backend.ai-accelerator-mock-24.3.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-30 16:58:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "lablup",
    "github_project": "backend.ai",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "backend.ai-accelerator-mock"
}
        
Elapsed time: 0.24011s