{"id":48663703,"url":"https://github.com/sasha0552/nvidia-pstate","last_synced_at":"2026-04-10T10:33:46.281Z","repository":{"id":225964269,"uuid":"767341285","full_name":"sasha0552/nvidia-pstate","owner":"sasha0552","description":"A library and CLI utilities for managing performance states of NVIDIA GPUs.","archived":false,"fork":false,"pushed_at":"2024-10-06T04:29:18.000Z","size":41,"stargazers_count":28,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-03T18:59:34.741Z","etag":null,"topics":["command-line","command-line-tool","gpu","nvapi","nvidia","nvidia-smi"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/nvidia-pstate/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sasha0552.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-05T05:45:05.000Z","updated_at":"2025-08-11T07:59:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"490b6e54-9676-4afd-be03-bde1c1a4181c","html_url":"https://github.com/sasha0552/nvidia-pstate","commit_stats":null,"previous_names":["sasha0552/nvidia-pstate"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/sasha0552/nvidia-pstate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasha0552%2Fnvidia-pstate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasha0552%2Fnvidia-pstate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasha0552%2Fnvidia-pstate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasha0552%2Fnvidia-pstate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sasha0552","download_url":"https://codeload.github.com/sasha0552/nvidia-pstate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasha0552%2Fnvidia-pstate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31638592,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line","command-line-tool","gpu","nvapi","nvidia","nvidia-smi"],"created_at":"2026-04-10T10:33:45.580Z","updated_at":"2026-04-10T10:33:46.272Z","avatar_url":"https://github.com/sasha0552.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nvidia-pstate\nA library and CLI utilities for managing performance states of NVIDIA GPUs.\n\n\u003e [!IMPORTANT]\nTry the new implementation - [nvidia-pstated](https://github.com/sasha0552/nvidia-pstated). The daemon does not require application patching and switches performance states automatically.\n\n## Installation\n### Prerequirements\n#### Linux\nMake sure you have the proprietary NVIDIA driver and the package providing `libnvidia-api.so` installed.\n\n- ArchLinux: `nvidia-utils`\n- Debian: `libnvidia-api1` or `libnvidia-tesla-api1` (depending on the GPU and driver installed)\n- Ubuntu: `libnvidia-gl-535` (?)\n\nOn Debian derivatives, you can use `apt search libnvidia-api.so.1` to find the package you need.\n\n#### Windows\nMake sure the NVIDIA driver is installed.\n\n### Installation\n```sh\npip3 install nvidia_pstate\n```\n\n## Usage (CLI)\n```sh\n# List available performance states (TODO: does not work right now, use nvidia-smi -q and count memory clocks)\nnvidia-pstate -q\n\n# Set performance state for specific GPU\nnvidia-pstate -i 0 -ps 0\n\n# Let driver decide which performance state GPU should use\nnvidia-pstate -i 0 -ps 16\n\n# Set performance state for specific GPUs\nnvidia-pstate -i 0 1 3 4 -ps 0\n\n# Set performance state for all GPUs\nnvidia-pstate -ps 0\n```\n\n## Usage (API)\n```python\nfrom nvidia_pstate import set_pstate_low, set_pstate_high\n\nset_pstate_low() # set pstate to \"low\" level (8 by default)\nset_pstate_high() # set pstate to \"high\" level (16 by default)\n\n# default values can be overrided using NVIDIA_PSTATE_LOW and NVIDIA_PSTATE_HIGH environment variables.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsasha0552%2Fnvidia-pstate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsasha0552%2Fnvidia-pstate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsasha0552%2Fnvidia-pstate/lists"}