CERC-AAI / Robin

Apache License 2.0
62 stars 8 forks source link

Added llm-type argument #39

Open PrateekHumane opened 9 months ago

PrateekHumane commented 9 months ago

Added an argument llm_type to choose the llm model class that will be used in both training and inference.

The valid values for llm_type are taken from the existing 'model_type' variable from the corresponding models config class. More specifically the choices are: ['llava', 'llava_mistral','llava_neox']

When adding a new llm class, as long as the class is defined, the method __init_subclass__ will be invoked in the LlavaMetaModel base class and the Enum class variable ModelType will automatically be updated.