Skip to content

Olla can't find LLAMA.CPP models #86

Closed

Description

@Lukas-tek-no-logic

my system is having trouble with identifying models:
luok@hublx in ~ via  v3.13.7 as 🧙
╰─λ curl 192.168.0.169:40114/internal/health
{"status":"healthy"}⏎
╭─luok@hublx in ~ via  v3.13.7 as 🧙 took 0s
╰─λ curl 192.168.0.169:40114/internal/status/endpoints
{"timestamp":"2025-12-04T21:15:44.100049657+01:00","endpoints":[{"name":"local-llamacpp","type":"llamacpp","status":"healthy","health_check":"28s ago","response_time":"1ms","success_rate":"N/A","priority":100,"model_count":0,"request_count":0}],"total_count":1,"healthy_count":1,"routable_count":1}

╭─luok@hublx in ~ via  v3.13.7 as 🧙 took 0s
╰─λ curl 192.168.0.169:40114/internal/status/models
{"timestamp":"2025-12-04T21:15:59.88380477+01:00","models_by_family":{},"recent_models":[],"total_models":0,"total_families":0,"total_endpoints":0}

But:
curl 192.168.0.169:8080/models
{"models":[{"name":"Qwen3-Next-80B-A3B-Instruct-UD-Q8_K_XL-00001-of-00002.gguf","model":"Qwen3-Next-80B-A3B-Instruct-UD-Q8_K_XL-00001-of-00002.gguf","modified_at":"","size":"","digest":"","type":"model","description":"","tags":[""],"capabilities":["completion"],"parameters":"","details":{"parent_model":"","format":"gguf","family":"","families":[""],"parameter_size":"","quantization_level":""}}],"object":"list","data":[{"id":"Qwen3-Next-80B-A3B-Instruct-UD-Q8_K_XL-00001-of-00002.gguf","object":"model","created":1764879484,"owned_by":"llamacpp","meta":{"vocab_type":2,"n_vocab":151936,"n_ctx_train":262144,"n_embd":2048,"n_params":79674391296,"size":85436689408}}]}

My config :

server:
host: "0.0.0.0"
port: 40114

proxy:
engine: "sherpa"
profile: "auto"

llama.cpp backend discovery

discovery:
type: static
static:
endpoints:

model_registry:
enable_unifier: true

logging:
level: "info" # debug, info, warn, error

Activity

  1. self-assigned this
    on Dec 7, 2025
  2. added
    investigating
    on Dec 7, 2025
  3. thushan commented on Dec 7, 2025

    @thushan
    Owner

    Thanks for reporting, will investigate and get back to you soon.

  4. thushan commented on Dec 9, 2025

    @thushan
    Owner

    Ah, i think we've figured out why this may not be working, because the model URL is set to /v1/models and the profile for llamacpp is also that but llamacpp server supports /models.

    I did realise that the model_url is not being overridden properly from the endpoint configuration, which is problematic.

    Give me sometime to apply a fix, test it and we can give you a build to test.

    Just to confirm:

    • What's the version of llamacpp you're running?
    • What's the version of olla you're running?

    This is your endpoint config for Olla:

    discovery:
    type: static
    static:
    endpoints:
    
    url: "http://192.168.0.169:8080/"
    name: "local-llamacpp"
    type: "llamacpp"
    priority: 100
    model_url: "/v1/models" # OpenAI-compatible endpoint
    health_check_url: "/health" # llama.cpp health endpoint
    check_interval: 2s
    check_timeout: 1s
    model_registry:
    enable_unifier: true
    
    logging:
    level: "info" # debug, info, warn, error
    
  5. Lukas-tek-no-logic commented on Dec 9, 2025

    @Lukas-tek-no-logic
    Author

    Hi, thanks for insvestigating.
    Here is my olla version :
    │ github.com/thushan/olla v0.0.21

    and my llama.cpp version:

    ggml_vulkan: Found 1 Vulkan devices:
    ggml_vulkan: 0 = Radeon 8060S Graphics (RADV GFX1151) (radv) | uma: 1 | fp16: 1 | bf16: 0 | warp size: 64 | shared memory: 65536 | int dot: 1 | matrix cores: KHR_coopmat
    version: 7251 (3d94e967a)
    built with cc (GCC) 15.2.1 20251111 (Red Hat 15.2.1-4) for x86_64-redhat-linux

  6. thushan commented on Dec 14, 2025

    @thushan
    Owner

    Great news, I think we have a build that fixes this, it's just going through some final checks, we'll have a RC release tomorrow I hope (you can build from source otherwise).

  7. Lukas-tek-no-logic commented on Dec 15, 2025

    @Lukas-tek-no-logic
    Author

    Hello,
    updated to 0.0.22, and still same issue - not recognizing any models. Maybe I'm doing something wrong?

    my config currently :
    server:
    host: "0.0.0.0"
    port: 40114

    proxy:
    engine: "sherpa"
    profile: "auto"

    llama.cpp backend discovery

    discovery:
    type: static
    static:
    endpoints:
    - url: "http://192.168.0.169:8080"
    name: "local-llamacpp"
    type: "llamacpp"
    priority: 100
    model_url: "/v1/models" # OpenAI-compatible endpoint
    health_check_url: "/health" # llama.cpp health endpoint
    check_interval: 2s
    check_timeout: 1s

    model_registry:
    enable_unifier: true

    logging:
    level: "info" # debug, info, warn, error

  8. thushan commented on Dec 16, 2025

    @thushan
    Owner

    hey mate,

    Ahhh I think i see the issue, your config doesn't have model discovery enabled.

    My apologies, I think we should probably be better at documenting this, as you need to specify whether model discovery is enabled.

      model_discovery:
        enabled: true
        interval: 5m
        timeout: 30s
        concurrent_workers: 5
        retry_attempts: 3
        retry_backoff: 1s

    Here's a full configuration you can try with your server (.169) enabled, see if this works?

    # Olla Configuration (default)
    server:
      host: "0.0.0.0"
      port: 40114 # default port for Olla - 4-OLLA
      read_timeout: 20s
      write_timeout: 0s # for LLMs streaming, leave this as 0s
      shutdown_timeout: 10s # Graceful shutdown timeout, increase this for heavy sites that have long-running requests or lots of endpoints (30s is a good)
      request_logging: true # logs Http Requests, may be useful for debugging, noise for other use cases
      request_limits:
        max_body_size: 52428800  # 50MB
        max_header_size: 524288  # 512KB
      rate_limits:
        global_requests_per_minute: 1000
        per_ip_requests_per_minute: 100
        health_requests_per_minute: 1000
        burst_size: 50
        per_endpoint:
          default_requests_per_minute: 200
        cleanup_interval: 5m
        trust_proxy_headers: false
        trusted_proxy_cidrs: [
          "127.0.0.0/8",
          "10.0.0.0/8",
          "172.16.0.0/12",
          "192.168.0.0/16"
        ]
    
    proxy:
      # NOTE: From v0.1.0+ we'll switch to Olla as the default proxy engine
      #       Sherpa will continue to be maintained and supported for the
      #       foreseeable future
      engine: "olla" # Available: sherpa, olla
      # Profile controls proxy engine (http) transport buffer behaviour
      # - "auto": Dynamically selects based on request size, type and other factors (default)
      # - "streaming": No buffering, tokens stream immediately, low latency & low memory usage
      # - "standard": Normal HTTP delivery without forced flushing, suitable for REST APIs
      profile: "auto" # Available: auto, streaming, standard
      load_balancer: "least-connections" # Available: round-robin, least-connections, priority
      stream_buffer_size: 8192 # Buffer size per request - larger = fewer syscalls, more memory
      connection_timeout: 60s
      response_timeout: 900s
      read_timeout: 600s
      
      # DEPRECATED as of v0.0.16 - These fields are no longer used
      # max_retries: 3        # Replaced by retry.max_attempts
      # retry_backoff: 500ms  # Now uses intelligent exponential backoff
      
      # Connection failure retry settings (applies to both Sherpa and Olla engines)
      # When enabled, the proxy will automatically retry failed requests on other healthy endpoints
      retry:
        enabled: true # Enable automatic retry on connection failures
        on_connection_failure: true # Retry when connection to backend fails (connection refused, reset, timeout)
        max_attempts: 0 # Maximum retry attempts (0 = try all available endpoints once)
        # Connection errors that trigger retry:
        # - Connection refused (backend is down)
        # - Connection reset (backend crashed)
        # - Connection timeout (backend is overloaded)
        # - Network unreachable (network issues)
        # Failed endpoints are immediately marked as unhealthy and removed from the retry pool
    
    discovery:
      type: "static"
      refresh_interval: 30s
      
      # Health check and recovery settings
      health_check:
        initial_delay: 1s # Delay before first health check
        # When an endpoint fails during request processing:
        # - It's immediately marked as unhealthy
        # - Consecutive failures increment, causing exponential backoff
        # - Next check time = now + (consecutive_failures * 2) seconds (max 60s)
        # - Health checker will automatically recover endpoints when they're back online
      
      static:
        endpoints:
          - url: "http://192.168.0.169:8080"
            name: "local-llamacpp"
            type: "llamacpp"
            priority: 100
            model_url: "/v1/models"
            health_check_url: "/health"
            check_interval: 2s # How often to check when healthy
            check_timeout: 1s
      model_discovery:
        enabled: true
        interval: 5m
        timeout: 30s
        concurrent_workers: 5
        retry_attempts: 3
        retry_backoff: 1s
    
    model_registry:
      type: "memory"
      enable_unifier: true
    
      unification:
        enabled: true
        stale_threshold: 24h  # How long to keep models in memory after last seen
        cleanup_interval: 10m  # How often to check for stale models
      
      # Model routing strategy (v0.0.16+)
      # Controls how requests are routed when models aren't available on all endpoints
      routing_strategy:
        type: "strict"  # Options: strict, optimistic, discovery
        options:
          # Fallback behavior when model not found (optimistic mode)
          fallback_behavior: "compatible_only"  # Options: compatible_only, all, none
          
          # Discovery mode settings
          discovery_timeout: 2s  # Timeout for discovery refresh
          discovery_refresh_on_miss: false  # Refresh discovery when model not found
    
    translators:
      #####
      # !Experimental! v0.0.20+
      # Anthropic translation is very early stages of development, so please let us know
      # if you come across issues or have feedback.
      #####
      anthropic:
        enabled: false
        max_message_size: 10485760  # 10MB - Anthropic API limit
        # !! WARNING: Do not enable inspector in production without reviewing data privacy !!
        #             Anthropic messages may contain sensitive user data.
        #  This release is quite taxing and unoptimised, so use with caution & only for debug.
        inspector:
          enabled: false                          # Enable request/response logging
          output_dir: "logs/inspector/anthropic"  # Where to write logs
          session_header: "X-Session-ID"          # Header to use for session grouping
    logging:
      level: "info"  # debug, info, warn, error
      format: "json"  # json, text
      output: "stdout"  # stdout, file
    
    engineering:
      show_nerdstats: false
  9. Lukas-tek-no-logic commented on Dec 16, 2025

    @Lukas-tek-no-logic
    Author

    Thank you, it works!

    This endpoint

    /olla/openai/

    correctly returns all models.

    I have additional question - I see that having ollama.cpp I can correctly use those endpoints:

    /olla/openai/v1/models | GET | OpenAI-compatible models
    /olla/openai/ | | openai proxy
    /olla/openai-compatible/v1/models | GET | openai-compatible models (OpenAI format)
    /olla/openai-compatible/ | | openai-compatible proxy

    but this is not working (at least in n8n):

    /olla/ollama/

    as it does not list any models.


    One remark about configutarion - Beforehand I used example from:
    olla/examples/claude-code-llamacpp
    /olla.yaml

    Maybe it would be good to update it with example from above as it works great.

    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

investigating

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions