Skip to content

Refactor large source files into smaller, modular units #1482

@Zabis13

Description

@Zabis13

The main ggml.c file currently contains ~20,000 lines of code, which makes navigation, debugging, and code review difficult. Similar large files include ggml-cuda.cu and ggml-vulkan.cpp.
We kindly request splitting these files by functionality — such as separating tensor operations, quantization logic, and backend-specific code into dedicated modules. This would significantly improve code organization, reduce merge conflicts, and most importantly, make it easier to port and maintain these modules in dependent packages (e.g., ggmlR).
Smaller, focused files are much easier to track, patch, and integrate into downstream projects while maintaining version compatibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions