Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Hardware API #1593

Merged
merged 56 commits into from
Nov 13, 2024
Merged

feat: Hardware API #1593

merged 56 commits into from
Nov 13, 2024

Conversation

vansangpfiev
Copy link
Contributor

@vansangpfiev vansangpfiev commented Oct 31, 2024

Describe Your Changes

curl --request GET --url http://127.0.0.1:39281/v1/hardware
{
    "cpu": {
        "arch": "amd64",
        "cores": 8,
        "instructions": [
            "fpu",
            "mmx",
            "sse",
            "sse2",
            "sse3",
            "ssse3",
            "sse4_1",
            "sse4_2",
            "pclmulqdq",
            "avx",
            "avx2",
            "aes",
            "f16c"
        ],
        "model": "AMD Ryzen Threadripper PRO 5955WX 16-Cores"
    },
    "gpus": [
        {
            "additional_information": {
                "compute_cap": "8.6",
                "driver_version": "535.183"
            },
            "free_vram": 24246,
            "name": "NVIDIA GeForce RTX 3090",
            "total_vram": 24576,
            "version": "12.2"
        }
    ],
    "os": {
        "name": "Ubuntu 24.04.1 LTS",
        "version": "24.04.1 LTS (Noble Numbat)"
    },
    "power": {
        "battery_life": 0,
        "charging_status": "",
        "is_power_saving": false
    },
    "ram": {
        "available": 14335725568,
        "total": 16768770048,
        "type": ""
    },
    "storage": {
        "available": 0,
        "total": 0,
        "type": ""
    }
}
  • Model usage estimation will be in a separate PR

Fixes Issues

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

Copy link
Contributor

github-actions bot commented Nov 5, 2024

Preview URL: https://2884bb8e.cortex-docs.pages.dev

Copy link
Collaborator

@namchuai namchuai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Overall lgtm. Only some nits and should not be blocked. Great job!

@vansangpfiev vansangpfiev merged commit a055f69 into dev Nov 13, 2024
5 checks passed
@vansangpfiev vansangpfiev deleted the feat/hardware-api branch November 13, 2024 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants