[Feature] Make it more convenient to work with dictionary type parameters in bash commands #11
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Problem
When I use bash commands and want to specify additional dictionary type configuration options, I need to specify the entire dictionary with escape.
mlup run -m model.onnx --up.uvicorn_kwargs='{"workers": 4, "timeout_graceful_shutdown": 10}'
Solution
Add the ability to specify dictionary keys for each key separately.
But you need to leave the current format for installing the parameter dictionary. The parameters must be applied sequentially - first the entire dictionary, and then the point parameters in it will be replaced.
mlup run -m model.onnx --up.uvicorn_kwargs.workers=2 --up.uvicorn_kwargs='{"workers": 4, "timeout_graceful_shutdown": 10}'
В итоге словарь
uvicorn_kwargs
будет иметь вид:{"workers": 2, "timeout_graceful_shutdown": 10}
.Dictionary type parameters:
mlup.ml.conf.storage_kwargs
mlup.web.conf.uvicorn_kwargs
The text was updated successfully, but these errors were encountered: