# helia_edge.models.conformer_params

Typed parameters of the conformer family; importable without Keras.

## helia_edge.models.conformer_params.SubsampleBlockParams

`class` · `python`

```python
SubsampleBlockParams()
```

Subsample block parameters

Source: `helia_edge/models/conformer_params.py:8`

### helia_edge.models.conformer_params.SubsampleBlockParams.model_config

`attribute` · `python`

```python
model_config = ConfigDict(frozen=True, extra='forbid')
```

Source: `helia_edge/models/conformer_params.py:17`

### helia_edge.models.conformer_params.SubsampleBlockParams.depth

`attribute` · `python`

```python
depth: int = 256
```

Depth

Source: `helia_edge/models/conformer_params.py:19`

### helia_edge.models.conformer_params.SubsampleBlockParams.kernel_size

`attribute` · `python`

```python
kernel_size: int = 3
```

Kernel size

Source: `helia_edge/models/conformer_params.py:20`

### helia_edge.models.conformer_params.SubsampleBlockParams.strides

`attribute` · `python`

```python
strides: int = 2
```

Stride size

Source: `helia_edge/models/conformer_params.py:21`

## helia_edge.models.conformer_params.ConformerBlockParams

`class` · `python`

```python
ConformerBlockParams()
```

Conformer block parameters

Source: `helia_edge/models/conformer_params.py:24`

### helia_edge.models.conformer_params.ConformerBlockParams.model_config

`attribute` · `python`

```python
model_config = ConfigDict(frozen=True, extra='forbid')
```

Source: `helia_edge/models/conformer_params.py:38`

### helia_edge.models.conformer_params.ConformerBlockParams.depth

`attribute` · `python`

```python
depth: int = 256
```

Depth

Source: `helia_edge/models/conformer_params.py:40`

### helia_edge.models.conformer_params.ConformerBlockParams.fc_ex_factor

`attribute` · `python`

```python
fc_ex_factor: float = 4
```

FC expansion factor

Source: `helia_edge/models/conformer_params.py:41`

### helia_edge.models.conformer_params.ConformerBlockParams.fc_res_factor

`attribute` · `python`

```python
fc_res_factor: float = 0.5
```

FC residual factor

Source: `helia_edge/models/conformer_params.py:42`

### helia_edge.models.conformer_params.ConformerBlockParams.embedding

`attribute` · `python`

```python
embedding: str = 'relative'
```

Embedding type

Source: `helia_edge/models/conformer_params.py:43`

### helia_edge.models.conformer_params.ConformerBlockParams.num_heads

`attribute` · `python`

```python
num_heads: int = 4
```

Number of heads

Source: `helia_edge/models/conformer_params.py:44`

### helia_edge.models.conformer_params.ConformerBlockParams.kernel_size

`attribute` · `python`

```python
kernel_size: int = 9
```

Kernel size

Source: `helia_edge/models/conformer_params.py:45`

### helia_edge.models.conformer_params.ConformerBlockParams.dropout

`attribute` · `python`

```python
dropout: float = 0.1
```

Dropout rate

Source: `helia_edge/models/conformer_params.py:46`

### helia_edge.models.conformer_params.ConformerBlockParams.use_bias

`attribute` · `python`

```python
use_bias: bool = True
```

Use bias

Source: `helia_edge/models/conformer_params.py:47`

## helia_edge.models.conformer_params.ConformerParams

`class` · `python`

```python
ConformerParams()
```

Conformer parameters

Source: `helia_edge/models/conformer_params.py:50`

### helia_edge.models.conformer_params.ConformerParams.model_config

`attribute` · `python`

```python
model_config = ConfigDict(frozen=True, extra='forbid')
```

Source: `helia_edge/models/conformer_params.py:63`

### helia_edge.models.conformer_params.ConformerParams.family

`attribute` · `python`

```python
family: Literal['conformer'] = 'conformer'
```

Model family

Source: `helia_edge/models/conformer_params.py:65`

### helia_edge.models.conformer_params.ConformerParams.subsamples

`attribute` · `python`

```python
subsamples: list[SubsampleBlockParams] = Field(default_factory=list, description='Subsample blocks')
```

Subsample blocks

Source: `helia_edge/models/conformer_params.py:66`

### helia_edge.models.conformer_params.ConformerParams.blocks

`attribute` · `python`

```python
blocks: list[ConformerBlockParams] = Field(default_factory=list, description='Conformer blocks')
```

Conformer blocks

Source: `helia_edge/models/conformer_params.py:67`

### helia_edge.models.conformer_params.ConformerParams.output_activation

`attribute` · `python`

```python
output_activation: str | None = Field(default=None, description='Output activation')
```

Output activation

Source: `helia_edge/models/conformer_params.py:68`

### helia_edge.models.conformer_params.ConformerParams.include_top

`attribute` · `python`

```python
include_top: bool = Field(default=True, description='Include top')
```

Include top

Source: `helia_edge/models/conformer_params.py:69`

### helia_edge.models.conformer_params.ConformerParams.num_classes

`attribute` · `python`

```python
num_classes: int | None = Field(default=None, gt=0, description='Classes of the output layer')
```

Classes of the output layer

Source: `helia_edge/models/conformer_params.py:70`
