Skip to content

Commit

Permalink
Improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
sogartar committed Oct 25, 2024
1 parent 38c3410 commit 3fbb144
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions sharktank/sharktank/examples/export_paged_llm_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,14 @@ def main():
dataset = cli.get_input_dataset(args)

hp = configs.LlamaHParams.from_gguf_props(dataset.properties)
tensor_parallelism_size = (
dataset.properties["tensor_parallelism_size"]
if "tensor_parallelism_size" in dataset.properties
else 1
)
llama_config = LlamaModelConfig(
hp,
tensor_parallelism_size=dataset.properties["tensor_parallelism_size"]
if "tensor_parallelism_size" in dataset.properties
else 1,
tensor_parallelism_size=tensor_parallelism_size,
use_hf=False,
static_tables=False, # Rely on the compiler for hoisting tables.
kv_cache_type="direct" if args.bs == [1] else "paged",
Expand Down

0 comments on commit 3fbb144

Please sign in to comment.