Config
helical.models.scgpt.scGPTConfig
Configuration class to use the scGPT Model.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pad_token
|
str
|
The padding token |
"<pad>"
|
batch_size
|
int
|
The batch size |
24
|
fast_transformer
|
bool
|
Whether to use fast transformer or not |
True
|
nlayers
|
int
|
The number of layers |
12
|
nheads
|
int
|
The number of heads |
8
|
embsize
|
int
|
The embedding size |
512
|
d_hid
|
int
|
The hidden dimension |
512
|
dropout
|
float
|
The dropout rate |
0.2
|
n_layers_cls
|
int
|
The number of classification layers |
3
|
mask_value
|
int
|
The mask value |
-1
|
pad_value
|
int
|
The padding value |
-2
|
world_size
|
int
|
The world size |
8
|
accelerator
|
bool
|
The accelerator configuration. By default same device as model. |
False
|
device
|
Literal['cpu', 'cuda']
|
The device to use. Either use "cuda" or "cpu". |
"cpu"
|
use_fast_transformer
|
bool
|
Wheter to use fast transformer or nots |
False
|
Returns:
Type | Description |
---|---|
scGPTConfig
|
The scGPT configuration object |
Notes
This configuration contains all the default parameteres that have been used in the original scGPT repository.