llm_config.py Source File#
|
Mobilint SDK qb Compiler v1.0
MCS002-KR
|
llm_config.py
115 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
random_seq_length
Definition llm_config.py:90
__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_global_core, int batch_size, List[int] npu_core_ids, bool dynamic_rope, bool optional=optional)
Initialize the LlmConfig:
Definition llm_config.py:68
max_core_data_length
Definition llm_config.py:89
use_full_seq_length
Definition llm_config.py:91
from_dict(cls, dict config_dict)
Create LlmConfig from dictionary (JSON structure)
Definition llm_config.py:119
LlmConfig get_llm_config(**kwargs)
Create LlmConfig with partial parameters merged with defaults.
Definition llm_config.py:186
max_sequence_length
Definition llm_config.py:87
Generated by