Ollama, or: how to run a LLM locally on your desktop

Bartholomew Gallacher

Well-known member
Joined
Sep 26, 2018
Messages
6,946
SL Rez
2002
In case you've always wanted to checkout ChatGPT or similar, but distrust OpenAI about keeping your privacy, there's now a solution: Ollama!

Ollama allows you to run the LLM of your choice on your CPU or GPU, supported OSes are Windows, MacOS and Linux. First you need to download it, but it comes in easy installable packages.

After installation you will have to pick at least one LLM of your choice, which the program will download a copy from. After that all other stuff can be done without internet. And even without GPU, if you don't have one or not supported. CPU speed still is quite decent.

Here are some sample models which Ollama does support:
ModelParametersSizeDownload
Llama 27B3.8GBollama run llama2
Mistral7B4.1GBollama run mistral
Dolphin Phi2.7B1.6GBollama run dolphin-phi
Phi-22.7B1.7GBollama run phi
Neural Chat7B4.1GBollama run neural-chat
Starling7B4.1GBollama run starling-lm
Code Llama7B3.8GBollama run codellama
Llama 2 Uncensored7B3.8GBollama run llama2-uncensored
Llama 2 13B13B7.3GBollama run llama2:13b
Llama 2 70B70B39GBollama run llama2:70b
Orca Mini3B1.9GBollama run orca-mini
Vicuna7B3.8GBollama run vicuna
LLaVA7B4.5GBollama run llava
Gemma2B1.4GBollama run gemma:2b
Gemma7B4.8GBollama run gemma:7b

Some sample output using Mistral 7B; some but not models are also unrestricted, meaning they can produce output which ChatGPT refuses to do so.

P: Describe the unique features of the American constitution while comparing it to the constitution of the UK.
A: Both the United States Constitution and the United Kingdom's Constitution, which is made up of various laws and conventions rather than a single
document, have distinct features that shape their respective political systems.

1. Structure of Government: The US Constitution establishes a federal system with three branches of government: the legislative, executive, and judicial
branches, each with specific powers and checks and balances against one another. In contrast, the UK's constitutional structure is a parliamentary
democracy, in which the executive branch (the monarch and Cabinet) and legislative branch (Parliament) are not entirely separate.

2. Written vs Unwritten: The US Constitution is a written document that outlines the basic framework of the government, while the UK's Constitution is
unwritten, consisting of various laws, conventions, and court decisions. This makes it easier for Americans to refer to a single document when
discussing their constitutional rights, whereas in the UK, legal interpretations can be more complex due to the absence of a single definitive source.

3. Amendment Process: The US Constitution has a formal process for amending its provisions, with 27 amendments adopted to date. In contrast, changes to
the UK's constitutional framework typically come about through legislative action or judicial decisions, without the need for formal amendment
processes.

4. Sovereignty: The US Constitution derives its authority from "the people," with sovereignty residing in the American people. In contrast, the UK's
constitutional framework is based on the concept of parliamentary sovereignty, which holds that Parliament is supreme and has the power to make or
unmake any law.

5. Bill of Rights: The US Constitution includes a Bill of Rights, which sets out various individual liberties and protections in the first ten
amendments. While the UK also recognizes various human rights, they are not codified in a single document in the same way as in the US. Instead, they
are derived from international treaties, case law, and statute.

In summary, while both the US Constitution and the UK's constitutional framework serve to establish the rules and structure of their respective
governments, they differ significantly in their written/unwritten nature, formal amendment processes, sovereignty

P: Give a short biography of the 47th president of the united states.
A: I apologize for the error in my previous response. The United States has had 46 presidents up to this point.
 
  • 1Thanks
Reactions: Govi

Bartholomew Gallacher

Well-known member
Joined
Sep 26, 2018
Messages
6,946
SL Rez
2002
Model LLaVa, which can create text descriptions from images we do provide. It seems to recognize quite a lot.

P: Describe what's being depicted here.

Image: Cristiano

A: The image is a promotional or fashion-themed artwork featuring a man in an elegant tuxedo with a bow tie. He is standing against a backdrop of a beach
with palm trees and blue ocean water, which creates a relaxed and luxurious ambiance. The man's pose is confident and poised, and he's looking directly
at the viewer with a slight smile. His attire suggests that this image could be related to fashion, especially formal wear for weddings or other special
events. The overall composition of the image is designed to showcase the tuxedo as well as the beach setting, likely for marketing purposes or as part
of a photoshoot.

I: New York City Skyline
A: The image shows an aerial view of New York City, featuring iconic landmarks such as the Statue of Liberty on the left, the Manhattan skyline with the
Chrysler Building prominently in the center, and the Brooklyn Bridge towards the right. The waterways are visible, with the Hudson River flowing along
the west side and the East River on the east. There's a clear blue sky above, indicating good weather conditions.

I: Some SFW from the official Flickr account of LL.

A: The image appears to be a digitally created scene, possibly for a game or a simulation. It shows a character in a kitchen setting holding a glass of
what seems to be milkshake or iced coffee. The character is wearing a blue dress and has red hair. There are various items on the countertop: a
cookbook, cooking utensils like spoons and tongs, and several ingredients such as carrots, broccoli, and potatoes. The kitchen has a homely feel with
potted plants, a vase, and other decorative items.

Please note that this is a simulated environment and not a real-life scene.
 
  • 1Interesting
  • 1Like
Reactions: Noodles and Govi

Noodles

The sequel will probably be better.
Joined
Sep 20, 2018
Messages
6,159
Location
Illinois
SL Rez
2006
Joined SLU
04-28-2010
SLU Posts
6947
Can you train with this at all? I like the idea of running an LLM locally, but I really want something I can train on a small data set of PDFs and ebooks etc. I know there are cloud ways to do it but I really don't care to spend $20/ month on that (which seems to be the going rate).
 

Monica Dream

In my last hour I'm a slave to the power of death
Joined
Dec 21, 2019
Messages
1,269
SL Rez
2005
Joined SLU
Sept 2010
SLU Posts
7008
why not gpt4all?
 

Noodles

The sequel will probably be better.
Joined
Sep 20, 2018
Messages
6,159
Location
Illinois
SL Rez
2006
Joined SLU
04-28-2010
SLU Posts
6947
Insert this up, and found a NSFW models, but it still gives the most unsexy dirty stories ever. It also prefaces it with this weird wording like, "I really don't want to but if you really wanted itz it would be something like this. Then it's like a Mormon technical manual description of sex.