llm_config.py Source File#
|
Mobilint SDK qb Compiler v0.12.0.0
MCS002-EN
|
llm_config.py
126 f"Please review the configuration kwargs passed to {cls.__name__}. These kwargs were updated and will be used: {updated_kwargs}"
Configuration for Large Language Model (LLM) compilation.
Definition llm_config.py:12
__init__(self, bool llm_config_apply, int max_data_length, int max_sequence_length, int max_cache_length, int max_core_data_length, int random_seq_length, bool use_full_seq_length, bool use_custom_mask_input, int start_dram_offset, bool use_global_core, int batch_size, List[int] npu_core_ids, bool dynamic_rope, bool optional=optional)
Initialize the LlmConfig:
Definition llm_config.py:75
LlmConfig get_llm_config(**kwargs)
Create LlmConfig with partial parameters merged with defaults.
Definition llm_config.py:203
use_custom_mask_input
Definition llm_config.py:101
max_core_data_length
Definition llm_config.py:98
max_sequence_length
Definition llm_config.py:96
use_full_seq_length
Definition llm_config.py:100
from_dict(cls, dict config_dict)
Create LlmConfig from dictionary (JSON structure)
Definition llm_config.py:130
Generated by