Skip to content

Commit

Permalink
Fix bytes_limit key of mem_stats (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruturaj4 authored Feb 26, 2025
1 parent bbaaec0 commit c5ee54f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/multi_device_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def test_lax_full_like_efficient(self):
self.skipTest('Only can run test on device with mem_stats')
mesh = Mesh(devices, axis_names=("i"))
sharding = NamedSharding(mesh, P('i'))
available_memory = mem_stats['bytes_reservable_limit']
available_memory = mem_stats['bytes_limit']
array_size = available_memory // (6 * len(devices)) * len(devices)
# Set up tracemalloc to track memory usage.
tm.start()
Expand Down

0 comments on commit c5ee54f

Please sign in to comment.