We are seeing excessive RPCs to the scheduler/slurmdb from Claude-written agentic tools (usually through VSCode) incessantly polling to check on jobs it submitted, so that would likely be a recipe for getting your users suspended. If it just does it occasionally (at about the same frequency as a human might) that would be OK.
We use Open OnDemand. We also have a slurm script generator available to help users create a batch script. Most users who want to run Python scripts use OOD with Jupyter.
The biggest problems our chemistry users have is Infiniband driver or hardware issues, or GPU availability since most are running multicore/multinode/GPU enhanced molecular dynamics or ab initio programs.
Good to know. It polls about as often as a person would. Uses one squeue for all of a user's jobs at most every 2 minutes, backing off to every 10 minutes when nothing changes, and it stops checking finished jobs. I'll build support for ood.
Note: I see a CLAUDE.md in your repo. Would need more eyes on the project for anybody to consider using the project. You should probably not use Claude as it has been recently noted that they actually sabotage research projects.
Also, how did you get Claude to cooperate with a chemistry task? From what I know these companies REALLY do not want you doing anything biology and chemistry related.
I'm trying to reach out to get the eyes on the project needed, since I'm a dev not a research scientist. Just trying to build useful, free, open source tools that helps people. I know someone building hpcs and he said there was a gap in useful software in this area
Also, how did you get Claude to cooperate with a chemistry task? From what I know these companies REALLY do not want you doing anything biology and chemistry related
Nah, unless you are actually going into biology Claude is just doing it's thing. This is a pure programming automation task.
Thanks, this is useful. Polling is centralised per cluster: one squeue -u covers every tracked job, then one sacct only for jobs that left the queue. It waits at least 2 minutes between polls, doubles the wait up to 10 minutes while nothing changes, and stops polling finished jobs. The image build is a plain apptainer build from a docker-archive with no definition file, run as a Slurm job. It's only been tested on one real cluster so far, so I can't promise it works without fakeroot everywhere. SSH certificates haven't been tested yet, so I'll add that to the list.
A correction to my earlier reply, now that I've checked it line by line against the code. The workbench has parsed real squeue/sacct/scontrol output from one university cluster, and a containerised Slurm cluster in CI runs the full submit/poll/cancel cycle on every push, but it hasn't submitted jobs to a real cluster yet, and the Apptainer image build hasn't run against a real Apptainer install. One poll can send two sacct calls (agent-submitted and user-submitted jobs are checked separately), and the checksum of the uploaded image runs on the login node. Every command, interval and source line is now listed here for admins: https://quachem.org/docs/cluster-administrators/ — corrections welcome.
Pulling should work though using the singilarity command might be better as apptainer usually also supports using it as "singilarity". Using docker containers usually comes with quite poor performance so if you're planning on using more than one node of cpus or one gpu that would definitely need work
Thank you! I'll make it detect either apptainer or singularity on the login node and use whichever is there, since plenty of sites still run SingularityCE.
Docker is only used on a researcher's own machine. on clusters the engine runs under Apptainer/Singularity with --nv.
Each job is single node with at most one GPU, but I'll benchmark native against containerised runs and publish the numbers. If multi node work comes later, it'll need host MPI bindings, and I'll design for that.
2
u/Successful_Log_3298 3d ago
We are seeing excessive RPCs to the scheduler/slurmdb from Claude-written agentic tools (usually through VSCode) incessantly polling to check on jobs it submitted, so that would likely be a recipe for getting your users suspended. If it just does it occasionally (at about the same frequency as a human might) that would be OK.
We use Open OnDemand. We also have a slurm script generator available to help users create a batch script. Most users who want to run Python scripts use OOD with Jupyter.
The biggest problems our chemistry users have is Infiniband driver or hardware issues, or GPU availability since most are running multicore/multinode/GPU enhanced molecular dynamics or ab initio programs.
2
u/IncomingSan 3d ago
6
u/andrewsb8 3d ago
I'd rather them read the wiki which explains sbatch scripts in five minutes than support an extra tool for one research use case
1
u/Low-Dragonfruit-6751 3d ago
When you build with apptainer what kinda environments are you dependent on? Usernamespaces, fakeroot, etc? That will not work on all clusters
8
u/videek 4d ago