experimental_experiment.torch_models.llm_model_helper¶
- experimental_experiment.torch_models.llm_model_helper.get_ai21_jamba_15_mini(inputs_as_dict: bool = False, **kwargs) Tuple[Any, Tuple[Any, ...] | Dict[str, Any]] [source]¶
Gets a non initialized model.
- Parameters:
inputs_as_dict – returns dummy inputs as a dictionary or not
kwargs – to overwrite the configuration, example
num_hidden_layers=1
- Returns:
model, inputs
- experimental_experiment.torch_models.llm_model_helper.get_all_mini_ml_l6_v1(inputs_as_dict: bool = False, **kwargs) Tuple[Any, Tuple[Any, ...] | Dict[str, Any]] [source]¶
Gets a non initialized model.
- Parameters:
inputs_as_dict – returns dummy inputs as a dictionary or not
kwargs – to overwrite the configuration, example
num_hidden_layers=1
- Returns:
model, inputs
See all-MiniLM-L6-v1.
- experimental_experiment.torch_models.llm_model_helper.get_falcon_mamba_7b(inputs_as_dict: bool = False, **kwargs) Tuple[Any, Tuple[Any, ...] | Dict[str, Any]] [source]¶
Gets a non initialized model.
- Parameters:
inputs_as_dict – returns dummy inputs as a dictionary or not
kwargs – to overwrite the configuration, example
num_hidden_layers=1
- Returns:
model, inputs
- experimental_experiment.torch_models.llm_model_helper.get_llama_32_9b_vision(inputs_as_dict: bool = False, **kwargs) Tuple[Any, Tuple[Any, ...] | Dict[str, Any]] [source]¶
Gets a non initialized model.
- Parameters:
inputs_as_dict – returns dummy inputs as a dictionary or not
kwargs – to overwrite the configuration, example
num_hidden_layers=1
- Returns:
model, inputs
See MLlama.
- experimental_experiment.torch_models.llm_model_helper.get_phi_35_mini_instruct(inputs_as_dict: bool = False, batch: int = 1, **kwargs) Tuple[Any, Tuple[Any, ...] | Dict[str, Any]] [source]¶
Gets a non initialized model.
- Parameters:
inputs_as_dict – returns dummy inputs as a dictionary or not
batch – batch size
kwargs – to overwrite the configuration, example
num_hidden_layers=1
- Returns:
model, inputs
- experimental_experiment.torch_models.llm_model_helper.get_phi_3_vision_128k_instruct(inputs_as_dict: bool = False, **kwargs) Tuple[Any, Tuple[Any, ...] | Dict[str, Any]] [source]¶
Gets a non initialized model.
- Parameters:
inputs_as_dict – returns dummy inputs as a dictionary or not
kwargs – to overwrite the configuration, example
num_hidden_layers=1
- Returns:
model, inputs
- experimental_experiment.torch_models.llm_model_helper.get_smollm_1_7b(inputs_as_dict: bool = False, **kwargs) Tuple[Any, Tuple[Any, ...] | Dict[str, Any]] [source]¶
Gets a non initialized model.
- Parameters:
inputs_as_dict – returns dummy inputs as a dictionary or not
kwargs – to overwrite the configuration, example
num_hidden_layers=1
- Returns:
model, inputs
See SmolLM-1.7B.