libggml-python 0.16.0__tar.gz → 0.17.0.post1__tar.gz
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.
- {libggml_python-0.16.0 → libggml_python-0.17.0.post1}/.github/workflows/build-publish.yaml +2 -2
- {libggml_python-0.16.0 → libggml_python-0.17.0.post1}/.gitmodules +1 -1
- {libggml_python-0.16.0 → libggml_python-0.17.0.post1}/CMakeLists.txt +25 -39
- {libggml_python-0.16.0 → libggml_python-0.17.0.post1}/PKG-INFO +1 -1
- {libggml_python-0.16.0 → libggml_python-0.17.0.post1}/pyproject.toml +3 -2
- {libggml_python-0.16.0 → libggml_python-0.17.0.post1}/src/libggml/_version.py +3 -3
- {libggml_python-0.16.0 → libggml_python-0.17.0.post1}/.gitignore +0 -0
- {libggml_python-0.16.0 → libggml_python-0.17.0.post1}/LICENSE +0 -0
- {libggml_python-0.16.0 → libggml_python-0.17.0.post1}/README.md +0 -0
- {libggml_python-0.16.0 → libggml_python-0.17.0.post1}/cmake/ggmlConfig.cmake.in +0 -0
- {libggml_python-0.16.0 → libggml_python-0.17.0.post1}/renovate.json +0 -0
- {libggml_python-0.16.0 → libggml_python-0.17.0.post1}/src/libggml/__init__.py +0 -0
|
@@ -31,7 +31,7 @@ jobs:
|
|
|
31
31
|
submodules: recursive
|
|
32
32
|
|
|
33
33
|
- name: Build wheels
|
|
34
|
-
uses: pypa/cibuildwheel@v4.1.
|
|
34
|
+
uses: pypa/cibuildwheel@v4.1.1
|
|
35
35
|
env:
|
|
36
36
|
CIBW_PLATFORM: ${{ matrix.platform || 'auto' }}
|
|
37
37
|
|
|
@@ -68,4 +68,4 @@ jobs:
|
|
|
68
68
|
path: dist
|
|
69
69
|
merge-multiple: true
|
|
70
70
|
|
|
71
|
-
- uses: pypa/gh-action-pypi-publish@v1.14.
|
|
71
|
+
- uses: pypa/gh-action-pypi-publish@v1.14.1
|
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
cmake_minimum_required(VERSION 3.15)
|
|
2
2
|
project(libggml LANGUAGES C CXX)
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
include(GNUInstallDirs)
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
PUBLIC
|
|
8
|
-
ggml-base
|
|
9
|
-
ggml-cpu
|
|
10
|
-
)
|
|
6
|
+
add_subdirectory(ggml)
|
|
11
7
|
|
|
12
8
|
add_library(ggml::ggml ALIAS ggml)
|
|
13
9
|
|
|
10
|
+
if(APPLE)
|
|
11
|
+
target_link_options(ggml INTERFACE
|
|
12
|
+
"$<INSTALL_INTERFACE:LINKER:-rpath,@loader_path/../libggml/lib>"
|
|
13
|
+
"$<INSTALL_INTERFACE:LINKER:-rpath,@loader_path/../../libggml/lib>"
|
|
14
|
+
)
|
|
15
|
+
elseif(UNIX)
|
|
16
|
+
target_link_options(ggml INTERFACE
|
|
17
|
+
"$<INSTALL_INTERFACE:LINKER:-rpath,$ORIGIN/../libggml/lib>"
|
|
18
|
+
"$<INSTALL_INTERFACE:LINKER:-rpath,$ORIGIN/../../libggml/lib>"
|
|
19
|
+
)
|
|
20
|
+
endif()
|
|
21
|
+
|
|
14
22
|
function(ggml_install_path target)
|
|
15
23
|
if(NOT TARGET ${target})
|
|
16
24
|
return()
|
|
@@ -29,41 +37,19 @@ function(ggml_install_path target)
|
|
|
29
37
|
endif()
|
|
30
38
|
endfunction()
|
|
31
39
|
|
|
32
|
-
ggml_install_path(ggml)
|
|
33
|
-
ggml_install_path(ggml-base)
|
|
34
|
-
ggml_install_path(ggml-amx)
|
|
35
|
-
ggml_install_path(ggml-blas)
|
|
36
|
-
ggml_install_path(ggml-can)
|
|
37
|
-
ggml_install_path(ggml-cpu)
|
|
38
|
-
ggml_install_path(ggml-cuda)
|
|
39
|
-
ggml_install_path(ggml-hip)
|
|
40
|
-
ggml_install_path(ggml-kompute)
|
|
41
|
-
ggml_install_path(ggml-metal)
|
|
42
|
-
ggml_install_path(ggml-musa)
|
|
43
|
-
ggml_install_path(ggml-rpc)
|
|
44
|
-
ggml_install_path(ggml-sycl)
|
|
45
|
-
ggml_install_path(ggml-vulkan)
|
|
46
|
-
|
|
47
40
|
set(GGML_INSTALL_TARGETS
|
|
48
41
|
ggml
|
|
49
42
|
ggml-base
|
|
50
|
-
ggml-amx
|
|
51
|
-
ggml-blas
|
|
52
|
-
ggml-can
|
|
53
|
-
ggml-cpu
|
|
54
|
-
ggml-cuda
|
|
55
|
-
ggml-hip
|
|
56
|
-
ggml-kompute
|
|
57
|
-
ggml-metal
|
|
58
|
-
ggml-musa
|
|
59
|
-
ggml-rpc
|
|
60
|
-
ggml-sycl
|
|
61
|
-
ggml-vulkan
|
|
62
43
|
)
|
|
63
44
|
|
|
45
|
+
if(GGML_AVAILABLE_BACKENDS)
|
|
46
|
+
list(APPEND GGML_INSTALL_TARGETS ${GGML_AVAILABLE_BACKENDS})
|
|
47
|
+
endif()
|
|
48
|
+
|
|
64
49
|
set(GGML_EXISTING_TARGETS "")
|
|
65
50
|
foreach(t ${GGML_INSTALL_TARGETS})
|
|
66
51
|
if(TARGET ${t})
|
|
52
|
+
ggml_install_path(${t})
|
|
67
53
|
list(APPEND GGML_EXISTING_TARGETS ${t})
|
|
68
54
|
endif()
|
|
69
55
|
endforeach()
|
|
@@ -71,9 +57,9 @@ endforeach()
|
|
|
71
57
|
install(
|
|
72
58
|
TARGETS ${GGML_EXISTING_TARGETS}
|
|
73
59
|
EXPORT ggmlTargets
|
|
74
|
-
LIBRARY DESTINATION
|
|
75
|
-
ARCHIVE DESTINATION
|
|
76
|
-
RUNTIME DESTINATION
|
|
60
|
+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
61
|
+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
62
|
+
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
77
63
|
)
|
|
78
64
|
|
|
79
65
|
include(CMakePackageConfigHelpers)
|
|
@@ -81,18 +67,18 @@ include(CMakePackageConfigHelpers)
|
|
|
81
67
|
configure_package_config_file(
|
|
82
68
|
cmake/ggmlConfig.cmake.in
|
|
83
69
|
${CMAKE_CURRENT_BINARY_DIR}/ggmlConfig.cmake
|
|
84
|
-
INSTALL_DESTINATION
|
|
70
|
+
INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/ggml
|
|
85
71
|
)
|
|
86
72
|
|
|
87
73
|
install(
|
|
88
74
|
FILES
|
|
89
75
|
${CMAKE_CURRENT_BINARY_DIR}/ggmlConfig.cmake
|
|
90
|
-
DESTINATION
|
|
76
|
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/ggml
|
|
91
77
|
)
|
|
92
78
|
|
|
93
79
|
install(
|
|
94
80
|
EXPORT ggmlTargets
|
|
95
81
|
FILE ggmlTargets.cmake
|
|
96
82
|
NAMESPACE ggml::
|
|
97
|
-
DESTINATION
|
|
83
|
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/ggml
|
|
98
84
|
)
|
|
@@ -3,7 +3,7 @@ name = "libggml-python"
|
|
|
3
3
|
dynamic = ["version"]
|
|
4
4
|
description = "Prebuilt ggml libraries"
|
|
5
5
|
authors = [
|
|
6
|
-
{ name = "benniekiss" }
|
|
6
|
+
{ name = "benniekiss" },
|
|
7
7
|
]
|
|
8
8
|
readme = "README.md"
|
|
9
9
|
license = "MIT"
|
|
@@ -31,6 +31,8 @@ sdist.include = ["ggml/", "src/libggml/_version.py"]
|
|
|
31
31
|
|
|
32
32
|
[tool.scikit-build.cmake.define]
|
|
33
33
|
CMAKE_RUNTIME_OUTPUT_DIRECTORY = "build"
|
|
34
|
+
GGML_CCACHE = "OFF"
|
|
35
|
+
GGML_NATIVE = "OFF"
|
|
34
36
|
GGML_OPENMP = "OFF"
|
|
35
37
|
GGML_VULKAN = "OFF"
|
|
36
38
|
GGML_CUDA = "OFF"
|
|
@@ -75,5 +77,4 @@ repair-wheel-command = "delvewheel repair --ignore-existing -w {dest_dir} {wheel
|
|
|
75
77
|
|
|
76
78
|
[tool.uv]
|
|
77
79
|
managed = true
|
|
78
|
-
required-version = "~=0.10.0"
|
|
79
80
|
index-url = "https://pypi.org/simple/"
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '0.
|
|
22
|
-
__version_tuple__ = version_tuple = (0,
|
|
21
|
+
__version__ = version = '0.17.0.post1'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 17, 0, 'post1')
|
|
23
23
|
|
|
24
|
-
__commit_id__ = commit_id = '
|
|
24
|
+
__commit_id__ = commit_id = 'g61ddf7fcc'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|