Skip to content

Commit

Permalink
Merge pull request #61 from zooniverse/zoobot-upgrade-testing
Browse files Browse the repository at this point in the history
add environment_settings to JobPreparationTask
  • Loading branch information
Tooyosi authored Dec 16, 2024
2 parents ce6e03a + 4852b43 commit 09389c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bajor/batch/train_finetuning.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ def create_batch_job(job_id, manifest_container_path, pool_id, checkpoint_target
elevation_level=batchmodels.ElevationLevel.non_admin
)
),
environment_settings=[
batchmodels.EnvironmentSetting(name="HF_HOME", value="$AZ_BATCH_NODE_SHARED_DIR/.cache/huggingface"),
],
#
# A busted preparation task means the main task won't launch...ever!
# and leave the node in a scaled state costing $$ ££
Expand Down

0 comments on commit 09389c3

Please sign in to comment.