Skip to content

Commit

Permalink
Fix shard_llm_dataset check
Browse files Browse the repository at this point in the history
Signed-off-by: aviator19941 <avinash.sharma@amd.com>
  • Loading branch information
aviator19941 committed Nov 2, 2024
1 parent fc51708 commit 04af5af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sharktank/sharktank/examples/sharding/shard_llm_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ def main(raw_args=None):
raise RuntimeError(f"Need file destination for IRPA file")

if args.tensor_parallelism_size < 2:
raise RuntimeError(f"Expect sharding greater than 1 found {args.shard_count}")
raise RuntimeError(
f"Expect sharding greater than 1 found {args.tensor_parallelism_size}"
)

hp = LlamaHParams.from_gguf_props(dataset.properties)
llama_config = LlamaModelConfig(
Expand Down

0 comments on commit 04af5af

Please sign in to comment.