Command helper for slurm system. Act as if you are on compute node.
Project description
SAPP
sapp is a command helper for slurm system. It allows you to act as if you are on compute node (with Internet!). No need to learn how to use slurm.
How to use
Quick Start
Use spython to replace python and your applications will run on the compute node.
You will be asked to select a compute node for the first time. sapp will show the partition, type of cards and how many resources are available. After that, sapp will remember your choice and next time you may select this config with one click.
Advanced Usage
If you want to execute commands other that python, just add sapp in front of your command. Actually, spython is just a shortcut for sapp python. For example, use sapp bash train.sh to run bash train.sh on the compute node.
To use the Internet, please select the base environment of slash instead of none. You will be able to use the Internet on the compute node as if you are on your local machine.
Slash
sapp now uses slash to provide Internet service. You may select the preferred slash environment when submitting the job.
- If you just want to use the Internet environment on the login node, select the built-in environment
base. - You may also create your own environment with a subscription link, then select it when submitting the job.
- If you do not want to use slash, just select
none.
# create an slash environment with a subscription link (optional)
# e.g. https://raw.githubusercontent.com/Pawdroid/Free-servers/main/sub
slash create -n myenv -f <your_subscription>
# submit a job, choosing slash=myenv
sapp wget huggingface.co
Install
pip install git+https://github.com/why-in-Shanghaitech/sapp.git
Uninstall
pip uninstall sapp
Features
- Free yourself from long commands and slurm settings. Personally, I do not like typing a long command or executing a shell script with no interactive console.
- Beautiful
tqdmprogress bar forsruninteractive jobs. - Sapp allows you to run
srunandsbatchwithout worrying about file changes. It will memorize the file you submit, so feel free to change the scripts or config files after submitting the job, even if it does not start running yet. - Sapp could automatically setup the slash service -- enjoy the Internet on the compute node!
How it works
- The GPU status query is based on the command
sinfo. - The Internet service is based on slash.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sapp_py-0.5.0.dev1-py3-none-any.whl.
File metadata
- Download URL: sapp_py-0.5.0.dev1-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8a972e5d1aafd1e01847c3f862e0376d7d8ac24b18e665ae3d69f46efceba89
|
|
| MD5 |
fca9b82a1618cd1fa36d7e08abd9d9d1
|
|
| BLAKE2b-256 |
3afa34a01a2ed3c6142a3db8c49f33518e941d1b0dea14294ffcbd88b40b40cd
|