WhoBuilt

How to Become an AI Engineer from a Fullstack Background

Feb 2, 2024· 10 min· 7.8K views·Watch on YouTube

Speaker

Reid Mayo, founder of Rema AI, presents an AI engineering syllabus for full-stack engineers at AI Engineer.

Start with fundamentals

Mayo assumes learners can build across infrastructure, databases, back ends, and client apps, but have no AI or machine learning background. He recommends limiting distractions, learning core concepts deeply, and using ChatGPT as a Socratic tutor. The syllabus begins with a high-level overview of large language models using Cohere’s educational materials.

Learn prompting and model APIs

Mayo argues that prompt engineering improves language model output and can also help create better fine-tuning data. He recommends studying the Prompt Engineering Guide, its graduate job classification case study, and a second guide such as Learn Prompting or OpenAI’s documentation. He then suggests reading OpenAI’s docs and API reference, with a quick review of its cookbook examples.

Build with LangChain and evaluate results

Mayo describes LangChain as a modular framework that connects models, prompts, memory, retrieval, and conversations, and as a useful way to understand the wider AI engineering ecosystem. He recommends reading its Python and JavaScript documentation and inspecting the codebase. He compares model evaluations to software tests: they help determine whether changes improve results or cause regressions.

Fine-tune with cost and scale in mind

Mayo recommends working through OpenAI’s fine-tuning cookbook before trying an open-source model such as Llama 2. He notes that relying on OpenAI alone can bring cost, latency, rate-limit, privacy, and control concerns. His suggested path is to prototype with OpenAI, gather usage and training data, then consider a smaller fine-tuned model as the product scales; he cites an OpenPipe case study where a $19 Llama 2 model matched a task result that would cost about $244,000 with a leading OpenAI model.

Move from boot camp to advanced study

After completing the core syllabus, Mayo recommends applying AI engineering skills in real projects before taking on advanced study. He points to fast.ai’s Practical Deep Learning course and Hugging Face’s NLP course and documentation for deeper theory and further fine-tuning knowledge.

Takeaways

  • A full-stack engineer can start learning AI from model fundamentals without prior machine learning experience.
  • Treat prompt engineering as a practical skill that can improve both model outputs and fine-tuning data.
  • Use evaluations like software tests to check whether AI changes improve performance or cause regressions.
  • Prototype with accessible models, then assess whether fine-tuning a smaller model can meet cost and scale needs.
  • Apply the core skills in real projects before investing heavily in advanced theory.

Mentioned in this talk

Search inside this talk

What was claimed 10

  • built
    “Meta's Llama 2”
    YouTube
    Verified2 sources· Talk, Web· archived
  • founded
    “founder of Rema AI”
    YouTube
    Verified2 sources· Talk, Web· archived
  • feature
    Cohere: Educational documentation covering core language model concepts
    “they’ve got a great overview of these core concepts in their educational docs”
    YouTube
    Unverified1 source· Talk
  • feature
    OpenAI: Provides state-of-the-art AI models and makes them accessible
    “they provide state-of-the-art AI models, and they make them incredibly accessible”
    YouTube
    Unverified1 source· Talk
  • integrates with
    LangChain integrates with OpenAI
    “LangChain integrates all the different parts and pieces required for a modern AI system”
    YouTube
    Verified2 sources· Talk
  • feature
    LangChain: Application framework for building maintainable, modular, and scalable AI systems
    “the application framework that allows you to put AI technology together”
    YouTube
    Unverified1 source· Talk
  • feature
    OpenAI: Provides a framework with an evaluation suite and support for custom evals
    “provides a framework that includes a robust eval suite and allows for writing your own custom evals”
    YouTube
    Unverified1 source· Talk
  • feature
    OpenAI: Offers model fine-tuning
    “fine-tune OpenAI models”
    YouTube
    Unverified1 source· Talk
  • metric
    OpenPipe: Its case study reports a $19 fine-tuned Llama 2 model matching results from an OpenAI model costing around $244,000 for the same task
    “a smaller fine-tuned Llama 2 model at a cost of $19 can match results ... which would cost around $244,000 for the same task”
    YouTube
    Unverified1 source· Talk
  • feature
    Hugging Face: Provides an NLP course and documentation recommended for advanced study
    “Hugging Face's NLP course and docs”
    YouTube
    Unverified1 source· Talk

Related talks