Git Product home page Git Product logo

notify-free-gpu's Introduction

Get notifications via Telegram when your nvidia GPU is available again.

How it works

  • If memory usage of the GPU drops below 200MB, you will get a message "The GPU is available"
  • If memory usage of the GPU goes above 500MB, you will get a message "The GPU is in use"

If you want to know the current memory usage of the GPU, send /gpu to the bot and it will respond you with a message like "9376MB is in use"

Setup

Run

pipenv install

to install the required packages. Alternatively you can manually install the packages from the [packages] section in the Pipfile using pip.

Next, you have to create a config.json file in this directory containing the bot token and a list of user ids that the bot should send messages to:

{
    "token": "1008150085:AAHea1JBSof0yEVRrHfkbL2W_fDg9xEs-bE",
    "whitelist": [
        123456789,
        987654321
    ]
}

If you don't know how to set up a bot or get the bot token, take a look at https://core.telegram.org/bots

If you start a chat with the bot and your user id is not listed in the whitelist, the bot will tell you:

You are not yet on the whitelist. Add 987654321 to your config to receive notifications from me

notify-free-gpu's People

Contributors

cyd3r avatar ganler avatar

Stargazers

Huy Lê avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.