Skip to content

Commit

Permalink
Enable XLA_USE_BF16 for hf-llm tests (GoogleCloudPlatform#1046)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavya01 authored Feb 12, 2024
1 parent edafd46 commit 5dcf21f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/pytorch/nightly/hf-llm.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ local utils = import 'templates/utils.libsonnet';
export LD_LIBRARY_PATH=/usr/local/lib/
export PT_XLA_DEBUG=0
export USE_TORCH=ON
export XLA_USE_BF16=1
|||,
tpuVmExtraSetup: |||
pip install --upgrade accelerate
Expand Down
1 change: 1 addition & 0 deletions tests/pytorch/r2.2/hf-llm.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ local utils = import 'templates/utils.libsonnet';
export LD_LIBRARY_PATH=/usr/local/lib/
export PT_XLA_DEBUG=0
export USE_TORCH=ON
export XLA_USE_BF16=1
|||,
tpuVmExtraSetup: |||
pip install --upgrade accelerate
Expand Down

0 comments on commit 5dcf21f

Please sign in to comment.