Tech With Team, Ollama Flashcards
(53 cards)
today I’m going to show you how to access
Today, I’m going to show you how to access some of the best models that exist completely for free and locally on your own computer [2].
we’re going to be doing that in just
We’re going to be doing that in just a few very simple lines of code using Hugging Face and Langchain [2].
I’m going to show you how to use
I’m going to show you how to use various Hugging Face models for free inside of a Python application, and then we’ll connect them to Langchain so we can build something even more interesting [2, 3].
with that said let’s get into the
With that said, let’s get into the video, but first, some important information [2].
understand we’re going to be using something called
Understand, we’re going to be using something called Transformers [4].
now this is a free open source package
Now, this is a free, open-source package that you can install with Python using pip, if you’re familiar with that [4].
it allows you to utilize tons of different
It allows you to utilize tons of different models that come from Hugging Face [4].
hugging face is a platform you can see
Hugging Face is a platform that has all kinds of open-source models available [4].
some of them you do need to pay
Some of them you do need to pay for, or you need some specific access, but most of them are completely free, and you can just download them and use them on your own computer [4].
what the Transformers package does is just make
What the Transformers package does is just make it extremely easy to access these free Hugging Face models and to download them and use them on your computer [5].
you’ll see here that in just a
You’ll see here that in just a few lines of code, you can run pretty much any of these models, assuming you have the correct hardware [5].
if you wanted to go further you could
If you wanted to go further, you could even fine-tune these models and add a bunch of advanced configurations [5].
we’re going to be using Transformers and we’re
We’re going to be using Transformers, and we’re going to use this in combination with something called Langchain [3, 5].
now Lang chain is another python package that
Now, Langchain is another Python package that just makes it a lot easier to work with LLMs [3].
so if you wanted to use one of
So, if you wanted to use one of these Transformer models, you can connect this with Langchain and then add things like memory, connect multiple models together, and I’ll show you the basics of that in this video [3].
now we’re going to go ahead and start
Now, we’re going to go ahead and start getting all of this set up [3].
first things first we’re just going to
First things first, we’re just going to make an account on Hugging Face [3, 6].
this is because a lot of these models
This is because a lot of these models require that you accept some terms, or their license agreement, before you’re able to actually download them and use them [6].
so go to hugging face I’ll leave this
So, go to Hugging Face; I’ll leave this link in the description [6].
you should be able to go up here
You should be able to go up here somewhere in the top right-hand corner and just make a new account [6].
once you make a new account we’re going
Once you make a new account, we’re going to go to access token; we’re just going to leave this page open, and we’ll come back to it in one second [6].
to get started here we need to
To get started here, we need to set up our environment to be able to execute these different Python packages [6, 7].
now this does take a second so just
Now, this does take a second, so just bear with me [7].
once the environment is configured then it’s
Once the environment is configured, then it’s very easy to write the code [7].