e12fff8810
Make sure if something goes wrong spawning the process, the user gets enough info to be able to try to self correct, or at least file a bug with details so we can fix it. Once the process starts, we immediately change back to the recommended setting to prevent the blocking dialog. This ensures if the model fails to load (OOM, unsupported model type, etc.) the process will exit quickly and we can scan the stdout/stderr of the subprocess for the reason to report via API.
11 lines
158 B
Go
11 lines
158 B
Go
package llm
|
|
|
|
import (
|
|
"embed"
|
|
"syscall"
|
|
)
|
|
|
|
//go:embed build/darwin/arm64/*/bin/*
|
|
var libEmbed embed.FS
|
|
|
|
var LlamaServerSysProcAttr = &syscall.SysProcAttr{}
|