gpuview

fgaimMIT长期未更新

轻量级 Web 面板,实时查看多块 GPU 的占用率、显存和温度等状态,方便跑深度学习训练时随时掌握显卡负载。

A lightweight web dashboard for monitoring GPU usage

暂无版本220star57fork同步于 2026-11-07 07:31 UTC

怎么上手

由 README 提炼,执行前请确认
pip install gpuview
gpuview run --safe-zone
硬件要求按 README 说明

README 未说明显存等具体硬件要求;需在装有 NVIDIA GPU 的主机上运行 gpustat 采集数据,也可装在无 GPU 的笔记本上监控远程服务器;无 GPU 时可用 --demo 假数据模式开发调试。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

基于 gpustat 的轻量 Web 面板,让你在浏览器里随时查看多台 GPU 服务器的状态

轻量级 Web 面板,实时查看多块 GPU 的占用率、显存和温度等状态,方便跑深度学习训练时随时掌握显卡负载。

核心能力

  • 在 gpustat 之上提供网页仪表盘,无需 ssh 即可查看 GPU 状态
  • 支持注册多台 GPU 主机,把各节点统计聚合到一个面板
  • 每 3 秒自动刷新,带温度配色和交互式提示
  • 提供 REST API,可程序化获取本机或全部主机统计
  • 可安装为 systemd 后台服务并开机自启

容易踩的坑

默认监听 0.0.0.0:9988 且没有用户认证,默认不显示用户名,需在可信网络才用 --safe-zone 打开完整信息;多机聚合时每台被监控主机都要各自运行 gpuview 服务;systemd 服务安装需要 sudo 权限且仅限 Linux。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    gpuview

    LICENSE GitHub issues Python Versions PyPI CircleCI

    GPU is an expensive resource, and deep learning practitioners have to monitor the health and usage of their GPUs, such as the temperature, memory, utilization, and the users. This can be done with tools like nvidia-smi and gpustat from the terminal or command-line. Often times, however, it is not convenient to ssh into servers to just check the GPU status. gpuview is meant to mitigate this by running a lightweight web dashboard on top of gpustat.

    With gpuview one can monitor GPUs on the go, through a web browser. Moreover, multiple GPU servers can be registered into one gpuview dashboard and all stats are aggregated and accessible from one place.

    The dashboard features live auto-refresh (every 3 seconds) and includes interactive tooltips, temperature-based color coding, and pause/resume controls for real-time GPU monitoring.

    Dashboard view of nine GPUs across multiple servers:

    Screenshot of gpuview

    Setup

    Python 3.9 or higher is required.

    Install from PyPI:

    pip install gpuview
    

    [or] Install directly from repo:

    pip install git+https://github.com/fgaim/gpuview.git@main
    

    gpuview installs the latest version of gpustat from pypi, therefore, its commands are available from the terminal.

    Usage

    gpuview can be used in two modes as a temporary process or as a background service.

    Run gpuview

    Once gpuview is installed, it can be started as follows:

    gpuview run --safe-zone
    

    This will start the dashboard at http://0.0.0.0:9988.

    By default, gpuview runs at 0.0.0.0 and port 9988, but these can be changed using --host and --port. The safe-zone option means report all details including usernames, but it can be turned off for security reasons.

    For testing and development purposes, you can run gpuview with synthetic data:

    gpuview run --demo
    

    This displays fake GPU statistics and is useful when developing on systems without NVIDIA GPUs or when showcasing the dashboard.

    Run as a Service

    On Linux systems with systemd (which is standard on most modern distributions like Ubuntu, RHEL, and Fedora), you can install gpuview to run as a permanent background service. This requires sudo privileges.

    1. Install & Start the Service:
    Run the start command. The first time you run this, it will also install the service. For backward compatibility, gpuview service (with no subcommand) defaults to start.

    # Install and start the service with defaults settings
    gpuview service --safe-zone
    
    # Or apply custom configurations
    gpuview service start [--host <ip>] [--port <port>] [--safe-zone] [--exclude-self]
    

    The service will be configured with the options you provide (like --port) and set to autostart on boot.

    2. Manage the Service: You can easily control the service with these built-in commands:

    • gpuview service status: Check if the service is running and see its recent logs.
    • gpuview service logs: View real-time service logs using journalctl.
    • gpuview service stop: Stop the background service.
    • gpuview service start: Start the service if it's been stopped (it will not re-install).
    • gpuview service delete: Stop, disable, and uninstall the service from your system.

    Runtime options

    There are a few important options in gpuview, use gpuview --help to see them all.

    gpuview -h
    
    • run : Start gpuview dashboard server
      • --host : URL or IP address of host (default: 0.0.0.0)
      • --port : Port number to listen to (default: 9988)
      • --safe-zone : Safe to report all details, eg. usernames
      • --exclude-self : Don't report to others but to self-dashboard
      • --demo : Run with fake data for testing purposes
      • -d, --debug : Run server in debug mode (for developers)
    • add : Add a GPU host to the dashboard
      • --url : URL of host [IP:Port], eg. X.X.X.X:9988
      • --name : Optional readable name for the host, eg. Node101
    • remove : Remove a registered host from dashboard
      • --url : URL of host to remove, eg. X.X.X.X:9988
    • hosts : Print out all registered hosts
    • service : Manage the gpuview systemd service (Linux only). Defaults to 'start'.
      • start : Install (if needed) and start the service.
        • --host : (Optional) Host to bind (default: 0.0.0.0)
        • --port : (Optional) Port to bind (default: 9988)
        • --safe-zone : (Optional) Report all details, eg. usernames
        • --exclude-self : (Optional) Don't report to others
      • status : Check the status of the gpuview service.
      • stop : Stop the gpuview service.
      • logs : View service logs using journalctl.
      • delete : Stop, disable, and uninstall the service.
    • -v, --version : Print versions of gpuview and gpustat
    • -h, --help : Print help for command-line options

    Monitoring multiple hosts

    To aggregate the stats of multiple machines, they can be registered to one dashboard using their address and the port number running gpustat.

    Register a host to monitor as follows:

    gpuview add --url <ip:port> --name <name>
    

    Remove a registered host as follows:

    gpuview remove --url <ip:port> --name <name>
    

    Display all registered hosts/nodes as follows:

    gpuview hosts
    

    The gpuview service needs to run in all hosts that will be monitored.

    Tip: gpuview can be setup on a none GPU machine, such as laptops, to monitor remote GPU servers.

    API Endpoints

    gpuview provides REST API endpoints for programmatic access:

    • GET /api/gpustat/self - Returns GPU statistics for the main host
    • GET /api/gpustat/all - Returns aggregated GPU statistics for all registered hosts

    Legacy endpoints:

    • GET /gpustat - Returns GPU statistics for the local host (backward compatibility)

    Etc

    Helpful tips related to the underlying performance are available at the gpustat repo.

    For the sake of simplicity, gpuview does not have a user authentication in place. As a security measure, it does not report sensitive details such as user names by default. This can be changed if the service is running in a trusted network, using the --safe-zone option to report all details.

    The --exclude-self option of the run command can be used to prevent other dashboards from getting stats of the current machine. This way the stats are shown only on the host's own dashboard.

    Detailed view of GPUs across multiple servers:

    Screenshot of gpuview

    License

    gpuview is licensed under the MIT License, which is a permissive open-source license that allows you to freely use, modify, and distribute this software.