> Documentation Index
> Fetch the complete documentation index at: https://docs.mobilint.com/compiler/en/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.compile\_config

## CompileConfig

```python
class CompileConfig(ConfigABC)
```

### Attributes

| Name | Description |
| --- | --- |
| [`py_to_cpp_name`](<#compileconfig-py-to-cpp-name>) |  |
| [`min_max_check`](<#compileconfig-min-max-check>) |  |
| [`inference_scheme_types`](<#compileconfig-inference-scheme-types>) |  |
| [`sample_dtypes`](<#compileconfig-sample-dtypes>) |  |

#### py\_to\_cpp\_name

```python
py_to_cpp_name = {
    "calib_data_path": "calibData",
    "save_path": "savePath",
    "model_nickname": "modelNickname",
    "save_msgpack_name": "saveMsgpackName",
    "model_path": "modelPath",
    "inference_scheme": "inferenceScheme",
    "save_sample": "saveSample",
    "cpu_offload": "cpuOffload",
    "singlecore_compile": "singlecoreCompile",
    "optimize_option": "optimizeOption",
    "sample_dtype": "sampleDtype",
    "preprocess_dict": "preprocess",
    "version": "version",
}
```

#### min\_max\_check

```python
min_max_check = {"optimize_option": [0, None]}
```

#### inference\_scheme\_types

```python
inference_scheme_types = ["single", "multi", "global", "global4", "global8"]
```

#### sample\_dtypes

```python
sample_dtypes = ["float", "int8"]
```

### Methods

| Name | Description |
| --- | --- |
| [`__init__`](<#compileconfig-init>) |  |
| [`default_config`](<#compileconfig-default-config>) |  |
| [`check_valid_str_configs`](<#compileconfig-check-valid-str-configs>) |  |
| [`to_dict`](<#compileconfig-to-dict>) |  |

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

```python
def __init__(
    self,
    calib_data_path: str | None,
    use_random_calib: bool,
    save_path: str,
    model_nickname: str,
    save_msgpack_name: str | None,
    model_path: str | None,
    inference_scheme: str,
    save_sample: bool,
    cpu_offload: bool,
    singlecore_compile: bool,
    optimize_option: int,
    sample_dtype: str,
    preprocess_dict: dict | None,
    buffer_mode: int,
    version: str,
    quant_config: QuantConfig,
    optional: bool = False,
)
```

#### default\_config

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

#### check\_valid\_str\_configs

```python
def check_valid_str_configs(self)
```

#### to\_dict

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

## Functions

| Name | Description |
| --- | --- |
| [`get_compile_config`](<#get-compile-config>) |  |

### get\_compile\_config

```python
def get_compile_config(
    calib_data_path=None,
    use_random_calib=False,
    save_path="./tmp.mxq",
    save_msgpack_name=None,
    model_nickname="temporary",
    model_path=None,
    inference_scheme="single",
    save_sample=False,
    cpu_offload=False,
    singlecore_compile=False,
    optimize_option=0,
    sample_dtype="float",
    preprocess_dict=None,
    buffer_mode=1,
    quant_config=QuantConfig.default_config(),
    version=__version__,
)
```
