Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Slack bot to interface with Slurm and other utlilities

License

NotificationsYou must be signed in to change notification settings

subhc/susbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

susbot : Slurm and other Utilities Slack Bot

[WIP] Provides helper commands related to an ML research Slack group. Mostly related to a slurm cluster.

Available commands:

  • /cluster - Get summary of the nodes in the cluster

Getting Started

Prerequisites

Create a Slack bot app with appropriate scope (chat:write,command,im:history,users:read) and get the Slack tokens. Subscribe to eventsapp_home_opened,message.im. You can find more information on how to do thishere.

SLACK_BOT_TOKEN andSLACK_SIGNING_SECRET environment variables are required to run the app.

  • ForSLACK_BOT_TOKEN copy theBot User OAuth Access Token under theOAuth & Permissions sidebar.
  • SLACK_SIGNING_SECRET is available in your app'sBasic Information page underApp Credentials.
export SLACK_BOT_TOKEN=xoxb-your-tokenexport SLACK_SIGNING_SECRET=your-signing-secret

Installing dependencies

conda env create -f environment.yaml

Install PySlurm

Follow the instructionshere

export SLURM_INCLUDE_DIR=/usr/includeexport SLURM_LIB_DIR=/usr/lib64git clone https://github.com/PySlurm/pyslurm.git && cd pyslurmgit checkout v23.2.0pip install .

Running the app

Run it on a node with access to the cluster.

python app.py

Acknowledgments

  • The cluster GUI is shameless rip-off ofslurm_web. If you are looking for a web GUI for cluster profiling, check it out.
  • slurm_gpustat

About

Slack bot to interface with Slurm and other utlilities

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp