How To Run Open Source LLMs Locally Using Ollama
How To Run Open Source LLMs Locally Using Ollama
How To Run Open Source LLMs Locally Using Ollama
Forum Donate
1 de 7 03/04/2024, 09:19 p. m.
How to Run Open Source LLMs Locally Using Ollama https://www.freecodecamp.org/news/how-to-run-open-source-llms-l...
ollama homepage
2 de 7 03/04/2024, 09:19 p. m.
How to Run Open Source LLMs Locally Using Ollama https://www.freecodecamp.org/news/how-to-run-open-source-llms-l...
Forum Donate
You can choose the executable �le according to your OS and after
successfully downloading the executable �le, you can install it by
running the executable �le.
For Linux users, you have to execute the command that is being
shown on the screen instead of downloading an executable �le.
You should see a output similar to this after the downloading of the
model.
pulling manifest
3 de 7 03/04/2024, 09:19 p. m.
How to Run Open Source LLMs Locally Using Ollama https://www.freecodecamp.org/news/how-to-run-open-source-llms-l...
Now, its should ask you to send a message or prompt. Let's ask
llama2 "What can you do for me?" (You can ask whatever you want).
If you asked the same question as above, then you should get a reply
like this:
As a responsible AI language model, I am here to assist you with any questions or tasks
with:
1. Answering questions: I can provide information on a wide range of topics, from scien
2. Generating ideas: I can help you brainstorm ideas for creative projects, or provide
3. Writing assistance: I can help you with writing tasks such as proofreading, editing,
4. Translation: I can translate text from one language to another.
5. Summarizing content: I can summarize long pieces of text, such as articles or docume
6. Creativity: I can help you generate creative ideas for stories, poems, or other form
7. Language learning: I can assist you in learning a new language by providing grammar
8. Chatting: I'm here to chat with you and provide a response to any question or topic
Please let me know if there is anything specific you would like me to help
Let's now run a multi-modal model where you can send an image
and ask questions based on that.
4 de 7 03/04/2024, 09:19 p. m.
How to Run Open Source LLMs Locally Using Ollama https://www.freecodecamp.org/news/how-to-run-open-source-llms-l...
Using this model, we are now going to pass an image and ask a
question based on that.
pulling manifest
pulling 170370233dd5... 100% ▕█████████████████████████████████████████████████████████
pulling 72d6f08a42f6... 100% ▕█████████████████████████████████████████████████████████
pulling 43070e2d4e53... 100% ▕█████████████████████████████████████████████████████████
pulling c43332387573... 100% ▕█████████████████████████████████████████████████████████
pulling ed11eda7790d... 100% ▕█████████████████████████████████████████████████████████
pulling 7c658f9561e5... 100% ▕█████████████████████████████████████████████████████████
verifying sha256 digest
writing manifest
removing any unused layers
success
>>> Send a message (/? for help)
5 de 7 03/04/2024, 09:19 p. m.
How to Run Open Source LLMs Locally Using Ollama https://www.freecodecamp.org/news/how-to-run-open-source-llms-l...
Feel free to try something else and have fun with it. Forum Donate
Conclusion
That's it! With Ollama, you can experiment with powerful LLMs like
LLaMA 2 and LLaVA on your own machine.
Sahil Mahapatra
Read more posts.
Our mission: to help people learn to code for free. We accomplish this by creating thousands of
videos, articles, and interactive coding lessons - all freely available to the public.
Donations to freeCodeCamp go toward our education initiatives, and help pay for servers,
services, and staff.
6 de 7 03/04/2024, 09:19 p. m.
How to Run Open Source LLMs Locally Using Ollama https://www.freecodecamp.org/news/how-to-run-open-source-llms-l...
Forum Donate
Trending Guides
Learn to code — free 3,000-hour curriculum
Date Formatting in JS Java Iterator Hashmap Cancel a Merge in Git
What is a Linked List? Install Java in Ubuntu Python Ternary Operator
Full Stack Career Guide Python Sort Dict by Key Smart Quotes Copy/Paste
JavaScript Array Length Sets in Python Kotlin vs Java
SQL Temp Table HTML Form Basics Comments in YAML
Pandas Count Rows Python End Program Python XOR Operator
Python Dict Has Key Python List to String Exit Function in Python
String to Array in Java Python Import from File Parse a String in Python
Python Merge Dictionaries Copy a Directory in Linux Reactive Programming Guide
Center Text Vertically CSS What’s a Greedy Algorithm? Edit Commit Messages in Git
Mobile App
Our Charity
About Alumni Network Open Source Shop Support Sponsors Academic Honesty
7 de 7 03/04/2024, 09:19 p. m.