Skip to content

add --venv_path option for running without containers#37

Open
timurcarstensen wants to merge 101 commits intomainfrom
venv-support-new
Open

add --venv_path option for running without containers#37
timurcarstensen wants to merge 101 commits intomainfrom
venv-support-new

Conversation

@timurcarstensen
Copy link
Collaborator

Adds --venv_path to schedule-eval. If provided, jobs run using that venv instead of a container.

CI updated to test both modes.

merge after #28

Summary:

  • Add --venv_path CLI option to schedule-eval for running evaluations without containers
  • Update sbatch template to conditionally use venv activation or singularity exec based on whether venv_path is set
  • Add requirements-venv.txt defining dependencies for venv-based execution
  • Add docs/VENV.md documenting venv setup and usage
  • Update CI workflow to test both container and venv modes via matrix strategy

Add a GitHub Actions workflow that sets up a real SLURM cluster with
Apptainer on a GPU runner to test the schedule_evals workflow end-to-end.

- New workflow: slurm-integration.yml
  - Sets up SLURM (slurmctld + slurmd) on AWS GPU runner
  - Installs Apptainer and builds test container
  - Pre-downloads tiny-gpt2 model and arc_easy dataset
  - Runs integration test that validates full workflow

- New test container: tests/integration/ci.def
  - Based on PyTorch with CUDA support
  - Includes lm_eval and dependencies

- New integration test: tests/integration/test_slurm.py
  - Submits real SLURM job via schedule_evals
  - Waits for completion and validates results JSON

- Updated clusters.yaml with CI cluster configuration
Switch to CPU instances (i7ie) since GPU quota is not available:
- Remove GPU/GRES configuration from SLURM setup
- Update test to support --dry-run mode for CPU-only testing
- Validate sbatch script generation without actual job execution
- Update CI cluster config to use debug partition

Full GPU testing can be re-enabled later when quota is available.
@timurcarstensen timurcarstensen changed the title add --venv_path option for running without containers#31 add --venv_path option for running without containers Feb 5, 2026
Copy link
Collaborator

@geoalgo geoalgo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we make this PR independent of the AWS integration?
The line diffs are: +1 077-153 whereas it seems like it should be just be about two files that are changed?

@timurcarstensen
Copy link
Collaborator Author

Could we make this PR independent of the AWS integration? The line diffs are: +1 077-153 whereas it seems like it should be just be about two files that are changed?

I was going to merge this after merging #28 so it would show up as only 2 files being changed after merging main into this feature branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants