Skip to content

Commit 75a919d

Browse files
committed
Replace llava with llava-phi3
1 parent 7c8fe26 commit 75a919d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

02-prompts/prompts-multimodality-ollama/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ The application relies on Ollama for providing LLMs. You can either run Ollama l
99
### Ollama as a native application
1010

1111
First, make sure you have [Ollama](https://ollama.ai) installed on your laptop.
12-
Then, use Ollama to run the _llava_ large language model. That's what we'll use in this example.
12+
Then, use Ollama to run the _llava-phi3_ large language model. That's what we'll use in this example.
1313

1414
```shell
15-
ollama run llava
15+
ollama run llava-phi3
1616
```
1717

1818
Finally, run the Spring Boot application.
@@ -23,15 +23,15 @@ Finally, run the Spring Boot application.
2323

2424
### Ollama as a dev service with Testcontainers
2525

26-
The application relies on the native Testcontainers support in Spring Boot to spin up an Ollama service with a _llava_ model at startup time.
26+
The application relies on the native Testcontainers support in Spring Boot to spin up an Ollama service with a _llava-phi3_ model at startup time.
2727

2828
```shell
2929
./gradlew bootTestRun
3030
```
3131

3232
## Calling the application
3333

34-
You can now call the application that will use Ollama and _llava_ to generate text based on a default image.
34+
You can now call the application that will use Ollama and _llava-phi3_ to generate text based on a default image.
3535
This example uses [httpie](https://httpie.io) to send HTTP requests.
3636

3737
```shell

02-prompts/prompts-multimodality-ollama/src/main/resources/application.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ spring:
33
ollama:
44
chat:
55
options:
6-
model: llava
6+
model: llava-phi3
77
temperature: 0.7

02-prompts/prompts-multimodality-ollama/src/test/java/com/thomasvitale/ai/spring/TestPromptsMultimodalityOllamaApplication.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class TestPromptsMultimodalityOllamaApplication {
1515
@RestartScope
1616
@ServiceConnection
1717
OllamaContainer ollama() {
18-
return new OllamaContainer(DockerImageName.parse("ghcr.io/thomasvitale/ollama-llava")
18+
return new OllamaContainer(DockerImageName.parse("ghcr.io/thomasvitale/ollama-llava-phi3")
1919
.asCompatibleSubstituteFor("ollama/ollama"));
2020
}
2121

0 commit comments

Comments
 (0)