Skip to content

Commit

Permalink
select CUDA backend only if present
Browse files Browse the repository at this point in the history
  • Loading branch information
mudler committed May 13, 2024
1 parent 94d96c7 commit e2fb46b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/model/initializers.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ func (ml *ModelLoader) grpcModel(backend string, o *Options) func(string, string
if strings.Contains(gpu.String(), "nvidia") {
log.Info().Msgf("[%s] attempting to load with CUDA variant", backend)
grpcProcess = backendPath(o.assetDir, LLamaCPPCUDA)
foundCUDA = true
if _, err := os.Stat(grpcProcess); err == nil {
foundCUDA = true
}
}
}
}
Expand Down

0 comments on commit e2fb46b

Please sign in to comment.