Skip to content

Windows CUDA release version missing #27

Closed

Description

@fuzzballb

Activity

  1. fuzzballb commented on Apr 22, 2026

    @fuzzballb
    Author

    I build it from source and it works perfectly

    Running Ternary Bonsai with CUDA on Windows

    Requirements: Windows, NVIDIA GPU (Maxwell/GTX 900 series or newer), ~5 GB free disk space

    STEP 1 - Install prerequisites

    STEP 2 - Download models

    Get whichever .gguf you want from PrismML's Hugging Face page:
    Ternary-Bonsai-1.7B-Q2_0.gguf (~0.4 GB) — fastest
    Ternary-Bonsai-4B-Q2_0.gguf (~0.9 GB) — best balance

    Place them somewhere easy, e.g. C:\Ternary\

    STEP 3 - Download CUDA runtime DLLs

    From https://github.com/PrismML-Eng/llama.cpp/releases/tag/prism-b8846-d104cf1
    download: cudart-llama-bin-win-cuda-12.4-x64.zip
    Extract it to C:\Ternary\cudart\

    STEP 4 - Build llama.cpp from source

    Open: Start Menu -> "Developer Command Prompt for VS 2022"

    Run these commands:

    cd C:\Ternary
    git clone https://github.com/PrismML-Eng/llama.cpp.git llama.cpp-src
    cd llama.cpp-src
    set CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4
    cmake -B build -G Ninja -DGGML_CUDA=ON -DCMAKE_CUDA_COMPILER="%CUDA_PATH%\bin\nvcc.exe" -DCMAKE_BUILD_TYPE=Release
    cmake --build build --config Release -j 4

    This will take 10-20 minutes.

    STEP 5 - Copy DLLs

    Copy these three files from C:\Ternary\cudart\ into C:\Ternary\llama.cpp-src\build\bin:
    cublas64_12.dll
    cublasLt64_12.dll
    cudart64_12.dll

    STEP 6 - Run

    C:\Ternary\llama.cpp-src\build\bin\llama-cli.exe -m C:\Ternary\Ternary-Bonsai-4B-Q2_0.gguf -c 2048 -n -1 --conversation -ngl 99 -t 4

    Expected speeds (GTX 930MX, 2 GB VRAM):
    1.7B model -> ~15 tokens/sec
    4B model -> ~7 tokens/sec

    Faster GPUs with more VRAM will do significantly better.
    The 4B model is recommended as the best balance of speed and quality.

  2. vinodkrishna221 commented on Apr 22, 2026

    @vinodkrishna221

    i am also having this same issue

  3. khosravipasha commented on Apr 22, 2026

    @khosravipasha
    Collaborator
  4. Copilot commented on Apr 22, 2026

    Copilot

    The agent encountered an error and was unable to start working on this issue: The service is temporarily unavailable. Please try again later. (Request id: D3F8:9E1E6:15AC77:15D7B5:69E8F4EF)

  5. khosravipasha commented on Apr 22, 2026

    @khosravipasha
    Collaborator

    On the https://github.com/PrismML-Eng/Bonsai-demo this is handled, not sure why windows one gets the wrong name.
    Need to take a closer look, in the meantime can use the windows installer there (should handle everything automatically)
    https://github.com/PrismML-Eng/Bonsai-demo/blob/main/setup.ps1

  6. added a commit that references this issue on Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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