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)
|
||||
|
||||
# Process 4 shards per GPU (8 total) for max parallelism
|
||||
shards_per_gpu = 4
|
||||
# Process 3 shards per GPU (6 total) - adjust based on GPU memory
|
||||
shards_per_gpu = 3
|
||||
num_gpus = 2
|
||||
max_parallel = shards_per_gpu * num_gpus
|
||||
|
||||
|
||||
Reference in New Issue
Block a user