8000 onefile · devcxl/llama-cpp-python@120c024 · GitHub
[go: up one dir, main page]

Skip to content

Commit 120c024

Browse files
authored
onefile
1 parent 81196e8 commit 120c024

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
python3 -m pip install pyinstaller
3030
3131
- name: Build package
32-
run: pyinstaller --onefile llama-server.spec
32+
run: pyinstaller llama-server.spec
3333

3434
- name: upload artifact
3535
uses: actions/upload-artifact@v3

llama-server.spec

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ a = Analysis(
88
['llama_cpp/server/__main__.py'],
99
pathex=[],
1010
binaries=[],
11-
datas=[('/home/runner/work/llama-cpp-python/llama-cpp-python/llama_cpp/libllama.so','./llama_cpp/')],
11+
datas=[
12+
('/home/runner/work/llama-cpp-python/llama-cpp-python/llama_cpp/libllama.so','./llama_cpp/'),
13+
('/home/runner/work/llama-cpp-python/llama-cpp-python/llama_cpp/libllava.so','./llama_cpp/')
14+
],
1215
hiddenimports=[],
1316
hookspath=[],
1417
hooksconfig={},
@@ -24,27 +27,21 @@ pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
2427
exe = EXE(
2528
pyz,
2629
a.scripts,
30+
a.binaries,
31+
a.zipfiles,
32+
a.datas,
2733
[],
28-
exclude_binaries=True,
29-
name='llama-server',
30-
debug=True,
34+
name='llama-server.spec',
35+
debug=False,
3136
bootloader_ignore_signals=False,
3237
strip=False,
3338
upx=True,
39+
upx_exclude=[],
40+
runtime_tmpdir=None,
3441
console=True,
3542
disable_windowed_traceback=False,
3643
argv_emulation=False,
3744
target_arch=None,
3845
codesign_identity=None,
3946
entitlements_file=None,
4047
)
41-
coll = COLLECT(
42-
exe,
43-
a.binaries,
44-
a.zipfiles,
45-
a.datas,
46-
strip=False,
47-
upx=True,
48-
upx_exclude=[],
49-
name='llama-server',
50-
)

0 commit comments

Comments
 (0)
0