Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ollama: implement ollama with llama3 command #188

Merged
merged 32 commits into from
May 11, 2024
Merged

ollama: implement ollama with llama3 command #188

merged 32 commits into from
May 11, 2024

Conversation

ishandhanani
Copy link
Contributor

@ishandhanani ishandhanani commented May 7, 2024

This PR adds support to launch an ollama server with llama3 through the CLI. Additionally, I updated the Workspace type to support verb and cloudflare fields

Ticket: ENG-3758


// Start the network call in a goroutine
go func() {
err := runOllamaWorkspace(t, model, ollamaStore)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets copy over the the async function from devplane collections. Its really useful for this kind of thing without having to wrangle goroutines manually

s := t.NewSpinner()

go func() {
w, err = ollamaStore.CreateWorkspace(org.ID, cwOptions)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same thing about async await

lf, err = ollamaStore.BuildVerbContainer(w.ID, verbYaml)
if err != nil {
// ideally log something here?
verbCh <- nil
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same thing async

@theFong theFong merged commit 03617f6 into main May 11, 2024
2 of 8 checks passed
@ishandhanani ishandhanani deleted the ollama branch May 17, 2024 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants