Skip to content

Questions about API/ABI stability #1405

@ckastner

Description

@ckastner

Hi,

with semantic versioning in place, and also the recent addition of a SOVER, I have a few questions that are relevant to some distributions. For example on Debian we've so far shipped the libggml in a private directory because the public locations (/usr/lib etc.) have stability requirements. With these recent improvements, we think we can move this into a public location now.

  1. What would you consider the public interface?

    Asking so that we can adapt our automated checks for API/ABI breakage (abi-compliance-checker, abigail-tools). For example, libggml-base.so is not part of this public interface, right? As in: it's used by libggml.so, not by users directly, so any breakage there is "internal" and would not require a SOVER bump

  2. What about the interface of the backends? Also, is this dependent on GGML_BACKEND_DL=ON/OFF?

    I think this one is a bit tricky. For example, what happens when libggml-cpu.so has a breaking change? Would this be an internal change, or a public one? If public, would libggml-cpu.so get its own SOVER bump, or would all of ggml get a SOVER bump? (AFAICT, there is currently one SOVER project-wide)

  3. Extending the previous questions: Even taking the libggml.so public, we'd still keep the backends like (libggml-cuda.so) in a private directory. Do you think this is wrong? Should these, be public, too?

    Can these backends have any standalone value, that would make sense in a public directory? Or are they "only" to be accessed through libggml{,base}.so?

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