# qbcompiler.configs.enums

Auto-generated enum definitions from config\_schema.yaml.

## AccumulationDevice

```python
class AccumulationDevice(str, Enum)
```

### Attributes

| Name | Description |
| --- | --- |
| [`auto`](<#accumulationdevice-auto>) |  |
| [`cpu`](<#accumulationdevice-cpu>) |  |
| [`gpu`](<#accumulationdevice-gpu>) |  |

#### auto

```python
auto = "auto"
```

#### cpu

```python
cpu = "cpu"
```

#### gpu

```python
gpu = "gpu"
```

### Methods

| Name | Description |
| --- | --- |
| [`__str__`](<#accumulationdevice-str>) |  |

#### \_\_str\_\_

```python
def __str__(self) -> str
```

## Device

```python
class Device(str, Enum)
```

### Attributes

| Name | Description |
| --- | --- |
| [`gpu`](<#device-gpu>) |  |
| [`cpu`](<#device-cpu>) |  |

#### gpu

```python
gpu = "gpu"
```

#### cpu

```python
cpu = "cpu"
```

### Methods

| Name | Description |
| --- | --- |
| [`__str__`](<#device-str>) |  |

#### \_\_str\_\_

```python
def __str__(self) -> str
```

## HessianDtype

```python
class HessianDtype(str, Enum)
```

### Attributes

| Name | Description |
| --- | --- |
| [`fp32`](<#hessiandtype-fp32>) |  |
| [`bf16`](<#hessiandtype-bf16>) |  |

#### fp32

```python
fp32 = "fp32"
```

#### bf16

```python
bf16 = "bf16"
```

### Methods

| Name | Description |
| --- | --- |
| [`__str__`](<#hessiandtype-str>) |  |

#### \_\_str\_\_

```python
def __str__(self) -> str
```

## InferenceScheme

```python
class InferenceScheme(str, Enum)
```

### Attributes

| Name | Description |
| --- | --- |
| [`single`](<#inferencescheme-single>) |  |
| [`multi`](<#inferencescheme-multi>) |  |
| [`global4`](<#inferencescheme-global4>) |  |
| [`global8`](<#inferencescheme-global8>) |  |
| [`all`](<#inferencescheme-all>) |  |

#### single

```python
single = "single"
```

#### multi

```python
multi = "multi"
```

#### global4

```python
global4 = "global4"
```

#### global8

```python
global8 = "global8"
```

#### all

```python
all = "all"
```

### Methods

| Name | Description |
| --- | --- |
| [`__str__`](<#inferencescheme-str>) |  |

#### \_\_str\_\_

```python
def __str__(self) -> str
```

## Method

```python
class Method(str, Enum)
```

### Attributes

| Name | Description |
| --- | --- |
| [`DeleteFloat`](<#method-deletefloat>) |  |
| [`SaveFloat`](<#method-savefloat>) |  |
| [`MoveFloat`](<#method-movefloat>) |  |
| [`KeepFloat`](<#method-keepfloat>) |  |
| [`KeepAll`](<#method-keepall>) |  |

#### DeleteFloat

```python
DeleteFloat = "DeleteFloat"
```

#### SaveFloat

```python
SaveFloat = "SaveFloat"
```

#### MoveFloat

```python
MoveFloat = "MoveFloat"
```

#### KeepFloat

```python
KeepFloat = "KeepFloat"
```

#### KeepAll

```python
KeepAll = "KeepAll"
```

### Methods

| Name | Description |
| --- | --- |
| [`__str__`](<#method-str>) |  |

#### \_\_str\_\_

```python
def __str__(self) -> str
```

## MoeExpertSelectionMode

```python
class MoeExpertSelectionMode(str, Enum)
```

### Attributes

| Name | Description |
| --- | --- |
| [`TopK`](<#moeexpertselectionmode-topk>) |  |
| [`All`](<#moeexpertselectionmode-all>) |  |
| [`Threshold`](<#moeexpertselectionmode-threshold>) |  |

#### TopK

```python
TopK = "TopK"
```

#### All

```python
All = "All"
```

#### Threshold

```python
Threshold = "Threshold"
```

### Methods

| Name | Description |
| --- | --- |
| [`__str__`](<#moeexpertselectionmode-str>) |  |

#### \_\_str\_\_

```python
def __str__(self) -> str
```

## QuantMethod

```python
class QuantMethod(str, Enum)
```

### Attributes

| Name | Description |
| --- | --- |
| [`WChALayer`](<#quantmethod-wchalayer>) |  |
| [`WChAMulti`](<#quantmethod-wchamulti>) |  |
| [`WChALayerZeropoint`](<#quantmethod-wchalayerzeropoint>) |  |
| [`WChAMultiZeropoint`](<#quantmethod-wchamultizeropoint>) |  |

#### WChALayer

```python
WChALayer = "WChALayer"
```

#### WChAMulti

```python
WChAMulti = "WChAMulti"
```

#### WChALayerZeropoint

```python
WChALayerZeropoint = "WChALayerZeropoint"
```

#### WChAMultiZeropoint

```python
WChAMultiZeropoint = "WChAMultiZeropoint"
```

### Methods

| Name | Description |
| --- | --- |
| [`__str__`](<#quantmethod-str>) |  |

#### \_\_str\_\_

```python
def __str__(self) -> str
```

## QuantMode

```python
class QuantMode(str, Enum)
```

### Attributes

| Name | Description |
| --- | --- |
| [`Max`](<#quantmode-max>) |  |
| [`MaxPercentile`](<#quantmode-maxpercentile>) |  |
| [`Histogram`](<#quantmode-histogram>) |  |

#### Max

```python
Max = "Max"
```

#### MaxPercentile

```python
MaxPercentile = "MaxPercentile"
```

#### Histogram

```python
Histogram = "Histogram"
```

### Methods

| Name | Description |
| --- | --- |
| [`__str__`](<#quantmode-str>) |  |

#### \_\_str\_\_

```python
def __str__(self) -> str
```

## QuantOutput

```python
class QuantOutput(str, Enum)
```

### Attributes

| Name | Description |
| --- | --- |
| [`Layer`](<#quantoutput-layer>) |  |
| [`Ch`](<#quantoutput-ch>) |  |
| [`Sigmoid`](<#quantoutput-sigmoid>) |  |

#### Layer

```python
Layer = "Layer"
```

#### Ch

```python
Ch = "Ch"
```

#### Sigmoid

```python
Sigmoid = "Sigmoid"
```

### Methods

| Name | Description |
| --- | --- |
| [`__str__`](<#quantoutput-str>) |  |

#### \_\_str\_\_

```python
def __str__(self) -> str
```

## SearchType

```python
class SearchType(str, Enum)
```

### Attributes

| Name | Description |
| --- | --- |
| [`Percentile`](<#searchtype-percentile>) |  |
| [`MSE`](<#searchtype-mse>) |  |
| [`KL`](<#searchtype-kl>) |  |

#### Percentile

```python
Percentile = "Percentile"
```

#### MSE

```python
MSE = "MSE"
```

#### KL

```python
KL = "KL"
```

### Methods

| Name | Description |
| --- | --- |
| [`__str__`](<#searchtype-str>) |  |

#### \_\_str\_\_

```python
def __str__(self) -> str
```
