Skip to content

[Feature Request] Bundle compiled CPU-only libs into jar #2

@AutonomicPerfectionist

Description

@AutonomicPerfectionist

Is it possible to use Github Actions to compile the llama.cpp libraries for CPU-only inference (to avoid needing multiple different variants per architecture and to avoid build dep issues in Actions) and include them in the built jar? This project has a workflow that can be used to build off of. They use JNI instead of JNA, but the same methods should be usable. The resource folders containing the architecture-specific libraries need to be named a certain way though for JNA to find them: {os-name}-{arch}. The docs aren't super helpful on that, they imply on linux it should be linux-amd64 but I could only get it to work by naming the resource folder linux-x86-64

I can help with this if you would like, but I can't test the workflow myself for obvious reasons

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions