Skip to content

Commit

Permalink
Made some adjustments for tensor parallel vllm to work
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Semin committed Feb 17, 2024
1 parent b2d237c commit e40ccab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lm_eval/models/vllm_causallms.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ def __init__(
device: str = "cuda",
data_parallel_size: int = 1,
):
import ray
ray.init(ignore_reinit_error=True, num_cpus=8, num_gpus=tensor_parallel_size)

super().__init__()

if not find_spec("vllm"):
Expand Down

0 comments on commit e40ccab

Please sign in to comment.