Skip to content

Commit b22e22c

Browse files
committed
fix: try using a different method to extract llama.cpp version
1 parent d7bc35a commit b22e22c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/llama_cpp_server_python/_binary.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from pathlib import Path
88

99
_SCRIPT = """
10-
curl -s https://raw.githubusercontent.com/NickCrews/llama.cpp/dcd044206696c4c8ec0620f2376f80daa608179b/download-release.sh | bash -s -- {dest_dir} {options}
10+
curl -s https://raw.githubusercontent.com/NickCrews/llama.cpp/ea325e0eefb30b9d9cc8cdcd2ca227c71e063d2c/scripts/download-release.sh | bash -s -- {dest_dir} {options}
1111
"""
1212

1313
logger = logging.getLogger(__name__)
@@ -25,7 +25,7 @@ def download_binary(
2525
"""
2626
Download the llama.cpp server binary.
2727
28-
Uses https://raw.githubusercontent.com/NickCrews/llama.cpp/dcd044206696c4c8ec0620f2376f80daa608179b/download-release.sh
28+
Uses https://raw.githubusercontent.com/NickCrews/llama.cpp/ea325e0eefb30b9d9cc8cdcd2ca227c71e063d2c/scripts/download-release.sh
2929
to download the binary.
3030
3131
Parameters
@@ -55,6 +55,8 @@ def download_binary(
5555
script = _SCRIPT.format(dest_dir=tmpdir, options=options_str)
5656
logger.info(f"Downloading llama.cpp server binary using '{script}'")
5757
completed = subprocess.run(script, shell=True, check=True, capture_output=True)
58+
print(completed.stdout)
59+
print(completed.stderr)
5860
logger.info(completed.stdout)
5961
logger.info(completed.stderr)
6062
raw_path = tmpdir + "/llama-server"

0 commit comments

Comments
 (0)