浏览代码

Try increasing max_prefetch

Aleksandr Borzunov 4 年之前
父节点
当前提交
8a34d81301
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hivemind/averaging/partition.py

+ 1 - 1
hivemind/averaging/partition.py

@@ -33,7 +33,7 @@ class TensorPartContainer:
         peer_fractions: Sequence[float],
         peer_fractions: Sequence[float],
         compression_type: Union["CompressionType", Sequence["CompressionType"]] = CompressionType.NONE,
         compression_type: Union["CompressionType", Sequence["CompressionType"]] = CompressionType.NONE,
         part_size_bytes: int = DEFAULT_PART_SIZE_BYTES,
         part_size_bytes: int = DEFAULT_PART_SIZE_BYTES,
-        prefetch: int = 1,
+        prefetch: int = 256,
     ):
     ):
         if not isinstance(compression_type, Sequence):
         if not isinstance(compression_type, Sequence):
             compression_type = [compression_type] * len(tensors)
             compression_type = [compression_type] * len(tensors)