mirror of
https://github.com/nod-ai/SHARK-Studio.git
synced 2026-01-09 22:07:55 -05:00
fixed bug where device_idx was hardcoded (#1693)
Co-authored-by: Elias Joseph <elias@nod-labs.com>
This commit is contained in:
@@ -785,7 +785,7 @@ class ShardedVicuna(VicunaBase):
|
|||||||
module = SharkInference(
|
module = SharkInference(
|
||||||
None,
|
None,
|
||||||
device=device,
|
device=device,
|
||||||
device_idx=idx % 4,
|
device_idx=device_idx,
|
||||||
mlir_dialect="tm_tensor",
|
mlir_dialect="tm_tensor",
|
||||||
mmap=False,
|
mmap=False,
|
||||||
)
|
)
|
||||||
@@ -798,7 +798,7 @@ class ShardedVicuna(VicunaBase):
|
|||||||
module = SharkInference(
|
module = SharkInference(
|
||||||
mlirs[idx],
|
mlirs[idx],
|
||||||
device=device,
|
device=device,
|
||||||
device_idx=idx % 4,
|
device_idx=device_idx,
|
||||||
mlir_dialect="tm_tensor",
|
mlir_dialect="tm_tensor",
|
||||||
mmap=False,
|
mmap=False,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user