Skip to content

Commit

Permalink
set auto_user ElevationLevel to admin and hugging face env variables …
Browse files Browse the repository at this point in the history
…to main task
  • Loading branch information
Tooyosi committed Dec 17, 2024
1 parent bf2fb17 commit 230a079
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bajor/batch/train_finetuning.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,16 @@ def create_job_tasks(job_id, task_id=1, run_opts=''):
working_directory='taskWorkingDirectory',
container_run_options='--ipc=host'
),
user_identity = batchmodels.UserIdentity(
auto_user=batchmodels.AutoUserSpecification(
scope=batchmodels.AutoUserScope.task,
elevation_level=batchmodels.ElevationLevel.admin
)
),
environment_settings=[
batchmodels.EnvironmentSetting(name="XDG_CACHE_HOME", value="$AZ_BATCH_NODE_SHARED_DIR/huggingface"),
batchmodels.EnvironmentSetting(name="HF_HOME", value="$AZ_BATCH_NODE_SHARED_DIR/huggingface"),
],
output_files=std_err_and_out
)
tasks.append(task)
Expand Down

0 comments on commit 230a079

Please sign in to comment.