Загрузка...

7. #Ollama for Beginners. #aicoding #ai #aiagent #agenticai #agenticweb #coding #llm #chatgpt

## Slide 1

Welcome to Our First
[Ollama]
Quick Hands-On
Session!
## Slide 2

Welcome to the Wonderful
World of [AI Codin']!
As Our Very First Step,

Let's Try Out Some
Basic Commands of
[Ollama ]!
## Slide 3

Here's What We Are Going to Do:
- Browse Models
on [Ollama.com].
- Pick Two Models.
- Download One of Them.
- Download the Other, And
Run it Locally.
- Talk to the Model.
- Display the Basic Spec of LLMs.
- Try Out Some Other `ollama`
CLI Commands.
## Slide 4

Let's Head Back to
https://www.ollama.com/library

figs/ollama-com-library-650x220.png

And Browse Some Models.
## Slide 5

`Gemma3` from Google
Happens to be
One of the Most Popular Models.

figs/ollama-com-gemma3-650x200.png

- Note that `Gemma3` Has
21 Different Variations ("Tags"), And
- They Can be One of the Few Different Sizes,
`1b`, `4b`, `12b`, and `27b`
("`b`" for a Billion Parameters).
- We Will Use the `1b` Version for Testing.
## Slide 6

Here's a Sample Session:

$ ollama list
NAME ID SIZE MODIFIED

$ ollama ps
NAME ID SIZE PROCESSOR UNTIL
We Haven't Downloaded Any Models yet,
and Nothing is Running Locally.

$ ollama pull gemma3:1b
pulling manifest
pulling 7cd4618c1faf: 100% ▕█████▏ 815 MB
pulling e0a42594d802: 100% ▕█████▏ 358 B
pulling dd084c7d92a3: 100% ▕█████▏ 8.4 KB
pulling 3116c5225075: 100% ▕█████▏ 77 B
pulling 120007c81bf8: 100% ▕█████▏ 492 B
verifying sha256 digest
writing manifest
success
## Slide 7

$ ollama list
NAME ID SIZE MODIFIED
gemma3:1b 8648f39daa8f 815 MB 8 seconds ago

The Downloaded Models are Shown through the `ollama list` Command.

$ ollama show gemma3:1b
Model
architecture gemma3
parameters 999.89M
context length 32768
embedding length 1152
quantization Q4_K_M

Capabilities
completion

Parameters
top_k 64
top_p 0.95
stop "(end_of_turn)"
temperature 1

License
Gemma Terms of Use
Last modified: February 21, 2024

We Will Discuss What Some of These Parameters Mean
in Later Lessons.
## Slide 8

Learn Ollama
For 60 Seconds a Day!
See You All in the Next Lesson!

Видео 7. #Ollama for Beginners. #aicoding #ai #aiagent #agenticai #agenticweb #coding #llm #chatgpt канала AI Codin'
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки