How to access open-sourced LLMs from Huggingface on Colab

Share it with your senior IT friends and colleagues
Reading Time: < 1 minute

Namaste and Welcome to Build It Yourself.

The tutorial will show us how to access the latest open-sourced large language models like Gemma, Llama2, Mixtral, etc. from Huggingface using LangChain on Google Colab

If you are an entrepreneur or a senior professional (15+ years of experience) and looking to learn AI + LLM in a simple language, check out the courses and other details – https://www.aimletc.com/ai-ml-etc-course-offerings-pricing/

Why this article is needed?

In the previous articles, we learnt how to use OpenAI’s models. The latest models from OpenAI are proprietary models and OpenAI charges money to access them.

However, there are many open-sourced large language models from Google, Meta, Mistral, etc which can also be used.

So, In this article, we will learn how to use them with very simple code.

We will use this Google Colab Notebook – https://colab.research.google.com/drive/1j0pamG-GYT0YgEWS8rchnkxgYZjoTFW3?usp=sharing

Let us dive into it.

Pre-requirement

– An Open Mind to learn new things

– Huggingface account

– Huggingface’s Access Key

Access open-sourced LLMs from Huggingface on Google Colab

Connect with me on LinkedIn – https://www.linkedin.com/in/nikhileshtayal/

Here is how I learned AI as a non-technical person in 4 months for free.

Let’s learn to build a basic AI/ML model in 4 minutes (Part 1)

Happy learning!

Feature Image Source

Share it with your senior IT friends and colleagues
Nikhilesh Tayal
Nikhilesh Tayal
Articles: 53