Skip to content

Commit

Permalink
set gpu util = -1
Browse files Browse the repository at this point in the history
  • Loading branch information
bachvudinh committed Aug 6, 2024
1 parent 3f6b56e commit 9701f35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def setUpClass(cls):
print(f"Found {model_save_dir}. Skipping download.")
# Model loading using vllm
cls.tokenizer = AutoTokenizer.from_pretrained(model_save_dir)
cls.llm = LLM(model_save_dir, tokenizer=model_save_dir, gpu_memory_utilization=0.3)
cls.llm = LLM(model_save_dir, tokenizer=model_save_dir, gpu_memory_utilization=-1)

# Load dataset
data_save_dir = os.path.join(args.cache_dir, args.data_dir)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def model_setup(custom_args):
print(f"Found {model_save_dir}. Skipping download.")

tokenizer = AutoTokenizer.from_pretrained(model_save_dir)
llm = LLM(model_save_dir, tokenizer=model_save_dir, gpu_memory_utilization=0.3)
llm = LLM(model_save_dir, tokenizer=model_save_dir, gpu_memory_utilization=-1)

data_save_dir = os.path.join(args.cache_dir, args.data_dir)
dataset = load_dataset(args.data_dir, split='train')
Expand Down

0 comments on commit 9701f35

Please sign in to comment.