|
@@ -31,7 +31,7 @@ def main():
|
|
parser.add_argument('--num_handlers', type=int, default=8, required=False,
|
|
parser.add_argument('--num_handlers', type=int, default=8, required=False,
|
|
help='server will use this many processes to handle incoming requests')
|
|
help='server will use this many processes to handle incoming requests')
|
|
parser.add_argument('--min_batch_size', type=int, default=1,
|
|
parser.add_argument('--min_batch_size', type=int, default=1,
|
|
- help='Minimum required batch size for all expert operations')
|
|
|
|
|
|
+ help='Minimum required batch size for all operations (in total tokens)')
|
|
parser.add_argument('--max_batch_size', type=int, default=16384,
|
|
parser.add_argument('--max_batch_size', type=int, default=16384,
|
|
help='The total number of tokens in the same batch will not exceed this value')
|
|
help='The total number of tokens in the same batch will not exceed this value')
|
|
parser.add_argument('--prefetch_batches', type=int, default=1, required=False,
|
|
parser.add_argument('--prefetch_batches', type=int, default=1, required=False,
|
|
@@ -43,7 +43,7 @@ def main():
|
|
parser.add_argument('--cache_dir', type=str, default=None,
|
|
parser.add_argument('--cache_dir', type=str, default=None,
|
|
help='Path to a directory in which a downloaded pretrained model configuration should be cached if the standard cache should not be used.')
|
|
help='Path to a directory in which a downloaded pretrained model configuration should be cached if the standard cache should not be used.')
|
|
parser.add_argument('--device', type=str, default=None, required=False,
|
|
parser.add_argument('--device', type=str, default=None, required=False,
|
|
- help='all experts will use this device in torch notation; default: cuda if available else cpu')
|
|
|
|
|
|
+ help='all blocks will use this device in torch notation; default: cuda if available else cpu')
|
|
parser.add_argument("--torch_dtype", type=str, default="auto",
|
|
parser.add_argument("--torch_dtype", type=str, default="auto",
|
|
help="Use this dtype to store block weights and do computations. "
|
|
help="Use this dtype to store block weights and do computations. "
|
|
"By default, respect the dtypes in the pre-trained state dict.")
|
|
"By default, respect the dtypes in the pre-trained state dict.")
|
|
@@ -62,7 +62,7 @@ def main():
|
|
'on the first run and uses these estimates for future runs. '
|
|
'on the first run and uses these estimates for future runs. '
|
|
'If set to "eval", the script re-evaluates the throughput and overrides the cache.')
|
|
'If set to "eval", the script re-evaluates the throughput and overrides the cache.')
|
|
parser.add_argument('--update_period', type=float, required=False, default=30,
|
|
parser.add_argument('--update_period', type=float, required=False, default=30,
|
|
- help='Server will report experts to DHT once in this many seconds')
|
|
|
|
|
|
+ help='Server will report blocks to DHT once in this many seconds')
|
|
parser.add_argument('--expiration', type=float, required=False, default=None,
|
|
parser.add_argument('--expiration', type=float, required=False, default=None,
|
|
help='DHT entries will expire after this many seconds')
|
|
help='DHT entries will expire after this many seconds')
|
|
parser.add_argument('--initial_peers', type=str, nargs='*', required=False, default=[],
|
|
parser.add_argument('--initial_peers', type=str, nargs='*', required=False, default=[],
|