Config
helical.models.helix_mrna.HelixmRNAConfig
HelixmRNAConfig class to store the configuration of the Helix-mRNA model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
batch_size
|
int
|
The batch size |
10
|
device
|
str
|
The device to use. Accepts any string torch.device accepts, e.g. "cpu", "cuda", "cuda:0". |
"cpu"
|
max_length
|
int
|
The maximum length of the input sequence. |
12288
|
nproc
|
int
|
Number of processes to use for data processing. |
1
|
output_attentions
|
bool
|
Whether to return attention weights from get_embeddings. Must be set at construction time: True forces eager attention (required for attention output), False uses flash_attention_2 when available, else sdpa. Note: eager attention materialises the full O(seq²) matrix and may OOM on long sequences or large batches. |
False
|