> This command can also be used to update a local model. Only the diff will be pulled.
> This command can also be used to update a local model. Only the diff will be pulled.
...
@@ -149,13 +150,13 @@ ollama pull llama2
...
@@ -149,13 +150,13 @@ ollama pull llama2
### Remove a model
### Remove a model
```
```
ollama rm llama2
ollama rm llama3
```
```
### Copy a model
### Copy a model
```
```
ollama cp llama2 my-llama2
ollama cp llama3 my-llama2
```
```
### Multiline input
### Multiline input
...
@@ -179,7 +180,7 @@ The image features a yellow smiley face, which is likely the central focus of th
...
@@ -179,7 +180,7 @@ The image features a yellow smiley face, which is likely the central focus of th
### Pass in prompt as arguments
### Pass in prompt as arguments
```
```
$ ollama run llama2 "Summarize this file: $(cat README.md)"
$ ollama run llama3 "Summarize this file: $(cat README.md)"
Ollama is a lightweight, extensible framework for building and running language models on the local machine. It provides a simple API for creating, running, and managing models, as well as a library of pre-built models that can be easily used in a variety of applications.
Ollama is a lightweight, extensible framework for building and running language models on the local machine. It provides a simple API for creating, running, and managing models, as well as a library of pre-built models that can be easily used in a variety of applications.
```
```
...
@@ -226,7 +227,7 @@ Next, start the server:
...
@@ -226,7 +227,7 @@ Next, start the server:
Finally, in a separate shell, run a model:
Finally, in a separate shell, run a model:
```
```
./ollama run llama2
./ollama run llama3
```
```
## REST API
## REST API
...
@@ -237,7 +238,7 @@ Ollama has a REST API for running and managing models.
...
@@ -237,7 +238,7 @@ Ollama has a REST API for running and managing models.