Skip to content

Commit

Permalink
fixed bug where device_idx was hardcoded (nod-ai#1693)
Browse files Browse the repository at this point in the history
Co-authored-by: Elias Joseph <elias@nod-labs.com>
  • Loading branch information
Eliasj42 and Elias Joseph authored Jul 26, 2023
1 parent 927b662 commit 9d399eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/language_models/scripts/vicuna.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ def compile_to_vmfb_one_model(
module = SharkInference(
None,
device=device,
device_idx=idx % 4,
device_idx=device_idx,
mlir_dialect="tm_tensor",
mmap=False,
)
Expand All @@ -798,7 +798,7 @@ def compile_to_vmfb_one_model(
module = SharkInference(
mlirs[idx],
device=device,
device_idx=idx % 4,
device_idx=device_idx,
mlir_dialect="tm_tensor",
mmap=False,
)
Expand Down

0 comments on commit 9d399eb

Please sign in to comment.