Download Ollama

Go to https://ollama.com/download and then get the zip for your platform.

Double click, and install the cli.

Test it out on the command line

1
  ollama --version

ollama version is 0.1.27

Run gemma

1
  ollama run gemma:2b

That's all there is to it!

Other models are available of course, lets have 7b write us a sonnet:

1
  ollama run gemma:7b " Write me a sonnet about a bumblebee"
A fuzzy ball of gold, a worker's art,
A bumblebee, a silent heart.
With wings that flit, and pollen bound,
It journeys through, with grace profound.

The flowers bloom, a symphony of scent,
And bees dance, a dance of intent.
With nectar sweet, they gather their prize,
And spread their wealth across the skies.

The honey flows, a golden stream,
A treasure born of passion and dream.
A gift from bees, a sweetness found,
In every spoonful, joy is found.

So let us cherish these creatures of grace,
For in their work, a beauty finds place.
A bumblebee, a humble art,
A gift to us, a heart of gold.

Looking at images

gemma doesn't yet seem to be able to look a local images, or at least it's not clear how to make ollama let it do that. But we can use another model to see what it says. Here's this picture:

Then

1
2
  ollama run llava "tell me what do you see in this picture? \
         ./PXL_20210807_134615347.MP.jpg"
The image shows a group of people, likely family members, 
peering through an open window or hatch in the interior of a
building. It appears to be a home setting, possibly in a loft
area given the structure of the wall with a wooden panel. The
children are on the top bunk, looking down at the adult
standing in the doorway below them. They seem to be curious
about their surroundings, and the adult is looking up at them
with an expression that might suggest they've been caught or
asked to come back inside. The environment looks cozy and
lived-in, suggesting a family moment captured candidly. 

References

Previously

political implications

2023-10-01

Next

Fifteen or twenty thousand years

2024-02-27

labnotes

Previously

Sinatra with activerecord small json server apps

2023-09-30

Next

AI in Emacs everything in emacs

2024-02-29