Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
msaroufim committed Nov 12, 2024
1 parent e937bda commit 196fab2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/train_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
inputs:
script_content:
description: 'Content of train.py'
required: false
required: true
type: string

jobs:
Expand All @@ -16,14 +16,19 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10' # or your preferred version
python-version: '3.10'

- name: Install dependencies
run: |
pip install numpy
pip install torch --index-url https://download.pytorch.org/whl/rocm6.2
- name: Create and run training script
- name: Create training script
run: |
echo "${{ github.event.inputs.script_content }}" > train.py
cat train.py
- name: Run training script
run: |
python train.py > training.log 2>&1
Expand Down

0 comments on commit 196fab2

Please sign in to comment.