shim_darwin.go 361 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
}