> Documentation Index
> Fetch the complete documentation index at: https://docs.mobilint.com/compiler/kr/v0.11.0.1/llms.txt
> Use this file to discover all available pages before exploring further.
> Append index.md to any page URL for its Markdown.
> All Mobilint manuals: https://docs.mobilint.com/llms.txt

# qubee.configs.llm\_config

## LlmConfig

```python
class LlmConfig(ConfigABC)
```

### Attributes

| Name | Description |
| --- | --- |
| [`py_to_cpp_name`](<#llmconfig-py-to-cpp-name>) |  |
| [`min_max_check`](<#llmconfig-min-max-check>) |  |

#### py\_to\_cpp\_name

```python
py_to_cpp_name = {
    "max_data_len": "maxDataLen",
    "max_seq_len": "maxSeqLen",
    "max_cache_len": "maxCacheLen",
    "random_seq_len_calib": "randomSeqLenCalib",
    "use_full_seq_len_calib": "useFullSeqLenCalib",
    "use_custom_mask_input": "useCustomMaskInput",
    "start_dram_offset": "startDramOffset",
    "use_global_core": "useGlobalCore",
    "llm_batch_size": "llmBatchSize",
    "npu_core_ids": "npuCoreIds",
}
```

#### min\_max\_check

```python
min_max_check = {
    "max_data_len": [0, None],
    "max_seq_len": [0, None],
    "max_cache_len": [0, None],
    "random_seq_len_calib": [0, None],
    "use_full_seq_len_calib": [0, 1],
    "use_custom_mask_input": [0, 1],
    "start_dram_offset": [0, None],
    "use_global_core": [0, 1],
    "llm_batch_size": [0, None],
}
```

### Methods

| Name | Description |
| --- | --- |
| [`__init__`](<#llmconfig-init>) |  |
| [`default_config`](<#llmconfig-default-config>) |  |
| [`to_dict`](<#llmconfig-to-dict>) |  |

#### \_\_init\_\_

```python
def __init__(
    self,
    max_data_len: int,
    max_seq_len: int,
    max_cache_len: int,
    random_seq_len_calib: int,
    use_full_seq_len_calib: bool,
    use_custom_mask_input: bool,
    start_dram_offset: int,
    use_global_core: bool,
    llm_batch_size: int,
    npu_core_ids: list[int],
    optional: bool = True,
)
```

#### default\_config

```python
def default_config(cls)
```

#### to\_dict

```python
def to_dict(self)
```

## Functions

| Name | Description |
| --- | --- |
| [`track_passed_args`](<#track-passed-args>) |  |
| [`get_llm_config`](<#get-llm-config>) |  |

### track\_passed\_args

```python
def track_passed_args(fn)
```

### get\_llm\_config

```python
def get_llm_config(
    max_data_len: int = 4096,
    max_seq_len: int = 4096,
    max_cache_len: int = 4096,
    random_seq_len_calib: int = 80,
    use_full_seq_len_calib: bool = False,
    use_custom_mask_input: bool = False,
    start_dram_offset: int = 0,
    use_global_core: bool = False,
    llm_batch_size: int = 1,
    npu_core_ids: list[int] = [0],
) -> LlmConfig
```
