bigdl-core-cpp 2.1.0b2__py3-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- bigdl/cpp/__init__.py +0 -0
- bigdl/cpp/convert-hf-to-gguf.py +2856 -0
- bigdl/cpp/convert.py +1714 -0
- bigdl/cpp/gguf-py/__init__.py +0 -0
- bigdl/cpp/gguf-py/gguf/__init__.py +7 -0
- bigdl/cpp/gguf-py/gguf/constants.py +1033 -0
- bigdl/cpp/gguf-py/gguf/gguf.py +15 -0
- bigdl/cpp/gguf-py/gguf/gguf_reader.py +296 -0
- bigdl/cpp/gguf-py/gguf/gguf_writer.py +554 -0
- bigdl/cpp/gguf-py/gguf/lazy.py +236 -0
- bigdl/cpp/gguf-py/gguf/py.typed +0 -0
- bigdl/cpp/gguf-py/gguf/quants.py +123 -0
- bigdl/cpp/gguf-py/gguf/tensor_mapping.py +463 -0
- bigdl/cpp/gguf-py/gguf/vocab.py +165 -0
- bigdl/cpp/libs/baby-llama.exe +0 -0
- bigdl/cpp/libs/batched-bench.exe +0 -0
- bigdl/cpp/libs/batched.exe +0 -0
- bigdl/cpp/libs/beam-search.exe +0 -0
- bigdl/cpp/libs/benchmark.exe +0 -0
- bigdl/cpp/libs/common.lib +0 -0
- bigdl/cpp/libs/convert-llama2c-to-ggml.exe +0 -0
- bigdl/cpp/libs/dist/windows-amd64/ollama_runners/cpu/ollama_llama_server.exe +0 -0
- bigdl/cpp/libs/dist/windows-amd64/ollama_runners/cpu_avx/ollama_llama_server.exe +0 -0
- bigdl/cpp/libs/dist/windows-amd64/ollama_runners/cpu_avx2/ollama_llama_server.exe +0 -0
- bigdl/cpp/libs/embedding.exe +0 -0
- bigdl/cpp/libs/export-lora.exe +0 -0
- bigdl/cpp/libs/finetune.exe +0 -0
- bigdl/cpp/libs/ggml_shared.dll +0 -0
- bigdl/cpp/libs/gguf.exe +0 -0
- bigdl/cpp/libs/gritlm.exe +0 -0
- bigdl/cpp/libs/imatrix.exe +0 -0
- bigdl/cpp/libs/infill.exe +0 -0
- bigdl/cpp/libs/llama-bench.exe +0 -0
- bigdl/cpp/libs/llama.dll +0 -0
- bigdl/cpp/libs/llava-cli.exe +0 -0
- bigdl/cpp/libs/llava_shared.dll +0 -0
- bigdl/cpp/libs/lookahead.exe +0 -0
- bigdl/cpp/libs/lookup.exe +0 -0
- bigdl/cpp/libs/ls-sycl-device.exe +0 -0
- bigdl/cpp/libs/main.exe +0 -0
- bigdl/cpp/libs/ollama.exe +0 -0
- bigdl/cpp/libs/parallel.exe +0 -0
- bigdl/cpp/libs/passkey.exe +0 -0
- bigdl/cpp/libs/perplexity.exe +0 -0
- bigdl/cpp/libs/q8dot.exe +0 -0
- bigdl/cpp/libs/quantize-stats.exe +0 -0
- bigdl/cpp/libs/quantize.exe +0 -0
- bigdl/cpp/libs/save-load-state.exe +0 -0
- bigdl/cpp/libs/server.exe +0 -0
- bigdl/cpp/libs/simple.exe +0 -0
- bigdl/cpp/libs/speculative.exe +0 -0
- bigdl/cpp/libs/tokenize.exe +0 -0
- bigdl/cpp/libs/train-text-from-scratch.exe +0 -0
- bigdl/cpp/libs/vdot.exe +0 -0
- bigdl_core_cpp-2.1.0b2.data/scripts/init-llama-cpp.bat +19 -0
- bigdl_core_cpp-2.1.0b2.data/scripts/init-llama-cpp.ps1 +13 -0
- bigdl_core_cpp-2.1.0b2.data/scripts/init-ollama.bat +13 -0
- bigdl_core_cpp-2.1.0b2.dist-info/METADATA +18 -0
- bigdl_core_cpp-2.1.0b2.dist-info/RECORD +61 -0
- bigdl_core_cpp-2.1.0b2.dist-info/WHEEL +5 -0
- bigdl_core_cpp-2.1.0b2.dist-info/top_level.txt +1 -0
Binary file
|
bigdl/cpp/libs/llama.dll
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
bigdl/cpp/libs/main.exe
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
bigdl/cpp/libs/q8dot.exe
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
bigdl/cpp/libs/vdot.exe
ADDED
Binary file
|
@@ -0,0 +1,19 @@
|
|
1
|
+
@echo off
|
2
|
+
for /f "delims=" %%i in ('python -c "import bigdl.cpp; print(bigdl.cpp.__file__)"') do set "cpp_file=%%i"
|
3
|
+
for %%a in ("%cpp_file%") do set "cpp_dir=%%~dpa"
|
4
|
+
|
5
|
+
set "cpp_dir=%cpp_dir:~0,-1%"
|
6
|
+
set "lib_dir=%cpp_dir%\libs"
|
7
|
+
set "destination_folder=%cd%"
|
8
|
+
|
9
|
+
pushd "%lib_dir%"
|
10
|
+
for %%f in (*) do (
|
11
|
+
if not "%%f"=="ollama.exe" (
|
12
|
+
mklink "%destination_folder%\%%~nxf" "%%~ff"
|
13
|
+
)
|
14
|
+
)
|
15
|
+
popd
|
16
|
+
|
17
|
+
copy "%cpp_dir%\convert.py" .
|
18
|
+
copy "%cpp_dir%\convert-hf-to-gguf.py" .
|
19
|
+
xcopy /E /I "%cpp_dir%\gguf-py\" .\gguf-py
|
@@ -0,0 +1,13 @@
|
|
1
|
+
$cpp_dir = (Split-Path -Parent (python -c "import bigdl.cpp;print(bigdl.cpp.__file__)"))
|
2
|
+
$lib_dir = Join-Path $cpp_dir "libs"
|
3
|
+
$destinationFolder = Get-Location
|
4
|
+
|
5
|
+
$files = Get-ChildItem -Path $lib_dir -File
|
6
|
+
|
7
|
+
foreach ($file in $files){
|
8
|
+
$linkPath = Join-Path -Path $destinationFolder -ChildPath $file.Name
|
9
|
+
New-Item -ItemType SymbolicLink -Path $linkPath -Target $file.FullName
|
10
|
+
}
|
11
|
+
|
12
|
+
$convert_path = Join-Path $cpp_dir "convert.py"
|
13
|
+
Copy-Item $convert_path -Destination $destinationFolder
|
@@ -0,0 +1,13 @@
|
|
1
|
+
@echo off
|
2
|
+
for /f "delims=" %%i in ('python -c "import bigdl.cpp; print(bigdl.cpp.__file__)"') do set "cpp_file=%%i"
|
3
|
+
for %%a in ("%cpp_file%") do set "cpp_dir=%%~dpa"
|
4
|
+
|
5
|
+
set "cpp_dir=%cpp_dir:~0,-1%"
|
6
|
+
set "lib_dir=%cpp_dir%\libs"
|
7
|
+
set "source_path=%lib_dir%\ollama.exe"
|
8
|
+
set "target_path=%cd%\ollama.exe"
|
9
|
+
set "source_dist_dir=%lib_dir%\dist"
|
10
|
+
set "target_dist_dir=%cd%\dist"
|
11
|
+
|
12
|
+
mklink "%target_path%" "%source_path%"
|
13
|
+
mklink /D "%target_dist_dir%" "%source_dist_dir%"
|
@@ -0,0 +1,18 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: bigdl-core-cpp
|
3
|
+
Version: 2.1.0b2
|
4
|
+
Summary: Large Language Model Develop Toolkit
|
5
|
+
Author: BigDL Authors
|
6
|
+
License: Apache License, Version 2.0
|
7
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
9
|
+
Classifier: Programming Language :: Python :: 3.9
|
10
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
11
|
+
Requires-Dist: torch ==2.2.0
|
12
|
+
Requires-Dist: numpy ==1.26.4
|
13
|
+
Requires-Dist: transformers <5.0.0,>=4.35.2
|
14
|
+
Requires-Dist: sentencepiece ~=0.1.98
|
15
|
+
Requires-Dist: accelerate ==0.21.0
|
16
|
+
Requires-Dist: protobuf <5.0.0,>=4.21.0
|
17
|
+
Requires-Dist: gguf >=0.1.0
|
18
|
+
|
@@ -0,0 +1,61 @@
|
|
1
|
+
bigdl/cpp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
+
bigdl/cpp/convert-hf-to-gguf.py,sha256=xHMxWU4PRBHm38Ao14Po1JG470YqXlVM47iv2rjCXqk,129842
|
3
|
+
bigdl/cpp/convert.py,sha256=AAjyH5aqwEFkChWzwUUYTpqOfUnbdx8uNtDka-rP9Vw,71131
|
4
|
+
bigdl/cpp/gguf-py/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
+
bigdl/cpp/gguf-py/gguf/__init__.py,sha256=ElxJmWjDws0hVFf-tjFcxQhDDPD2xNqUkf6KpEfsbsQ,179
|
6
|
+
bigdl/cpp/gguf-py/gguf/constants.py,sha256=tpxMAsUIYaEXWSXMjLyAnnJGV1aZ1lCis_loHYrmYw0,35394
|
7
|
+
bigdl/cpp/gguf-py/gguf/gguf.py,sha256=QpLc-xU055W2d7CEFvJp2gLIfGO63bdM24ZndZCH6rw,493
|
8
|
+
bigdl/cpp/gguf-py/gguf/gguf_reader.py,sha256=lMSPWOF9GIb13nhN6Au4PnnNTXe2Lc9l92Sbve5ECs8,12324
|
9
|
+
bigdl/cpp/gguf-py/gguf/gguf_writer.py,sha256=4aHWBXXpYiHThDDd7569FuD7AdwxkqnvGmGnTOjPFNU,21499
|
10
|
+
bigdl/cpp/gguf-py/gguf/lazy.py,sha256=5VCg0xsteUMdIKY9PLyB6ID4TsapFJreb-y-t7Uk2HA,10024
|
11
|
+
bigdl/cpp/gguf-py/gguf/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
|
+
bigdl/cpp/gguf-py/gguf/quants.py,sha256=KrA_NtxRSfYq9PQVn9qn9X6pIXFJa0E1hziheYNolp0,4477
|
13
|
+
bigdl/cpp/gguf-py/gguf/tensor_mapping.py,sha256=2FYGq1gZ3oy9P_Z82L47lxMsokseC5DSKDwtyTNxiZI,23888
|
14
|
+
bigdl/cpp/gguf-py/gguf/vocab.py,sha256=0_n5lD3w2skafTJGQOZaP3mo4Wh_CNXJVuoe6FmX8-E,7012
|
15
|
+
bigdl/cpp/libs/baby-llama.exe,sha256=Fm8AM3-Jee46gmW9LoFqbauKzoOya_DVJno9y_zrrsc,200192
|
16
|
+
bigdl/cpp/libs/batched-bench.exe,sha256=LBrCavzn4duGTgmfw31eLVFcNE_SgVNj9kLGHXWVwUk,206848
|
17
|
+
bigdl/cpp/libs/batched.exe,sha256=ueKyunI6WkRfbZHbaoOkbkpr34tcnc3kyD_lRn0mAz0,208896
|
18
|
+
bigdl/cpp/libs/beam-search.exe,sha256=OK6srVNi9viDh1T-oy_v4DSm5PNfOkispq0H2_NBlU4,214528
|
19
|
+
bigdl/cpp/libs/benchmark.exe,sha256=kWP_ajDjkZ-IwRmIrzj_Gx1Ve8192TxNfSaEwqCUY0c,74240
|
20
|
+
bigdl/cpp/libs/common.lib,sha256=jDqkrf41NQ06tvP6DEk4CNWcfqrvbS8_Tgy0Gz0RVzA,3330124
|
21
|
+
bigdl/cpp/libs/convert-llama2c-to-ggml.exe,sha256=14XC3EGjqQHWn2dxCz5LfE9scBSU_exHMZn_LlofcAI,126464
|
22
|
+
bigdl/cpp/libs/embedding.exe,sha256=Ng1R7AVMiM3KXcjBTBHr17t9TOrvr-wSYzQmlajUHF4,644096
|
23
|
+
bigdl/cpp/libs/export-lora.exe,sha256=h5BP8ICoaSpWAoJGNm6CTJBSJKG1vZrfLuqalIBpyEA,90112
|
24
|
+
bigdl/cpp/libs/finetune.exe,sha256=9X_GoYjJAY6gudoLBXAscZv-6e7GmopsNheK80kt7qA,302592
|
25
|
+
bigdl/cpp/libs/ggml_shared.dll,sha256=yXtfOer15mG6da31yKc_0a5SwyIB6virnPKbsSrXW0Q,6107648
|
26
|
+
bigdl/cpp/libs/gguf.exe,sha256=XuChI_lag460qyHWUFa7iJnBwJ8pL7xYjbP5DRyWSFA,5620736
|
27
|
+
bigdl/cpp/libs/gritlm.exe,sha256=1c_xKiGi1qnGvihiIFYZicJbucFIQzhCsxosLjSAvB4,638464
|
28
|
+
bigdl/cpp/libs/imatrix.exe,sha256=Lx3Z7u_X1VtszOzVPcxzIn9tjGIEVVphHYoKeC1BFqI,676352
|
29
|
+
bigdl/cpp/libs/infill.exe,sha256=qLFFDgVXcN-QLVtGhjHeR5m8U9YKVjU800c20VMRmx8,733184
|
30
|
+
bigdl/cpp/libs/llama-bench.exe,sha256=DCx6lgMWQCeAB0jO--lBWBnzEC7ttCvYcnxrsP_daeQ,336384
|
31
|
+
bigdl/cpp/libs/llama.dll,sha256=Rp7NVcsRPpTG5coZ0IH9Uz7Hv8i3Ef5b6OveLeKiYvA,7682560
|
32
|
+
bigdl/cpp/libs/llava-cli.exe,sha256=MyfJzd5PW3HVa7zfh4duqh0ubW4OBIhoNUqBtJgZ6AE,921600
|
33
|
+
bigdl/cpp/libs/llava_shared.dll,sha256=yT_-XHMEE77AaWMbZDXBDayP7yBfR7TyhxvaP7vhRfc,6373888
|
34
|
+
bigdl/cpp/libs/lookahead.exe,sha256=VuOJChNffbS07DA9BkQMXSpR3FgrJkVa-7rtXsgo9ek,684032
|
35
|
+
bigdl/cpp/libs/lookup.exe,sha256=FxVCzrRC-sYqFCkXIIUy5UB86bReRKVK44FyBEF3KlM,718336
|
36
|
+
bigdl/cpp/libs/ls-sycl-device.exe,sha256=-70bTrJF7C_yEYbNv7riv7HhTaIQWBiCJkYrlXuhI9M,10240
|
37
|
+
bigdl/cpp/libs/main.exe,sha256=To5PCX-I1WM2wWrXhFtghSuVw0WcT1tM-whq7G5ymyA,764416
|
38
|
+
bigdl/cpp/libs/ollama.exe,sha256=BfSRuwnlh8LYW7oGby98J2giByj6OTSG-TQXWsDLEeY,64163531
|
39
|
+
bigdl/cpp/libs/parallel.exe,sha256=lxonaX8a-5MF5f9StDhDq40wKMy0bnBh8VXUMrwUMoY,701440
|
40
|
+
bigdl/cpp/libs/passkey.exe,sha256=vOWTc7ryVJp4vkRzZUtGq4gEpyYWJ4gGkcNHKn8ynp0,216064
|
41
|
+
bigdl/cpp/libs/perplexity.exe,sha256=DGkB_z76i_bX57n94lIwRsx9SpwcSlgzUl62DLc66cM,782336
|
42
|
+
bigdl/cpp/libs/q8dot.exe,sha256=RG7Uftng-xD5lW8Hc7WRwtGfZPFvmE3WMmPhA8Ic0rw,53760
|
43
|
+
bigdl/cpp/libs/quantize-stats.exe,sha256=vPslX5QIjr-tAnf5SJ1BhSivhOBbfdOrUyIs2lh-bxY,130048
|
44
|
+
bigdl/cpp/libs/quantize.exe,sha256=3jqXkwretUhhxfWMveYbXbGl17uyPBXg_gj28Yl_2yU,235520
|
45
|
+
bigdl/cpp/libs/save-load-state.exe,sha256=j3RqUoiGDe7X5zg4HnB75rsSRw9mRUaaJZVKHmUy2AY,636416
|
46
|
+
bigdl/cpp/libs/server.exe,sha256=a74_rcsBf_93oAnU01EdxfTQoQCpz2dqRlEL-JjJrR4,1731584
|
47
|
+
bigdl/cpp/libs/simple.exe,sha256=WDNT6XXVJuDtiTyuxh8989smW8xQPNOtx_-OHkAdSVY,202752
|
48
|
+
bigdl/cpp/libs/speculative.exe,sha256=bIUWqrrv5evwx4p1QzFrVWSsm4V-OfTL469uABdvBYI,709632
|
49
|
+
bigdl/cpp/libs/tokenize.exe,sha256=ksii2hs5KNj3PdqdiuMpPd8JDgGdMko-z_6Ti-ZzMdU,203264
|
50
|
+
bigdl/cpp/libs/train-text-from-scratch.exe,sha256=R19JoRLygketLYTMpHt4vTrS6Re_6_heLGbFc5tj5RI,283648
|
51
|
+
bigdl/cpp/libs/vdot.exe,sha256=KalEr10kUVhcrYWTC0hOochgQV3CIBxzkhytXJWuX8U,56320
|
52
|
+
bigdl/cpp/libs/dist/windows-amd64/ollama_runners/cpu/ollama_llama_server.exe,sha256=IdSCox3AMa0Z75rxbfC3fZIg6wixhBiZND2Mn-XX2E8,8356864
|
53
|
+
bigdl/cpp/libs/dist/windows-amd64/ollama_runners/cpu_avx/ollama_llama_server.exe,sha256=Iq44EmaPTgloFXlOG3VS3dI11VuRe2zUrRmFiXuUn0s,8356864
|
54
|
+
bigdl/cpp/libs/dist/windows-amd64/ollama_runners/cpu_avx2/ollama_llama_server.exe,sha256=nK_eWZeTPFMXED59Ku6l0HQnw3iZr5sXmWBUa0QAoIk,8356864
|
55
|
+
bigdl_core_cpp-2.1.0b2.data/scripts/init-llama-cpp.bat,sha256=13AgSYRyzk6hlSz11dPyCMJeSoW9z8PZ9l85E_5GWxs,528
|
56
|
+
bigdl_core_cpp-2.1.0b2.data/scripts/init-llama-cpp.ps1,sha256=JFOylLxO4MKpllHhdbPuJ1xHi9azxDpzdJns8JtZpkU,501
|
57
|
+
bigdl_core_cpp-2.1.0b2.data/scripts/init-ollama.bat,sha256=I2em4AnSSMq7LX3IRI3QR9w3UY2y2Y8zXQkpL09-G7w,472
|
58
|
+
bigdl_core_cpp-2.1.0b2.dist-info/METADATA,sha256=GUiU8Qy3l_pTtFYRrgptbDohhvB3BTrLOohJC9S_WZg,661
|
59
|
+
bigdl_core_cpp-2.1.0b2.dist-info/WHEEL,sha256=at4xwl6JdXdkZHxdo5ixTwJ7ENtVftSy2wqmsdmo_4U,98
|
60
|
+
bigdl_core_cpp-2.1.0b2.dist-info/top_level.txt,sha256=iGuLfZARD_qANcIMfy0tbbrC3EtCg6BSiH8icc3dLWs,6
|
61
|
+
bigdl_core_cpp-2.1.0b2.dist-info/RECORD,,
|
@@ -0,0 +1 @@
|
|
1
|
+
bigdl
|