Skip to content

How to compile a server.exe? #78

Closed

Description

@clilyn1234

Functionality similar to LLaMA.cpp HTTP Server.
./llama-server

Activity

  1. grctest commented on Nov 12, 2024

    @grctest

    This can provide you a form of HTTP server: #110

    It's for local use only though, not for production

  2. sd983527 commented on Apr 18, 2025

    @sd983527
    Contributor

    You can build lllama-server and run it with the current codebase.

  3. khromalabs commented on Apr 21, 2025

    @khromalabs

    To compile the server:

    • Go to 3rdparty/llama.cpp
    • Run: mkdir build && cmake -B build && cmake --build build --config Release --target llama-server

    If the compilation success, the binary will be available in build/bin.

  4. CementZhang commented on Apr 22, 2025

    @CementZhang

    To compile the server:

    • first set build server flag
    cmake -S . -B build -DLLAMA_BUILD_SERVER=ON
    • then reset setup_env
     python setup_env.py -md models/BitNet-b1.58-2B-4T -q i2_s
    • In the build/bin/ directory you will see llama-server, standard llama-server usage
     ./build/bin/llama-server -m models/BitNet-b1.58-2B-4T/ggml-model-i2_s.gguf --port 18080 -t 3 -np 2 --prio 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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