Force this stuff.
This commit is contained in:
parent
c859663f98
commit
a34dbb0ca1
|
@ -369,6 +369,12 @@ def launcher(event_loop):
|
||||||
args.append("--disable-grammar-support")
|
args.append("--disable-grammar-support")
|
||||||
if num_shard is not None:
|
if num_shard is not None:
|
||||||
args.extend(["--num-shard", str(num_shard)])
|
args.extend(["--num-shard", str(num_shard)])
|
||||||
|
else:
|
||||||
|
try:
|
||||||
|
os.environ["WORLD_SIZE"] = 1
|
||||||
|
del os.environ["NUM_SHARD"]
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
if quantize is not None:
|
if quantize is not None:
|
||||||
args.append("--quantize")
|
args.append("--quantize")
|
||||||
args.append(quantize)
|
args.append(quantize)
|
||||||
|
|
Loading…
Reference in New Issue