mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-12 00:37:04 +00:00
Adapted rocm support to cgo based llama.cpp
This commit is contained in:
18
llm/shim_darwin.go
Normal file
18
llm/shim_darwin.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package llm
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/jmorganca/ollama/api"
|
||||
)
|
||||
|
||||
// no-op stubs for mac
|
||||
|
||||
func newRocmShimExtServer(model string, adapters, projectors []string, numLayers int64, opts api.Options) (extServer, error) {
|
||||
// should never happen...
|
||||
return nil, fmt.Errorf("ROCM GPUs not supported on Mac")
|
||||
}
|
||||
|
||||
func nativeInit(workDir string) error {
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user