zamba.models.utils¶
Attributes¶
S3_BUCKET = 's3://drivendata-public-assets'
module-attribute
¶
Classes¶
RegionEnum
¶
Bases: str
, Enum
Source code in /home/runner/work/zamba/zamba/zamba/models/utils.py
17 18 19 20 |
|
Functions¶
configure_accelerator_and_devices_from_gpus(gpus)
¶
Derive accelerator and number of devices for pl.Trainer from user-specified number of gpus.
Source code in /home/runner/work/zamba/zamba/zamba/models/utils.py
80 81 82 83 84 85 86 87 88 |
|
download_weights(filename: str, destination_dir: Union[os.PathLike, str], weight_region: RegionEnum = RegionEnum('us')) -> Path
¶
Source code in /home/runner/work/zamba/zamba/zamba/models/utils.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
get_checkpoint_hparams(checkpoint)
¶
Source code in /home/runner/work/zamba/zamba/zamba/models/utils.py
62 63 |
|
get_default_hparams(model)
¶
Source code in /home/runner/work/zamba/zamba/zamba/models/utils.py
53 54 55 56 57 58 59 |
|
get_model_checkpoint_filename(model_name)
¶
Source code in /home/runner/work/zamba/zamba/zamba/models/utils.py
43 44 45 46 47 48 49 50 |
|
get_model_species(checkpoint, model_name)
¶
Source code in /home/runner/work/zamba/zamba/zamba/models/utils.py
71 72 73 74 75 76 77 |
|