Compute
With flexible compute, you can define compute resources from Kubernetes or Databricks clusters that you can then assign to run your generator training and synthetic data generation workloads. You can use compute resources to add GPU-capable compute that can significantly speed up the time to train new generators and generate synthetic datasets.
Add a new Kubernetes compute
You can define any of your existing Kubernetes compute resources as a new compute in MOSTLY AI.
Prerequisites
- Before you define a new compute, check the available compute resources in your Kubernetes cluster.
- You need to be a super admin to add a new compute.
Steps
- From the profile menu, select Compute.
- Click + New compute.
- Select Kubernetes.
- Define the compute configuration.
Kubernetes compute parameter Description Name A unique name for the compute. CPUs The number of CPU cores. Memory The amount of memory. GPUs The number of GPUs. GPU memory The amount of GPU memory. Toleration A toleration that matches the taint defined for your cluster.
⚠️ Leave empty if in thevalues.yaml
you need to set themostly_coordinator.deployment.core_job.tolerationOperator
toExists
.Order Index The order in which the compute appears in the Compute drop-down.
The default compute hasorder_index=1
. - Click Save.
Result
The next time users configure a new generator training or synthetic dataset, they can select the new compute from the Compute drop-down list.
In addition, the new compute remains available in the Computes list.
Add a new Databricks compute
You can add Databricks computes for use in MOSTLY AI.
Steps
- From the profile menu, select Compute.
- Click + New compute.
- Select Databricks.
- Define the Databricks compute configuration.
Databricks compute parameter Description Name Set a name for the new Databricks compute. Instance URL Set your Databricks instance URL. Cluster ID Set your Databricks cluster ID. Access token Set your Databricks access token. Order index Set the order in which the Databricks compute appears in the Compute drop-down. - Click Save.
Result
The Databricks compute now appears in the list of available computes.
What's next
You can now assign the Databricks compute to a generator training or synthetic dataset.
Edit a compute
You can make changes to exising computes.
Steps
- Open the Compute kebab menu and select Edit.
- Change the compute configuration.
- Click Save.
Result
The compute configuration is now updated.
Delete a compute
You can delete an existing compute from its kebab menu.
Do not delete the Default compute as all common steps for generators and synthetic datasets rely on its availability.
Steps
- Open the Compute kebab menu and select Delete.
- Click Yes, delete compute in the confirmation pop-up.