Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
Merge pull request #3834 from dhiltgen/not_found_in_path
Daniel Hiltgen6e76348df7e2
diff --cc llm/server.goindex 00ef20c93,d7d8dce41..da725bc3d--- a/llm/server.go+++ b/llm/server.go@@@ -194,20 -249,16 +194,26 @@@ func NewLlamaServer(gpus gpu.GpuInfoLisparams = append(params, "--numa")}- // Loop through potential servers- var finalErr error+ // "--cont-batching", // TODO - doesn't seem to have any noticeable perf change for multiple requests+ numParallel := 1+ if onp := os.Getenv("OLLAMA_NUM_PARALLEL"); onp != "" {+ numParallel, err = strconv.Atoi(onp)+ if err != nil || numParallel <= 0 {+ err = fmt.Errorf("invalid OLLAMA_NUM_PARALLEL=%s must be greater than zero - %w", onp, err)+ slog.Error("misconfiguration", "error", err)+ return nil, err+ }+ }+ params = append(params, "--parallel", fmt.Sprintf("%d", numParallel))+for i := 0; i < len(servers); i++ {dir := availableServers[servers[i]]+ if dir == "" {+ // Shouldn't happen+ finalErr = fmt.Errorf("[%d] server %s not listed in available servers %v", i, servers[i], availableServers)+ slog.Error("sever list inconsistent", "error", finalErr)+ continue+ }// Find an availableServers port, retry on each iterration in case the failure was a port conflict raceport := 0