Skip to content

Using CPU inference there is no way to control how much ram of the host is used #1058

Description

@sbe-arg

We are using tiny models like granite 1b and no matter what settings pass it eventually eats all the server ram.

example

Image
 cat /proc/$(pgrep -f llama-server | head -n1)/cmdline | xargs -0 echo
/app/llama-server -ngl 999 --metrics --model /models/bundles/sha256/91eb206d6605bbeb033ea32d68e9ebb180539f2dd6bdff0d6e4e967ea15f5ace/model/model.gguf --host inference-runner-0.sock --ctx-size 2048 --parallel 2 --threads 5 --mlock --jinja

settings example

docker model configure --context-size 2048 granite-4.0-h-nano:1B -- --parallel 2 --threads 6 --mlock

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions