How to access open-sourced LLMs from Huggingface on Colab

Share it with your other non-technical friends
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 –

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 –

Let us dive into it.


– 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 –

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 other non-technical friends
Nikhilesh Tayal
Nikhilesh Tayal
Articles: 41