Disabling the sharding please.

This commit is contained in:
Nicolas Patry 2024-09-17 10:12:52 +02:00
parent 5827137a29
commit e680a57147
No known key found for this signature in database
GPG Key ID: 64AF4752B2967863
2 changed files with 6 additions and 10 deletions

View File

@ -21,6 +21,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
- name: Setup nix to mounted disk
run: |
sudo mkdir -p /mnt/hf_cache/nix/
sudo ln -s /mnt/hf_cache/nix /nix
- uses: cachix/cachix-action@v14
with:
name: text-generation-inference

View File

@ -370,11 +370,7 @@ def launcher(event_loop):
if num_shard is not None:
args.extend(["--num-shard", str(num_shard)])
else:
try:
os.environ["WORLD_SIZE"] = 1
del os.environ["NUM_SHARD"]
except Exception:
pass
args.extend(["--sharded", "false"])
if quantize is not None:
args.append("--quantize")
args.append(quantize)
@ -457,11 +453,7 @@ def launcher(event_loop):
if num_shard is not None:
args.extend(["--num-shard", str(num_shard)])
else:
try:
os.environ["WORLD_SIZE"] = 1
del os.environ["NUM_SHARD"]
except Exception:
pass
args.extend(["--sharded", "false"])
if quantize is not None:
args.append("--quantize")
args.append(quantize)