models
zeus.optimizer.batch_size.server.job.models
Pydantic models for Job.
Stage
Bases: Enum
Job Stage.
Source code in zeus/optimizer/batch_size/server/job/models.py
15 16 17 18 19 |
|
JobGetter
Bases: GetterDict
Getter for batch size to convert ORM batch size object to integer.
Source code in zeus/optimizer/batch_size/server/job/models.py
22 23 24 25 26 27 28 29 30 31 |
|
get
get(key, default=None)
Get value from dict.
Source code in zeus/optimizer/batch_size/server/job/models.py
25 26 27 28 29 30 31 |
|
JobState
Pydantic model for Job which includes job-level states.
Attributes:
Name | Type | Description |
---|---|---|
exp_default_batch_size |
int
|
Exploration default batch size that is used during Pruning stage. |
min_cost |
Optional[float]
|
Min training cost observed. Initially, None. |
min_cost_batch_size |
int
|
Batch size that has minimum training cost observed. |
stage |
Stage
|
Stage of the job. |
mab_random_generator_state |
Optional[str]
|
Generator state if mab_seed is not None. Otherwise, None. |
For the rest of attributes, refer to JobParams
and GpuConfig
Source code in zeus/optimizer/batch_size/server/job/models.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
|
Config
Model configuration.
Allow instantiating the model from an ORM object.
Source code in zeus/optimizer/batch_size/server/job/models.py
55 56 57 58 59 60 61 62 |
|
_validate_mab
_validate_mab(values)
Validate generator state.
Source code in zeus/optimizer/batch_size/server/job/models.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
|