Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Fine tuning Gemini

Fine tuning Gemini

Speaker: Roya Kandalan

Avatar for GDG Philadelphia

GDG Philadelphia

January 23, 2025
Tweet

More Decks by GDG Philadelphia

Other Decks in Technology

Transcript

  1. PROFESSIONAL AND PERSONAL BACKGROUND Google Developer Expert ( AI/ML) Women

    Techmaker Ambassador GDG Cloud Boston Co-Organizer ABOUT ME Roya, means a very sweet dream in Farsi! EDUCATION & EXPERIENCE Degree in EE, supervised by Prof. K. Namuduri Senior Research Scientist at the Cigna Group VOLUNTEER
  2. What is an LLM? LLMs Explained [...] [...] [...] [...]

    0.02 0.03 0.9 0.01 0.0 … Dogs Rain Drops Fish Wind … and cats raining It’s
  3. Explain this joke: “I used to be addicted to soap,

    but I'm clean now.” Model: The joke is a pun on the word "clean". It has two meanings: Model: User: The joke is funny because it is unexpected. The listener expects the speaker to be talking about the first meaning of "clean", but they are actually talking about the second meaning. This creates a surprise and a laugh. To be free of dirt or other unwanted substances. To be free of addiction. LLMs Explained
  4. Model: 1. **Build a volcano.** This is a classic science

    fair project that is both fun and educational. You can learn about the science of volcanoes, earthquakes, and plate tectonics. 2. **Make a solar oven.** This is a great project to learn about renewable energy and how to harness the power of the sun. You can use your solar oven to cook food, dry fruit, or even melt chocolate. 3. **Create a 3D printer.** This is a more challenging project, but it is also very rewarding. You can learn about 3D printing technology and design your own custom objects. 4. **Build a robot.** This is a great project for those who are interested in engineering and robotics. You can learn about basic electronics, mechanics, and programming. 5. **Design a water filtration system.** This is a project that can help you learn about the importance of clean water and how to filter it. You can use your water filtration system to clean water from a stream or river. LLMs Explained Give me five neat ideas for science fair projects. User:
  5. Why are large language models different? LLMs are characterized by

    emergent abilities, or the ability to perform tasks that were not present in smaller models. LLMs contextual understanding of human language changes how we interact with data and intelligent systems. LLMs can find patterns and connections in massive, disparate data corpora. Search Conversation Content generation
  6. Gemini is the most capable and general model we’ve ever

    built, and is the result of a large-scale collaborative effort by NEEDS ART The next chapter of Generative AI innovation
  7. Gemini marks the next phase on our journey to making

    AI more helpful for everyone State-of-the-art, natively multimodal reasoning capabilities Highly optimized while preserving choice Built with responsibility and safety at the core
  8. The Gemini Ecosystem The most advanced AI from Google For

    Developers For Consumers For Business and Enterprise Models Gemini API (in Google AI Studio + ai.google.dev) Gemini for Google Workspace Gemini for Google Cloud Gemini in Vertex AI Gemini | app and web Gemini in the Google App Gemini in Gmails, Docs… this deck is about
  9. Vertex AI Enterprise grade support. Full MLOps (Examples: Model evaluation,

    monitoring, registry) Vertex AI Check it out when you're ready for production Gemini API and Vertex AI Both give access Gemini family models. Vertex AI Cloud Production ai.google.dev/docs/migrate_to_cloud PlatfoEndpoints rms Platforms Platforms
  10. Write a poem about a magic backpack. In a world

    of wonder, behold, A backpack with tales yet untold. Its fabric shimmers, alive with might, A portal to realms, day and night. aistudio.google.com
  11. Write a poem about a magic backpack. In a world

    of wonder, behold, A backpack with tales yet untold. Its fabric shimmers, alive with might, A portal to realms, day and night. ... aistudio.google.com
  12. Last step to apply credit! Set your project’s billing account

    to Google Cloud Platform Trial Billing Account
  13. Issues When attempting to redeem credits It may be unclear

    where the credits land. If you users are confused, have them navigate to the Credits tab on the page on of the console That is where they will see the credits
  14. Issues if the user ALREADY has a existing billing account

    make sure they one Click on the 3 Dot menu on the project, and select “Change Billing,” from the drop down select that Google Cloud Platform Trial Billing
  15. • Models have knowledge cut-offs • LLMs are not fact

    engines • No exposure to private data BYO Data Search & IR
  16. • Instructions + Context + Question all in the prompt

    • Easy to implement ◦ No extra code, just ask. Use the prompt's context window Search & IR
  17. Use the prompt's context window Learning more • Limited by

    the model's context length ◦ gemini-1.0-pro: 30K tokens. Search & IR
  18. 2M

  19. ATTENTION Where to put cherry? android? apple? What about this

    apple? This is what we want Embedding doesn’t know where to put them Disclaimer: The presentation about Attention is based on Serrano.Academy
  20. ATTENTION Disclaimer: The presentation about Attention is based on Serrano.Academy

    Please buy an apple and an orange Apple released a new phone
  21. How to choose a model - Prototype with Pro -

    Decide what matters the most - Quality - Speed - Cost - Control - Pro → Finetune - Nano - Flash - Gemma