Skip to content

Feature request: support model specific inference parameters #254

Description

@rzerres

Model specific inference speedup

I'd like to improve the inference speed of the gemma 4 models.
Following e.g. Venelin Valkov who talks about significant improvements
inside llama.cpp running gemma 4, if you adapt flags:

parameter value category
spec-type draft-mtp speculative decoding
spec-type-draft-n-max 2 speculative decoding
fit off general

I have seen, that you already published llama-cpp-bindings v0.10.0.

Proposed improvement

Paddler might offer model specific "inference options"

I'm aware of the fact, what the llama.cpp stack is continously growing. Supporting everything inside paddlers UI will get cluttered
and overwhelming. Some are obviously model specific and do not improve general operation.

As an alternative, the extended options could be incorporated via the api calls (curl X "PUT" ...). The interested audience can read up
available options inside the API documentation.

  • custom flags

    There might be a workaround/solution introducing a "custom flags" field.
    Thus, an educated user/developer can add the needed flags.

Even if the backend (paddler) might not be able to formaly verify the syntax of a given flag, this can be handled when forwarding to
llama.cpp.

  • model flags vs general flags

    Given UI is using general flags. To keep the interface clean, this can be enrichted with a model specific section.
    Well known models can be handled with a formal syntax analize inside the crate.

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