The AI SDK does not restrict how you train your models and save the trained model. You can use the training notebooks in the end-to-end tutorials as examples. The end-to-end tutorials include examples using scikit-learn and TensorFlow.
Some ML frameworks, such as TensorFlow, use their own format for storing trained models. Other frameworks, such as scikit-learn, rely on persistent Python runtime objects. In the latter case, you need to ensure that the same versions of Python libraries exist when the objects are stored after training and then retrieved in the AI Inference Server. The packaging feature of the AI SDK supports it by requiring exact version specifiers for required Python packages in a pipeline package.