This repository contains reference architectures and test cases for Foundation Model Operations (FMOps) on Amazon EKS.
Foundation Model Operations (FMOps) encompass the end-to-end processes involved in managing foundation models, from initial pretraining to deployment and monitoring. This repository is designed to showcase the usage of different frameworks at each stage of the foundation model lifecycle and the end-to-end pipeline. Specifically, FMOps in this repository involve the following four stages: continuous pretraining, finetuning, evaluation, and deployment. The following section, "Stages of Foundation Model Operations," elaborates on each stage. Each subdirectory of this repository (pretraining, finetuning, evaluation, deployment) includes test cases for each stage.
Our infrastructure is deployed using Terraform. Please refer to the deployment guide for the infrastructure setup guide.
Foundation Model Operations (FMOps) encompass the processes and practices involved in (continuous) pretraining, fine-tuning, evaluating, and deploying foundation models.
1. (Continuous) Pretraining is the initial stage where the foundation model is trained on a broad and diverse dataset to learn general knowledge. This stage involves using large-scale data to develop a model that can generalize across various tasks and domains. The pretraining process is often continuous, meaning the model is periodically updated with new data to improve its performance.
2. Finetuning involves adapting the pretrained foundation model to specific tasks or domains. This optional stage can be divided into two sub-stages:
3. Evaluation is a critical stage that occurs after both pretraining and finetuning. It involves assessing the model's performance using standardized benchmarks and metrics. Evaluation helps track the model's progress, identify areas for improvement, and ensure that the model meets the desired performance criteria.
4. Deployment is the final stage, where the foundation model is integrated into production environments. This stage includes:
By following these stages, organizations can effectively develop, fine-tune, evaluate, and deploy foundation models, ensuring they deliver high performance and align with the intended use cases and ethical standards.
This library is licensed under the MIT-0 License. See the LICENSE file.