shim_darwin.go 361 B

12345678910111213141516
  1. package llm
  2. import (
  3. "embed"
  4. "fmt"
  5. "github.com/jmorganca/ollama/api"
  6. )
  7. //go:embed llama.cpp/ggml-metal.metal
  8. var libEmbed embed.FS
  9. func newDynamicShimExtServer(library, model string, adapters, projectors []string, opts api.Options) (extServer, error) {
  10. // should never happen...
  11. return nil, fmt.Errorf("Dynamic library loading not supported on Mac")
  12. }