fix: reduce to 3 shards per GPU (6 total) for memory
This commit is contained in:
@@ -47,8 +47,8 @@ def streaming_quantize(model_path: str, output_path: str):
|
|||||||
|
|
||||||
config = AutoConfig.from_pretrained(model_path, trust_remote_code=True)
|
config = AutoConfig.from_pretrained(model_path, trust_remote_code=True)
|
||||||
|
|
||||||
# Process 4 shards per GPU (8 total) for max parallelism
|
# Process 3 shards per GPU (6 total) - adjust based on GPU memory
|
||||||
shards_per_gpu = 4
|
shards_per_gpu = 3
|
||||||
num_gpus = 2
|
num_gpus = 2
|
||||||
max_parallel = shards_per_gpu * num_gpus
|
max_parallel = shards_per_gpu * num_gpus
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user