Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An ollama dev container

Easy interactions with ollama within VSCode leveraging the ollama docker image.

Pre-req

  • Docker
  • VSCode
  • VSCode DevContainers extension

Instructions

Open in dev container

Clone the repo, open the folder in VSCode and then choose to open in dev container when prompted. image

  • Required docker images will be downloaded automatically.
  • Gemma server is auto started upon dev container running as well.
  • Port is automatically mapped to host (11434).

Run a model

After container is started, open a terminal in the VSCode session and run below (using Gemma:2b as an example):

./gemma2b.sh

All it does is just running ollama run gemma:2b. You can then interact with the model from the terminal.

Alternatively, you can also open the requests.http file in VSCode and test the model interaction via the pre-installed Rest Client VSCode extension.

image

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages