Skip to content

Commit

Permalink
undo accidental rename due to copy-paste and correct missed config st…
Browse files Browse the repository at this point in the history
…ructure change
  • Loading branch information
renxida committed Dec 10, 2024
1 parent defd4da commit 2d99109
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app_tests/benchmark_tests/llm/sglang_benchmarks/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,18 @@ def pre_process_model(request, tmp_path_factory):


@pytest.fixture(scope="module")
def write_config(request, model_test_dir):
def write_config(request, pre_process_model):
batch_sizes = request.param["batch_sizes"]
prefix_sharing_algorithm = request.param["prefix_sharing_algorithm"]

# Construct the new config filename
config_path = (
model_test_dir
pre_process_model
/ f"{'_'.join(str(bs) for bs in batch_sizes)}_{prefix_sharing_algorithm}.json"
)

# Read the base config file
base_config_path = model_test_dir / "config.json"
base_config_path = pre_process_model / "config.json"
with open(base_config_path, "r") as f:
config = json.load(f)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def paged_kv_unit_size_elements(self) -> int:
size = 1
size *= self.transformer_block_count
size *= 2 # K and V cache line
size *= self.attn_head_count
size *= self.paged_kv_cache.attention_head_count_kv
size *= self.attn_head_dim
return size

Expand Down

0 comments on commit 2d99109

Please sign in to comment.