mlx-bun library API
    Preparing search index...

    Interface GraphEntry<Source, Model>

    One graph of a family and the composition it serves. create borrows the source and releases what it built if construction fails, as ModelImplementation.create does.

    interface GraphEntry<Source, Model> {
        id: string;
        serves: ServedComposition;
        anePrograms?(): readonly AneProgramSpec[];
        create(
            source: Source,
            config: ModelConfig,
            composition: Composition,
        ): Model;
    }

    Type Parameters

    • Source
    • Model
    Index
    id: string

    Names the graph in diagnostics and tests.

    • The programs this file loads, compiled by the install step before loading weights. The graph's program list takes no composition. Absent: none.

      Returns readonly AneProgramSpec[]