mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-11 08:17:03 +00:00
Merge pull request #3566 from dhiltgen/more_time
Handle very slow model loads
This commit is contained in:
@@ -383,7 +383,8 @@ func (s *LlamaServer) Ping(ctx context.Context) error {
|
|||||||
|
|
||||||
func (s *LlamaServer) waitUntilRunning() error {
|
func (s *LlamaServer) waitUntilRunning() error {
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
expiresAt := time.Now().Add(3 * time.Minute) // be generous with timeout, large models can take a while to load
|
// TODO we need to wire up a better way to detect hangs during model load and startup of the server
|
||||||
|
expiresAt := time.Now().Add(10 * time.Minute) // be generous with timeout, large models can take a while to load
|
||||||
ticker := time.NewTicker(50 * time.Millisecond)
|
ticker := time.NewTicker(50 * time.Millisecond)
|
||||||
defer ticker.Stop()
|
defer ticker.Stop()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user