libggml-python 0.9.5__tar.gz → 0.9.8__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.
@@ -31,11 +31,11 @@ jobs:
31
31
  submodules: recursive
32
32
 
33
33
  - name: Build wheels
34
- uses: pypa/cibuildwheel@v3.3.0
34
+ uses: pypa/cibuildwheel@v3.4.0
35
35
  env:
36
36
  CIBW_PLATFORM: ${{ matrix.platform || 'auto' }}
37
37
 
38
- - uses: actions/upload-artifact@v6
38
+ - uses: actions/upload-artifact@v7
39
39
  with:
40
40
  name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
41
41
  path: ./wheelhouse/*.whl
@@ -49,7 +49,7 @@ jobs:
49
49
  - name: Build sdist
50
50
  run: pipx run build --sdist
51
51
 
52
- - uses: actions/upload-artifact@v6
52
+ - uses: actions/upload-artifact@v7
53
53
  with:
54
54
  name: cibw-sdist
55
55
  path: dist/*.tar.gz
@@ -62,7 +62,7 @@ jobs:
62
62
  id-token: write
63
63
  if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
64
64
  steps:
65
- - uses: actions/download-artifact@v7
65
+ - uses: actions/download-artifact@v8
66
66
  with:
67
67
  pattern: cibw-*
68
68
  path: dist
@@ -243,3 +243,6 @@ pyrightconfig.json
243
243
 
244
244
  # setuptools-scm
245
245
  _version.py
246
+
247
+ # CMake
248
+ CMakeFiles/
@@ -1,4 +1,4 @@
1
1
  [submodule "ggml"]
2
2
  path = ggml
3
3
  url = https://github.com/ggml-org/ggml
4
- branch = v0.9.5
4
+ branch = v0.9.8
@@ -0,0 +1,98 @@
1
+ cmake_minimum_required(VERSION 3.15)
2
+ project(libggml LANGUAGES C CXX)
3
+
4
+ add_subdirectory(ggml)
5
+
6
+ target_link_libraries(ggml
7
+ PUBLIC
8
+ ggml-base
9
+ ggml-cpu
10
+ )
11
+
12
+ add_library(ggml::ggml ALIAS ggml)
13
+
14
+ function(ggml_install_path target)
15
+ if(NOT TARGET ${target})
16
+ return()
17
+ endif()
18
+
19
+ if(APPLE)
20
+ set_target_properties(${target} PROPERTIES
21
+ BUILD_WITH_INSTALL_RPATH TRUE
22
+ INSTALL_RPATH "@loader_path"
23
+ )
24
+ else()
25
+ set_target_properties(${target} PROPERTIES
26
+ BUILD_WITH_INSTALL_RPATH TRUE
27
+ INSTALL_RPATH "$ORIGIN"
28
+ )
29
+ endif()
30
+ endfunction()
31
+
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
+ set(GGML_INSTALL_TARGETS
48
+ ggml
49
+ 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
+ )
63
+
64
+ set(GGML_EXISTING_TARGETS "")
65
+ foreach(t ${GGML_INSTALL_TARGETS})
66
+ if(TARGET ${t})
67
+ list(APPEND GGML_EXISTING_TARGETS ${t})
68
+ endif()
69
+ endforeach()
70
+
71
+ install(
72
+ TARGETS ${GGML_EXISTING_TARGETS}
73
+ EXPORT ggmlTargets
74
+ LIBRARY DESTINATION lib
75
+ ARCHIVE DESTINATION lib
76
+ RUNTIME DESTINATION lib
77
+ )
78
+
79
+ include(CMakePackageConfigHelpers)
80
+
81
+ configure_package_config_file(
82
+ cmake/ggmlConfig.cmake.in
83
+ ${CMAKE_CURRENT_BINARY_DIR}/ggmlConfig.cmake
84
+ INSTALL_DESTINATION lib/cmake/ggml
85
+ )
86
+
87
+ install(
88
+ FILES
89
+ ${CMAKE_CURRENT_BINARY_DIR}/ggmlConfig.cmake
90
+ DESTINATION lib/cmake/ggml
91
+ )
92
+
93
+ install(
94
+ EXPORT ggmlTargets
95
+ FILE ggmlTargets.cmake
96
+ NAMESPACE ggml::
97
+ DESTINATION lib/cmake/ggml
98
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: libggml-python
3
- Version: 0.9.5
3
+ Version: 0.9.8
4
4
  Summary: Prebuilt ggml libraries
5
5
  Author: benniekiss
6
6
  License-Expression: MIT
@@ -0,0 +1,3 @@
1
+ @PACKAGE_INIT@
2
+
3
+ include("${CMAKE_CURRENT_LIST_DIR}/ggmlTargets.cmake")
@@ -31,6 +31,24 @@ 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_OPENMP = "OFF"
35
+ GGML_VULKAN = "OFF"
36
+ GGML_CUDA = "OFF"
37
+
38
+ [[tool.scikit-build.overrides]]
39
+ if.env.USE_VULKAN = true
40
+ inherit.cmake.define = "append"
41
+ cmake.define.GGML_VULKAN = "1"
42
+
43
+ [[tool.scikit-build.overrides]]
44
+ if.env.USE_CUDA = true
45
+ inherit.cmake.define = "append"
46
+ cmake.define.GGML_CUDA = "1"
47
+
48
+ [[tool.scikit-build.overrides]]
49
+ if.env.USE_OPENMP = true
50
+ inherit.cmake.define = "append"
51
+ cmake.define.GGML_OPENMP = "1"
34
52
 
35
53
  [project.entry-points."cmake.root"]
36
54
  ggml = "libggml"
@@ -54,3 +72,8 @@ repair-wheel-command = "delocate-wheel --exclude libggml* --require-archs {deloc
54
72
  [tool.cibuildwheel.windows]
55
73
  before-build = "pip install delvewheel"
56
74
  repair-wheel-command = "delvewheel repair --ignore-existing -w {dest_dir} {wheel}"
75
+
76
+ [tool.uv]
77
+ managed = true
78
+ required-version = "~=0.10.0"
79
+ index-url = "https://pypi.org/simple/"
@@ -0,0 +1,24 @@
1
+ # file generated by vcs-versioning
2
+ # don't change, don't track in version control
3
+ from __future__ import annotations
4
+
5
+ __all__ = [
6
+ "__version__",
7
+ "__version_tuple__",
8
+ "version",
9
+ "version_tuple",
10
+ "__commit_id__",
11
+ "commit_id",
12
+ ]
13
+
14
+ version: str
15
+ __version__: str
16
+ __version_tuple__: tuple[int | str, ...]
17
+ version_tuple: tuple[int | str, ...]
18
+ commit_id: str | None
19
+ __commit_id__: str | None
20
+
21
+ __version__ = version = '0.9.8'
22
+ __version_tuple__ = version_tuple = (0, 9, 8)
23
+
24
+ __commit_id__ = commit_id = 'g15d9efc04'
@@ -1,37 +0,0 @@
1
- cmake_minimum_required(VERSION 3.15)
2
- project(libggml LANGUAGES C CXX)
3
-
4
- add_subdirectory(ggml)
5
-
6
- function(ggml_install_path target)
7
- if(NOT TARGET ${target})
8
- return()
9
- endif()
10
-
11
- if(APPLE)
12
- set_target_properties(${target} PROPERTIES
13
- INSTALL_RPATH "@loader_path"
14
- BUILD_WITH_INSTALL_RPATH TRUE
15
- )
16
- else()
17
- set_target_properties(${target} PROPERTIES
18
- INSTALL_RPATH "$ORIGIN"
19
- BUILD_WITH_INSTALL_RPATH TRUE
20
- )
21
- endif()
22
- endfunction()
23
-
24
- ggml_install_path(ggml)
25
- ggml_install_path(ggml-base)
26
- ggml_install_path(ggml-amx)
27
- ggml_install_path(ggml-blas)
28
- ggml_install_path(ggml-can)
29
- ggml_install_path(ggml-cpu)
30
- ggml_install_path(ggml-cuda)
31
- ggml_install_path(ggml-hip)
32
- ggml_install_path(ggml-kompute)
33
- ggml_install_path(ggml-metal)
34
- ggml_install_path(ggml-musa)
35
- ggml_install_path(ggml-rpc)
36
- ggml_install_path(ggml-sycl)
37
- ggml_install_path(ggml-vulkan)
@@ -1,34 +0,0 @@
1
- # file generated by setuptools-scm
2
- # don't change, don't track in version control
3
-
4
- __all__ = [
5
- "__version__",
6
- "__version_tuple__",
7
- "version",
8
- "version_tuple",
9
- "__commit_id__",
10
- "commit_id",
11
- ]
12
-
13
- TYPE_CHECKING = False
14
- if TYPE_CHECKING:
15
- from typing import Tuple
16
- from typing import Union
17
-
18
- VERSION_TUPLE = Tuple[Union[int, str], ...]
19
- COMMIT_ID = Union[str, None]
20
- else:
21
- VERSION_TUPLE = object
22
- COMMIT_ID = object
23
-
24
- version: str
25
- __version__: str
26
- __version_tuple__: VERSION_TUPLE
27
- version_tuple: VERSION_TUPLE
28
- commit_id: COMMIT_ID
29
- __commit_id__: COMMIT_ID
30
-
31
- __version__ = version = '0.9.5'
32
- __version_tuple__ = version_tuple = (0, 9, 5)
33
-
34
- __commit_id__ = commit_id = 'g7b2ef6a20'
File without changes
File without changes