|
42 | 42 | type: string
|
43 | 43 |
|
44 | 44 | jobs:
|
45 |
| - pathways: |
| 45 | + # pathways: |
| 46 | + # runs-on: ["self-hosted", "${{ inputs.device_type }}", "${{ inputs.device_name }}"] |
| 47 | + # steps: |
| 48 | + # - uses: actions/checkout@v4 |
| 49 | + # - name: Start containers using script |
| 50 | + # run: | |
| 51 | + # bash docker_build_pathways_containers.sh |
| 52 | + run: |
46 | 53 | runs-on: ["self-hosted", "${{ inputs.device_type }}", "${{ inputs.device_name }}"]
|
| 54 | + container: |
| 55 | + # image: gcr.io/tpu-prod-env-multipod/maxtext_${{ github.run_id }}:tpu |
| 56 | + image: gcr.io/tpu-prod-env-multipod/maxtext_jax_stable_stack:latest |
| 57 | + volumes: |
| 58 | + - /home/runner/actions-runner/_work/maxtext/maxtext:/deps |
| 59 | + env: |
| 60 | + XLA_PYTHON_CLIENT_MEM_FRACTION: ${{ inputs.xla_python_client_mem_fraction }} |
| 61 | + TF_FORCE_GPU_ALLOW_GROWTH: ${{ inputs.tf_force_gpu_allow_growth }} |
| 62 | + # JAX_PLATFORMS: "proxy" |
| 63 | + # JAX_BACKEND_TARGET: "grpc://localhost:29000" |
| 64 | + options: ${{ inputs.container_resource_option }} |
47 | 65 | steps:
|
48 | 66 | - uses: actions/checkout@v4
|
| 67 | + - name: Install Docker Compose and configure docker |
| 68 | + run: | |
| 69 | + apt-get -y install docker |
| 70 | + apt-get -y install docker-compose-plugin |
| 71 | + docker compose version |
| 72 | + gcloud auth configure-docker us-docker.pkg.dev --quiet |
49 | 73 | - name: Start containers using script
|
50 | 74 | run: |
|
51 | 75 | bash docker_build_pathways_containers.sh
|
52 |
| - # run: |
53 |
| - # runs-on: ["self-hosted", "${{ inputs.device_type }}", "${{ inputs.device_name }}"] |
54 |
| - # container: |
55 |
| - # image: gcr.io/tpu-prod-env-multipod/maxtext_${{ github.run_id }}:tpu |
56 |
| - # volumes: |
57 |
| - # - /home/runner/actions-runner/_work/maxtext/maxtext:/deps |
58 |
| - # env: |
59 |
| - # XLA_PYTHON_CLIENT_MEM_FRACTION: ${{ inputs.xla_python_client_mem_fraction }} |
60 |
| - # TF_FORCE_GPU_ALLOW_GROWTH: ${{ inputs.tf_force_gpu_allow_growth }} |
61 |
| - # # JAX_PLATFORMS: "proxy" |
62 |
| - # # JAX_BACKEND_TARGET: "grpc://localhost:29000" |
63 |
| - # options: ${{ inputs.container_resource_option }} |
64 |
| - # steps: |
65 |
| - # - uses: actions/checkout@v4 |
66 |
| - # - name: Run Tests |
67 |
| - # run: | |
68 |
| - # export JAX_PLATFORMS="proxy" |
69 |
| - # export JAX_BACKEND_TARGET="grpc://localhost:29000" |
70 |
| - # echo $JAX_BACKEND_TARGET |
71 |
| - # echo "Set Pathways env variables" |
72 |
| - # python3 -m pytest -s ${{ inputs.test_directory }} -m "${{ inputs.pytest_marker }}" |
| 76 | + - name: Run Tests with Pathways backend |
| 77 | + run: | |
| 78 | + export JAX_PLATFORMS="proxy" |
| 79 | + export JAX_BACKEND_TARGET="grpc://localhost:29000" |
| 80 | + echo "Set Pathways env variables" |
| 81 | + echo $JAX_BACKEND_TARGET |
| 82 | + cd MaxText/ |
| 83 | + python3 -m pytest -s ${{ inputs.test_directory }} -m "${{ inputs.pytest_marker }}" |
0 commit comments