Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Bonsai2Service.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<service>
<id>Bonsai2Service</id>
<name>Ternary Bonsai 2 27B llama.cpp Service</name>
<description>Native Windows Service (WinSW) for PrismML Ternary Bonsai 2 27B (PQ2_0) with CUDA 13.4 GPU acceleration</description>
<executable>C:\Users\vonwa\.gemini\antigravity\scratch\prism_cuda\bin\llama-server.exe</executable>
<arguments>-m "C:\Users\vonwa\.gemini\antigravity\scratch\llama_gemma\models\Ternary-Bonsai-2-27B-PQ2_0.gguf" --host 0.0.0.0 --port 8080 -c 81920 -ctk q8_0 -ctv q8_0 -ngl 99 -fa on -t 16 -b 2048 -ub 1024 --reasoning off --reasoning-budget 0 --temp 0.7 --top-p 0.80 --top-k 20 --min-p 0.0 --repeat-penalty 1.10 --frequency-penalty 0.3 --presence-penalty 0.2 --dry-multiplier 0.8</arguments>
<workingdirectory>C:\Users\vonwa\.gemini\antigravity\scratch\prism_cuda</workingdirectory>
<logpath>C:\Users\vonwa\.gemini\antigravity\scratch\prism_cuda\logs</logpath>
<log mode="roll"></log>
<startmode>Automatic</startmode>
<onfailure action="restart" delay="10 sec"/>
</service>
12 changes: 12 additions & 0 deletions Gemma4Service.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<service>
<id>Gemma4Service</id>
<name>Gemma 4 12B llama.cpp Service</name>
<description>Native Windows Service (WinSW) for Google Gemma 4 12B LLM inference engine with CUDA 13.4 GPU acceleration</description>
<executable>C:\Users\vonwa\.gemini\antigravity\scratch\llama_gemma\bin\llama-server.exe</executable>
<arguments>-m "C:\Users\vonwa\.gemini\antigravity\scratch\llama_gemma\models\gemma-4-12B-it-Q4_K_M.gguf" --host 0.0.0.0 --port 8081 -c 16384 -ngl 99 -fa 1 -t 16 -b 2048 -ub 512 -sps 0.5 --reasoning-budget 0 --spec-type ngram-simple</arguments>
<workingdirectory>C:\Users\vonwa\.gemini\antigravity\scratch\llama_gemma</workingdirectory>
<logpath>C:\Users\vonwa\.gemini\antigravity\scratch\llama_gemma\logs</logpath>
<log mode="roll"></log>
<startmode>Manual</startmode>
<onfailure action="restart" delay="10 sec"/>
</service>
2 changes: 1 addition & 1 deletion ggml/src/ggml-cuda/argsort.cu
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#ifdef GGML_CUDA_USE_CUB
# include <cub/cub.cuh>
# if (CCCL_MAJOR_VERSION >= 3 && CCCL_MINOR_VERSION >= 1)
# if (CCCL_MAJOR_VERSION == 3 && CCCL_MINOR_VERSION == 1)
# define STRIDED_ITERATOR_AVAILABLE
# include <cuda/iterator>
# endif
Expand Down
2 changes: 1 addition & 1 deletion ggml/src/ggml-cuda/top-k.cu
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#ifdef GGML_CUDA_USE_CUB
# include <cub/cub.cuh>
# if (CCCL_MAJOR_VERSION >= 3 && CCCL_MINOR_VERSION >= 2)
# if (CCCL_MAJOR_VERSION == 3 && CCCL_MINOR_VERSION == 2)
# define CUB_TOP_K_AVAILABLE
# include <cuda/iterator>
using namespace cub;
Expand Down
488 changes: 488 additions & 0 deletions servicemanager.ps1

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/llama-arch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ LLM_TN_IMPL::LLM_TN_IMPL(llm_arch arch, llm_tensor tensor, const char * suffix,

std::string LLM_TN_IMPL::str() const {
if (LLM_TENSOR_NAMES.find(tensor) == LLM_TENSOR_NAMES.end()) {
GGML_ABORT("unknown tensor name for tensor id %d", static_cast<int>(tensor));
return "unknown";
}

std::string name = ::format(LLM_TENSOR_NAMES.at(tensor), bid, xid);
Expand Down
4 changes: 2 additions & 2 deletions vendor/cpp-httplib/httplib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1517,8 +1517,8 @@ bool mmap::open(const char *path) {
if (wpath.empty()) { return false; }

hFile_ =
::CreateFile2(wpath.c_str(), GENERIC_READ,
FILE_SHARE_READ | FILE_SHARE_WRITE, OPEN_EXISTING, NULL);
::CreateFileW(wpath.c_str(), GENERIC_READ,
FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);

if (hFile_ == INVALID_HANDLE_VALUE) { return false; }

Expand Down