Open Conchylicultor opened 4 days ago
Hi @Conchylicultor , thanks for posting!
I suggest you take a look at the subgroups feature
Otherwise you can also have a field with simple_parsing.field(choices=dict_with_str_to_models.keys(), default="transformer")
I have a code like:
I would like to support this through CLI. I have a mapping
str -> type[Model]
, such as the user can pass a string--model_cls=Transformer
that I can then normalize to the model class.Something like:
However I do not know how to make
simple_parsing
parsemodel_cls
as astr
.