Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
f84537e0
Unverified
Commit
f84537e0
authored
Jan 11, 2024
by
Michael Yang
Committed by
GitHub
Jan 11, 2024
Browse files
Merge pull request #1934 from jmorganca/mxyng/fix-slices
fix build and lint
parents
de2fbdec
d2be6387
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
llm/llm.go
llm/llm.go
+1
-0
llm/payload_common.go
llm/payload_common.go
+2
-2
No files found.
llm/llm.go
View file @
f84537e0
...
@@ -2,6 +2,7 @@ package llm
...
@@ -2,6 +2,7 @@ package llm
import
(
import
(
"context"
"context"
"fmt"
"log"
"log"
"os"
"os"
"runtime"
"runtime"
...
...
llm/payload_common.go
View file @
f84537e0
...
@@ -3,13 +3,13 @@ package llm
...
@@ -3,13 +3,13 @@ package llm
import
(
import
(
"errors"
"errors"
"fmt"
"fmt"
"golang.org/x/exp/slices"
"io"
"io"
"io/fs"
"io/fs"
"log"
"log"
"os"
"os"
"path/filepath"
"path/filepath"
"runtime"
"runtime"
"slices"
"strings"
"strings"
"github.com/jmorganca/ollama/gpu"
"github.com/jmorganca/ollama/gpu"
...
@@ -76,7 +76,7 @@ func getDynLibs(gpuInfo gpu.GpuInfo) []string {
...
@@ -76,7 +76,7 @@ func getDynLibs(gpuInfo gpu.GpuInfo) []string {
}
}
}
}
// Finaly, if we didn't find any matches, LCD CPU FTW
// Final
l
y, if we didn't find any matches, LCD CPU FTW
if
len
(
dynLibs
)
==
0
{
if
len
(
dynLibs
)
==
0
{
dynLibs
=
[]
string
{
availableDynLibs
[
"cpu"
]}
dynLibs
=
[]
string
{
availableDynLibs
[
"cpu"
]}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment