Merge pull request #1934 from jmorganca/mxyng/fix-slices
fix build and lint
This commit is contained in:
commit
f84537e0e0
2 changed files with 3 additions and 2 deletions
|
@ -2,6 +2,7 @@ package llm
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
|
@ -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 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Finaly, if we didn't find any matches, LCD CPU FTW
|
// Finally, 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"]}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue