Repository navigation
Adding HPC array support - #59
Merged
Merged
Conversation
epbrenner
requested review from
AbhirupaGhosh,
amcim,
eboyer221 and
jananiravi
November 6, 2026 22:13
Adding the ability for tasks to be split into chunks and computed on separate HPC nodes for Slurm array jobs. task-chunks.R handles the details, workflow.R includes the user-facing implementation. Currently, array jobs require you to plan the array first, then execute (the actual modeling on many workers in an array), and finally collect the results into a single result bundle.
epbrenner
force-pushed
the
hpc-parallelization
branch
from
November 6, 2026 23:06
8bfa669 to
a05caaa
Compare
Primarily updates HPC performance with Slurm arrays. Now spins out jobs more robustly into very large-scale arrays, and when OOM errors pop up (they will), this logs and auto-retries with additional memory for two more retries. Benchmarking with S. sonnei shows great improvements in runtime when scaled up with large arrays. Also some MDR scoring changes, which aren't final and deserve scrutiny.
Wasn't catching false positives for some MDR classes, bug has been relocated outside and removed from the premises.
Updating CV handling so folds can be distributed to individual CPU cores, which benefits some very very very slow MDR models. Adding verbosity handling, changing what "vanilla" refers to and adding a lot more documentation to help users figure out what different parameters do.
Keeps both sides' workflow arguments and tests. Array collection now replays the saved rescore_min_seeds (it always used 3), runTaskChunk() uses .threadsBPPARAM() so threads don't fork inside Positron or RStudio, and the collection test checks #53's Parquet rescoring outputs instead of discovery.rds.
Contributor
|
I merged the feature-rescoring branch in here as that is the branch we should merge this into now that #57 was already merged. Basically things look pretty good in this PR, did the merge to deal with the conflicts
|
Oops. Co-Authored-By: Emily Boyer <130874527+eboyer221@users.noreply.github.com>
Updated version can return for a later PR
Falling back to previous MDR scoring and tuning behavior. These changes deserve greater scrutiny and should be made in a future PR, and these updates are not necessary for v1. Tossing them for now to keep this PR cleaner!
…imization # Conflicts: # R/rescore.R # R/task-chunks.R # R/workflow.R # man/rescoreFeatures.Rd # man/runModelingWorkflow.Rd # tests/testthat/test-workflow-presets.R
amcim
approved these changes
Nov 24, 2026
Contributor
|
@epbrenner Note that for merging this one, I think the reason PR 59 is spinning and infinitely not declared as ready is because its targetting branch for PR 57, the merged PR |
HPC + MDR optimization & updated defaults
epbrenner
changed the base branch from
organization-updates
to
feature-rescoring
November 24, 2026 19:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

"Evan, I don't want to run 142,000 ML models on my Mac Mini. 😢"
Then check this out. Adds task-based chunking of models that can be used for Slurm cluster job arrays! Adds task-chunks.R which handles the chunking logic (which is slightly complicated by shared model fits, so each chunk needs to have the same tasks that rely on the same model fits for the greatest speedup). Added parameters to workflow.R so users can prepare an array job, run it, and then combine it afterwards. The default is keeping this in "fit" mode, which is the previous behavior and when on regular computers instead of HPC monstrosities you can simply ignore these parameters entirely.
Tested on Alpine in a Conda environment. Use instructions are politely included in the documentation.