File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -63,22 +63,22 @@ def test_init_success(self, mock_vllm_config):
6363 assert worker .profile_dir is None
6464 assert worker .devices == ['tpu:0' ]
6565
66- @patch ('tpu_inference.worker.tpu_worker_jax .vllm_envs' )
66+ @patch ('tpu_inference.worker.tpu_worker .vllm_envs' )
6767 def test_init_with_profiler_on_rank_zero (self , mock_envs ,
6868 mock_vllm_config ):
6969 """Tests that the profiler directory is set correctly on rank 0."""
70- mock_vllm_envs .VLLM_TORCH_PROFILER_DIR = "/tmp/profiles"
70+ mock_envs .VLLM_TORCH_PROFILER_DIR = "/tmp/profiles"
7171 worker = TPUWorker (vllm_config = mock_vllm_config ,
7272 local_rank = 0 ,
7373 rank = 0 ,
7474 distributed_init_method = "test_method" )
7575 assert worker .profile_dir == "/tmp/profiles"
7676
77- @patch ('tpu_inference.worker.tpu_worker_jax .vllm_envs' )
77+ @patch ('tpu_inference.worker.tpu_worker .vllm_envs' )
7878 def test_init_with_profiler_on_other_ranks (self , mock_envs ,
7979 mock_vllm_config ):
8080 """Tests that the profiler directory is NOT set on non-rank 0 workers."""
81- mock_vllm_envs .VLLM_TORCH_PROFILER_DIR = "/tmp/profiles"
81+ mock_envs .VLLM_TORCH_PROFILER_DIR = "/tmp/profiles"
8282 worker = TPUWorker (vllm_config = mock_vllm_config ,
8383 local_rank = 1 ,
8484 rank = 1 ,
You can’t perform that action at this time.
0 commit comments