WhoBuilt

Productionizing GenAI Models – Lessons from the world's best AI teams

Oct 23, 2024· 23 min· 7.4K views·Watch on YouTube

Speaker

Lukas Biewald, co-founder of Weights & Biases, explains how teams can move generative AI applications from demo to production at the AI Engineer conference.

Why AI takes more work to productionize

Biewald says generative AI has reached production across many industries, but compelling demos can hide how far an application is from being reliable. He describes AI development as experimental and nondeterministic, unlike the more linear process of adding software features. Because the useful knowledge lies in the experiments and lessons along the way, he argues teams should capture them so others can reproduce and build on the work.

A voice assistant improves through iteration

Biewald describes building an on-device assistant for his daughter, whose existing Alexa could not remember her favorite song. His prototype turned speech into function calls for tasks such as checking the weather, but the initial Llama 2 setup had 0% accuracy. Prompt changes and a model switch raised accuracy, and fine-tuning Mistral with a hand-filtered dataset of a few thousand examples brought it to 98%.

Keep experiments and evaluate results

The project showed Biewald that prompt engineering, model choice, and fine-tuning can all contribute to a working application. He says the team recorded failed experiments so colleagues would not have to repeat them. He recommends a serious evaluation framework: quick tests for rapid iteration, larger recurring evaluations, and metrics tied to the user experience.

Prototype with users and keep improving

Biewald identifies evaluation and lightweight prototyping as central practices for getting applications into production. He warns that teams can spend too long perfecting early steps without putting anything in front of end users. Feedback helps guide further iterations, while evaluation shows whether changes improve the application and where they cause regressions.

Takeaways

  • Record experiments, including failures, so teammates can reproduce results and continue from what the team learned.
  • Build evaluations before choosing between prompting, retrieval, fine-tuning, or a new model.
  • Use fast checks during iteration and larger recurring evaluations to track performance over time.
  • Connect evaluation metrics to user experience and the application’s real goals.
  • Get a lightweight prototype in front of users early, then improve it with their feedback.

Mentioned in this talk

Search inside this talk

What was claimed 13

Show all 13 facts

Related talks