mirror of
https://github.com/nod-ai/SHARK-Studio.git
synced 2026-01-08 05:24:00 -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(
|
||||
None,
|
||||
device=device,
|
||||
device_idx=idx % 4,
|
||||
device_idx=device_idx,
|
||||
mlir_dialect="tm_tensor",
|
||||
mmap=False,
|
||||
)
|
||||
@@ -798,7 +798,7 @@ class ShardedVicuna(VicunaBase):
|
||||
module = SharkInference(
|
||||
mlirs[idx],
|
||||
device=device,
|
||||
device_idx=idx % 4,
|
||||
device_idx=device_idx,
|
||||
mlir_dialect="tm_tensor",
|
||||
mmap=False,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user