File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Filter options
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ deploy.pyinstaller.mac:
95
95
CMAKE_BUILD_TYPE="Release" \
96
96
CMAKE_ARGS="-DGGML_METAL=OFF -DGGML_LLAMAFILE=OFF -DGGML_BLAS=OFF \
97
97
-DGGML_NATIVE=ON -DGGML_CPU_AARCH64=ON" \
98
- python3 -m pip install -v -e .[server,dev ]
98
+ python3 -m pip install -v -e .[server,pyinstaller ]
99
99
@server_path=$$(python -c 'import llama_cpp.server; print(llama_cpp.server.__file__)' | sed s/init/main/) ; \
100
100
echo "Server path: $$server_path" ; \
101
101
base_path=$$(python -c 'from llama_cpp._ggml import libggml_base_path; print(str(libggml_base_path))') ; \
Original file line number Diff line number Diff line change @@ -622,8 +622,7 @@ def chat_completion_handler(
622
622
623
623
# We ensure that output path ends with .ndjson in pydantic validation.
624
624
lockfile_path = output_path .with_suffix (".lock" )
625
- lock = filelock .FileLock (str (lockfile_path ))
626
- with lock :
625
+ with filelock .FileLock (str (lockfile_path )):
627
626
with output_path .open ("a" , encoding = "utf-8" ) as f :
628
627
json .dump ({"prompt" : result .prompt , "prompt_tokens" : prompt }, f )
629
628
f .write ("\n " )
Original file line number Diff line number Diff line change @@ -56,9 +56,11 @@ dev = [
56
56
" httpx>=0.24.1" ,
57
57
" pandas>=2.2.1" ,
58
58
" tqdm>=4.66.2" ,
59
+ ]
60
+ pyinstaller = [
59
61
" pyinstaller>=6.11.1" ,
60
62
]
61
- all = [" llama_cpp_python[server,test,dev]" ]
63
+ all = [" llama_cpp_python[server,test,dev,pyinstaller ]" ]
62
64
63
65
[tool .scikit-build ]
64
66
wheel.packages = [" llama_cpp" ]
You can’t perform that action at this time.
0 commit comments