Igniting LLM Performance: The Power of Domain Data!

In today’s highly data-driven world, applying domain-specific knowledge to the machine learning model (LLM) lifecycle is increasingly vital. Traditionally, this process begins with a data engineer curating data, which is then used by data scientists to train a model that is subsequently made available for inference. However, the data used in this process is typically sourced from conventional databases, such as SQL or NoSQL, containing metrics or sales data curated by the organization. This approach presents a challenge when it comes to integrating domain-specific knowledge within the organization into this same process.

This video is from IBM Technology.

Consider an alternative scenario where project managers and business analysts, who possess domain-specific knowledge about processes within their organization, contribute to the process. These individuals often store their knowledge in word documents or text files, not the traditional data stores typically used within a model lifecycle. However, with the right tools, this can change. For instance, InstructLab, an open-source tool, allows the management of a taxonomy, typically a git repository, to manage things like .ini files or text files and apply them to our model. Even more traditional document formats like PDFs can be transformed into the necessary file structure that InstructLab requires.

Once this data has been applied to the taxonomy that InstructLab manages, we can commence the more traditional process that we saw earlier, but without the need for a data scientist. InstructLab handles all this and creates synthetic data through this process. Synthetic data, in this case, should not be viewed as an intimidating concept. Instead, it is simply another way of reframing the question. Instead of having one way of asking a question, we now have multiple ways of asking the same question. This approach empowers the model, especially during the training cycle, to accurately reply to prompts.

After training the model, we can deploy it onto an AI platform, such as Kubernetes-based OpenShift, which can leverage different AI accelerators like NVIDIA, AMD, or Intel. While this forms the infrastructure layer, we still need to interact with our model, configure the inference, and apply metrics – all integral parts of the MLOps lifecycle. This can be achieved with an extension for OpenShift called Red Hat OpenShift AI, which provides all the tools for managing the lifecycle of this model within production.

Interacting with the model to validate it, apply governance, or simply sandbox with it can be done with tools like Watsonx.AI, which can sit atop OpenShift and interact with all the models being inferred within this AI stack. Once this lifecycle is complete, we can restart the process using the new data gathered by our project managers and business analysts. However, running this process repeatedly can be costly. To mitigate this, we can use technologies like RAG to handle the data in the interim before we repeat the process.

In conclusion, we have explored the complete model lifecycle and how to apply domain-specific knowledge from people within our organization, like project managers and business analysts. We’ve seen how to manage this data through a taxonomy with InstructLab, generate synthetic data for training the model, and deploy it into a Kubernetes-based platform like OpenShift. We’ve also examined how to utilize AI services from tools like Watsonx.AI and technologies like RAG to enhance the experience. With these tools and strategies, we can make the most of our organizational knowledge and drive the success of our machine learning models.

Frank

#DataScientist, #DataEngineer, Blogger, Vlogger, Podcaster at http://DataDriven.tv . Back @Microsoft to help customers leverage #AI Opinions mine. #武當派 fan. I blog to help you become a better data scientist/ML engineer Opinions are mine. All mine.