mim/docs/customization.md
Haodong Duan 1bb17cd47d
[Improvement] customize with .mimrc (#46)
* support mimrc

* update doc
2021-06-23 22:16:08 +08:00

576 B

Customization

You can customize MIM using the ~/.mimrc file, which should be placed in your home directory.

Customize Default Values of MIM commands

You can customize the default values of MIM commands with ~/.mimrc:

[option.train]
gpus = 8
gpus_per_node = 8
cpus_per_task = 4
launcher = 'slurm'

[option.install]
is_yes = True

This config file set the default values of options gpus, gpus_per_node, cpus_per_task, launcher of sub-command train to 8, 8, 4, 'slurm', set the default value of option is_yes of sub-command install to True.