用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/lamm-mit/scienceclaw --skill hpc命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | hpc |
| description | SLURM HPC job management on Artemis — write submission scripts, submit jobs, monitor status, retrieve results |
| metadata | null |
Manage SLURM batch jobs on the Artemis HPC cluster. This skill teaches the agent how to write SLURM submission scripts, submit them, monitor status, and retrieve results using standard SLURM CLI tools.
There are no wrapper scripts — use SLURM commands directly via bash.
33 nodes total: 25 CPU, 3 large-memory, 3 H100 GPU, 2 A100 GPU.
| Partition | Wall Time | Nodes | CPUs | RAM | GPUs | Notes |
|---|---|---|---|---|---|---|
venkvis-cpu | 48h | 25 | 96c (EPYC 9654) | 368 GB | — | Default for DFT |
venkvis-largemem | 48h | 3 | 96c (EPYC 9654) | 768 GB | — | Large-memory jobs |
venkvis-a100 | 8h | 2 | 32c (EPYC 7513) | 512 GB | 4× A100 80GB | GPU compute |
venkvis-h100 | 8h | 3 | 96c (EPYC 9654) | 368 GB | 4× H100 80GB | GPU compute (fastest) |
debug | 30m | 4 max | varies | varies | varies | Quick tests |
| Tier | Path | Capacity | Notes |
|---|---|---|---|
| Turbo | /nfs/turbo/coe-venkvis/ | 10 TB (500 GB fair share) | Persistent, backed up |
| Scratch | /scratch/venkvis_root/venkvis/ | 10 TB (500 GB fair share) | 60-day auto-purge |
| Home | /home/<user> | 80 GB | User home |
| Node Local | /tmp | 1.9 TB NVMe | Ephemeral, fast I/O |
Create a bash script with #SBATCH directives. Example for a GPU job:
#!/bin/bash
#SBATCH --job-name=my-job
#SBATCH --partition=venkvis-h100
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=4
#SBATCH --mem=32G
#SBATCH --time=02:00:00
#SBATCH --gres=gpu:1
#SBATCH --output=slurm-%j.out
#SBATCH --error=slurm-%j.err
# Activate Python environment
source /path/to/venv/bin/activate
# Export any needed API keys
export HF_TOKEN="..."
export MP_API_KEY="..."
# Run your computation
python3 my_script.py --arg1 value1 --format json > results.json
echo "Done: $(date)"
For CPU jobs, remove --gres=gpu:1 and use --partition=venkvis-cpu.
Key #SBATCH directives:
--partition=<name> — which queue (see table above)--gres=gpu:<N> — request N GPUs (GPU partitions only)--time=HH:MM:SS — wall time limit--mem=<N>G — memory per node--cpus-per-task=<N> — CPU cores--output=<path> / --error=<path> — stdout/stderr files (%j = job ID)--array=0-9 — submit a job array (10 tasks)# Submit a script
sbatch submit.sh
# Submit with partition override
sbatch --partition=venkvis-h100 submit.sh
# Submit with dependency (run after job 12345 completes)
sbatch --dependency=afterok:12345 next_step.sh
Output: Submitted batch job 12345
# Check your running/pending jobs
squeue -u $USER
# Check a specific job
squeue -j 12345
# Check a specific partition
squeue -p venkvis-h100
# Detailed job info (including completed jobs)
sacct -j 12345 --format=JobID,State,Elapsed,ExitCode,NodeList,MaxRSS
# Check estimated start time for pending job
squeue -j 12345 --start
Key job states: PENDING, RUNNING, COMPLETED, FAILED, CANCELLED, TIMEOUT, OUT_OF_MEMORY.
After a job completes, results are wherever your script wrote them:
# Check if job finished
sacct -j 12345 --format=JobID,State,Elapsed,ExitCode --noheader
# Read stdout/stderr
cat slurm-12345.out
cat slurm-12345.err
# Read structured results (if your script wrote JSON)
cat results.json | python3 -m json.tool
# Cancel a specific job
scancel 12345
# Cancel all your jobs
scancel -u $USER
# Cancel all pending jobs
scancel -u $USER --state=PENDING
For quick debugging or running scienceclaw-post with GPU access:
# Interactive shell with H100 GPU (up to 8 hours)
srun -N 1 -n 1 -p venkvis-h100 --gres=gpu:h100:1 --mem=32G -t 04:00:00 --pty bash
# Interactive shell with A100 GPU
srun -N 1 -n 1 -p venkvis-a100 --gres=gpu:a100:1 --mem=32G -t 04:00:00 --pty bash
# Quick debug session (30 min max, fastest scheduling)
srun --partition=debug --nodes=1 --gres=gpu:h100:1 --mem=2G --time=30 --pty bash
Once on the GPU node, activate the venv and run commands normally:
source /nfs/turbo/coe-venkvis/changwex/projects/scienceclaw/.venv/bin/activate
scienceclaw-post --agent MatSim --topic "..." --skills uma --dry-run
echo $SLURM_JOB_ID (should be empty on login node)/scratch/, not /nfs/turbo/ or /home/基于 SOC 职业分类