pixano_inference.settings
Settings for the Pixano Inference API.
Settings(**data)
Bases: BaseSettings
Application settings.
Attributes:
Name | Type | Description |
---|---|---|
app_name |
str
|
The name of the application. |
app_version |
str
|
The version of the application. |
app_description |
str
|
A description of the application. |
num_cpus |
int
|
The number of CPUs accessible to the application. |
num_gpus |
int
|
The number of GPUs available for inference. |
num_nodes |
int
|
The number of nodes available for inference. |
gpus_used |
list[int]
|
The list of GPUs used by the application. |
Source code in pixano_inference/settings.py
gpus_available
property
Return the available GPUs.
add_model(model, task)
Add a model.
Source code in pixano_inference/settings.py
assign_model_gpu(model)
free_gpu(gpu)
remove_model(model)
Remove a model.
Source code in pixano_inference/settings.py
reserve_gpu()
Reserve a gpu if any available.