Distribute and run LLMs with a single file.
C++ cross-platformggufllama-cpplocal-ailocal-inferencelocal-llmopen-source-aisingle-file-executablespeech-to-text
Fix indentation in log.c
Justine Tunney3828eb877019
diff --git a/llamafile/log.c b/llamafile/log.cindex aea85ebd..27f87444 100644--- a/llamafile/log.c+++ b/llamafile/log.c@@ -22,22 +22,22 @@bool FLAG_log_disable;void (tinylog)(const char *s, ...) {- size_t n;- int c, cs;- va_list va;- char buf[512];- pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);- va_start(va, s);- for (n = 0; s; s = va_arg(va, const char *)) {- while ((c = *s++)) {- buf[n++] = c;- if (n == sizeof(buf)) {- write(2, buf, n);- n = 0;- }+ size_t n;+ int c, cs;+ va_list va;+ char buf[512];+ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);+ va_start(va, s);+ for (n = 0; s; s = va_arg(va, const char *)) {+ while ((c = *s++)) {+ buf[n++] = c;+ if (n == sizeof(buf)) {+ write(2, buf, n);+ n = 0;+ }+ }}- }- va_end(va);- write(2, buf, n);- pthread_setcancelstate(cs, 0);+ va_end(va);+ write(2, buf, n);+ pthread_setcancelstate(cs, 0);}diff --git a/llamafile/rocm.sh b/llamafile/rocm.shindex 24c49047..aa429811 100755--- a/llamafile/rocm.sh+++ b/llamafile/rocm.sh@@ -1,5 +1,5 @@#!/bin/sh-# Compiles distributable DLL for NVIDIA GPU support+# Compiles distributable DLL for AMD GPU support## The artifact will only depend on KERNEL32.DLL and NVCUDA.DLL.# NVCUDA DLLs are provided by the installation of the windows GPU