|
135 | 135 | - The application priority of matching rules is as follows, from highest to lowest: query fields > specific response fields > regular expression matching rules. |
136 | 136 | - `--custom_register_path`: Default is `None`. Pass in a `.py` file used to register templates, models, and datasets. |
137 | 137 | - `--custom_dataset_info`: Default is `None`. Pass in the path to an external `dataset_info.json`, a JSON string, or a dictionary. Used to register custom datasets. The format example: https://github.com/modelscope/swift/blob/main/swift/llm/data/dataset_info.json |
138 | | -- `device_map_config_path`: Manually configure the model's device map from a local file, defaults to None. |
| 138 | +- `--device_map_config_path`: Manually configure the model's device map from a local file, defaults to None. |
| 139 | +- `--device_max_memory`: The max memory of each device can use for `device_map`, `List`, default is `[]`, The number of values must equal to the device count. Like `10GB 10GB`. |
139 | 140 |
|
140 | 141 | ### Long Context |
141 | 142 |
|
@@ -253,7 +254,8 @@ RLHF parameters are an extension of the sft parameters, with the addition of the |
253 | 254 | - `--load_args_from_ckpt_dir`: Whether to read model configuration info from `sft_args.json` file in `ckpt_dir`. Default is `True`. |
254 | 255 | - `--load_dataset_config`: This parameter only takes effect when `--load_args_from_ckpt_dir true`. I.e. whether to read dataset related configuration from `sft_args.json` file in `ckpt_dir`. Default is `False`. |
255 | 256 | - `--eval_human`: Whether to evaluate using validation set portion of dataset or manual evaluation. Default is `None`, for intelligent selection, if no datasets (including custom datasets) are passed, manual evaluation will be used. If datasets are passed, dataset evaluation will be used. |
256 | | -- `device_map_config_path`: Manually configure the model's device map from a local file, defaults to None. |
| 257 | +- `--device_map_config_path`: Manually configure the model's device map from a local file, defaults to None. |
| 258 | +- `--device_max_memory`: The max memory of each device can use for `device_map`, `List`, default is `[]`, The number of values must equal to the device count. Like `10GB 10GB`. |
257 | 259 | - `--seed`: Default is `42`, see `sft.sh command line arguments` for parameter details. |
258 | 260 | - `--dtype`: Default is `'AUTO`, see `sft.sh command line arguments` for parameter details. |
259 | 261 | - `--dataset`: Default is `[]`, see `sft.sh command line arguments` for parameter details. |
|
0 commit comments