@@ -244,23 +244,50 @@ positional arguments:
244244
245245optional arguments:
246246 -h, --help show this help message and exit
247+ -v {DEBUG,3,INFO,2,WARNING,1,ERROR,0}, --log-level {DEBUG,3,INFO,2,WARNING,1,ERROR,0}
248+ set verbosity level by string or number, 0=ERROR,
249+ 1=WARNING, 2=INFO and 3=DEBUG (default: INFO)
250+ -l LOG_PATH, --log-path LOG_PATH
251+ set log file to log messages to disk, if not
252+ specified, the logs will only be output to console
253+ (default: None)
254+ -m {master,collect,workers}, --mpi-log {master,collect,workers}
255+ Set the manner of logging when running with MPI.
256+ ' master' logs only on main process, ' collect'
257+ broadcasts logs from workers to master and ' workers'
258+ means each process will output its own log (default:
259+ master)
247260 -i INPUT, --input INPUT
248261 The original frozen model, which will be compressed by
249- the deepmd-kit
262+ the code (default: frozen_model.pb)
250263 -o OUTPUT, --output OUTPUT
251- The compressed model
264+ The compressed model (default:
265+ frozen_model_compressed.pb)
266+ -s STEP, --step STEP Model compression uses fifth-order polynomials to
267+ interpolate the embedding-net. It introduces two
268+ tables with different step size to store the
269+ parameters of the polynomials. The first table covers
270+ the range of the training data, while the second table
271+ is an extrapolation of the training data. The domain
272+ of each table is uniformly divided by a given step
273+ size. And the step(parameter) denotes the step size of
274+ the first table and the second table will use 10 *
275+ step as it' s step size to save the memory. Usually the
276+ value ranges from 0.1 to 0.001. Smaller step means
277+ higher accuracy and bigger model size (default: 0.01)
252278 -e EXTRAPOLATE, --extrapolate EXTRAPOLATE
253- The scale of model extrapolation
254- -s STRIDE, --stride STRIDE
255- The uniform stride of tabulation ' s first table, the
256- second table will use 10 * stride as it ' s uniform
257- stride
279+ The domain range of the first table is automatically
280+ detected by the code: [d_low, d_up]. While the second
281+ table ranges from the first table' s upper
282+ boundary(d_up) to the extrapolate(parameter) * d_up:
283+ [d_up, extrapolate * d_up] (default: 5)
258284 -f FREQUENCY, --frequency FREQUENCY
259- The frequency of tabulation overflow check(If the
285+ The frequency of tabulation overflow check(Whether the
260286 input environment matrix overflow the first or second
261287 table range). By default do not check the overflow
262- -d FOLDER, --folder FOLDER
263- path to checkpoint folder
288+ (default: -1)
289+ -c CHECKPOINT_FOLDER, --checkpoint-folder CHECKPOINT_FOLDER
290+ path to checkpoint folder (default: .)
264291` ` `
265292** Parameter explanation**
266293
0 commit comments