libggml-python 0.1.1__tar.gz → 0.3.1__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.1.1 → libggml_python-0.3.1}/.github/workflows/build-publish.yaml +22 -26
- {libggml_python-0.1.1 → libggml_python-0.3.1}/.gitignore +3 -0
- libggml_python-0.3.1/CMakeLists.txt +37 -0
- {libggml_python-0.1.1 → libggml_python-0.3.1}/PKG-INFO +6 -4
- libggml_python-0.3.1/README.md +5 -0
- libggml_python-0.3.1/pyproject.toml +56 -0
- libggml_python-0.3.1/renovate.json +17 -0
- libggml_python-0.3.1/src/libggml/_version.py +21 -0
- libggml_python-0.1.1/CMakeLists.txt +0 -4
- libggml_python-0.1.1/README.md +0 -3
- libggml_python-0.1.1/pyproject.toml +0 -34
- {libggml_python-0.1.1 → libggml_python-0.3.1}/.gitmodules +0 -0
- {libggml_python-0.1.1 → libggml_python-0.3.1}/LICENSE +0 -0
- {libggml_python-0.1.1 → libggml_python-0.3.1}/src/libggml/__init__.py +0 -0
|
@@ -8,42 +8,41 @@ on:
|
|
|
8
8
|
|
|
9
9
|
jobs:
|
|
10
10
|
build_wheels:
|
|
11
|
-
name: Build wheels
|
|
12
|
-
runs-on: ${{ matrix.
|
|
11
|
+
name: Build wheels for ${{ matrix.os }}
|
|
12
|
+
runs-on: ${{ matrix.runs-on }}
|
|
13
13
|
strategy:
|
|
14
14
|
fail-fast: false
|
|
15
|
-
max-parallel: 1
|
|
16
15
|
matrix:
|
|
17
|
-
|
|
18
|
-
- os:
|
|
19
|
-
|
|
20
|
-
- os:
|
|
21
|
-
|
|
16
|
+
include:
|
|
17
|
+
- os: linux-intel
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
- os: linux-arm
|
|
20
|
+
runs-on: ubuntu-24.04-arm
|
|
21
|
+
- os: windows-intel
|
|
22
|
+
runs-on: windows-latest
|
|
23
|
+
# - os: windows-arm
|
|
24
|
+
# runs-on: windows-11-arm
|
|
25
|
+
- os: macos-arm
|
|
26
|
+
runs-on: macos-latest
|
|
22
27
|
|
|
23
28
|
steps:
|
|
24
|
-
-
|
|
25
|
-
uses: actions/checkout@v4
|
|
29
|
+
- uses: actions/checkout@v4
|
|
26
30
|
with:
|
|
27
|
-
submodules:
|
|
31
|
+
submodules: recursive
|
|
28
32
|
|
|
29
|
-
- name:
|
|
30
|
-
env:
|
|
31
|
-
CMAKE_ARGS: ${{ matrix.build.cmake }}
|
|
32
|
-
CIBW_BUILD: cp313-*
|
|
33
|
-
CIBW_ENVIRONMENT_PASS_LINUX: CMAKE_ARGS
|
|
34
|
-
CIBW_REPAIR_WHEEL_COMMAND_MACOS: ""
|
|
35
|
-
CIBW_REPAIR_WHEEL_COMMAND_LINUX: "auditwheel repair --exclude libggml-* -w {dest_dir} {wheel}"
|
|
33
|
+
- name: Build wheels
|
|
36
34
|
uses: pypa/cibuildwheel@v3.0.1
|
|
35
|
+
env:
|
|
36
|
+
CIBW_PLATFORM: ${{ matrix.platform || 'auto' }}
|
|
37
37
|
|
|
38
|
-
-
|
|
39
|
-
uses: actions/upload-artifact@v4
|
|
38
|
+
- uses: actions/upload-artifact@v4
|
|
40
39
|
with:
|
|
41
|
-
name: cibw-wheels-${{ matrix.
|
|
40
|
+
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
|
|
42
41
|
path: ./wheelhouse/*.whl
|
|
43
42
|
|
|
44
43
|
build_sdist:
|
|
45
44
|
name: Build source distribution
|
|
46
|
-
runs-on: ubuntu-
|
|
45
|
+
runs-on: ubuntu-latest
|
|
47
46
|
steps:
|
|
48
47
|
- uses: actions/checkout@v4
|
|
49
48
|
|
|
@@ -57,7 +56,7 @@ jobs:
|
|
|
57
56
|
|
|
58
57
|
upload_pypi:
|
|
59
58
|
needs: [build_wheels, build_sdist]
|
|
60
|
-
runs-on: ubuntu-
|
|
59
|
+
runs-on: ubuntu-latest
|
|
61
60
|
environment: pypi
|
|
62
61
|
permissions:
|
|
63
62
|
id-token: write
|
|
@@ -65,11 +64,8 @@ jobs:
|
|
|
65
64
|
steps:
|
|
66
65
|
- uses: actions/download-artifact@v4
|
|
67
66
|
with:
|
|
68
|
-
# unpacks all CIBW artifacts into dist/
|
|
69
67
|
pattern: cibw-*
|
|
70
68
|
path: dist
|
|
71
69
|
merge-multiple: true
|
|
72
70
|
|
|
73
71
|
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
74
|
-
# with:
|
|
75
|
-
# repository-url: https://test.pypi.org/legacy/
|
|
@@ -0,0 +1,37 @@
|
|
|
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,15 +1,17 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: libggml-python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: Prebuilt ggml libraries
|
|
5
5
|
Author: benniekiss
|
|
6
6
|
License-Expression: MIT
|
|
7
|
-
Project-URL: Source, https://github.com/benniekiss/
|
|
8
|
-
Project-URL: Tracker, https://github.com/benniekiss/
|
|
7
|
+
Project-URL: Source, https://github.com/benniekiss/libggml-python
|
|
8
|
+
Project-URL: Tracker, https://github.com/benniekiss/libggml-python/issues
|
|
9
9
|
Project-URL: Upstream, https://github.com/ggml-org/ggml
|
|
10
10
|
Requires-Python: >=3.10
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
12
|
|
|
13
13
|
# libggml-python
|
|
14
14
|
|
|
15
|
-
Python package containing prebuilt [ggml](https://github.com/ggml-org/ggml) libraries
|
|
15
|
+
Python package containing prebuilt [ggml](https://github.com/ggml-org/ggml) libraries.
|
|
16
|
+
|
|
17
|
+
To build additional backends, see the [llama.cpp documentation](https://github.com/ggml-org/llama.cpp/blob/master/docs/build.md)
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "libggml-python"
|
|
3
|
+
dynamic = ["version"]
|
|
4
|
+
description = "Prebuilt ggml libraries"
|
|
5
|
+
authors = [
|
|
6
|
+
{ name = "benniekiss" }
|
|
7
|
+
]
|
|
8
|
+
readme = "README.md"
|
|
9
|
+
license = "MIT"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
|
|
12
|
+
[project.urls]
|
|
13
|
+
Source = "https://github.com/benniekiss/libggml-python"
|
|
14
|
+
Tracker = "https://github.com/benniekiss/libggml-python/issues"
|
|
15
|
+
Upstream = "https://github.com/ggml-org/ggml"
|
|
16
|
+
|
|
17
|
+
[build-system]
|
|
18
|
+
requires = [
|
|
19
|
+
"scikit-build-core>=0.11.5",
|
|
20
|
+
"setuptools-scm>=8",
|
|
21
|
+
]
|
|
22
|
+
build-backend = "scikit_build_core.build"
|
|
23
|
+
|
|
24
|
+
[tool.scikit-build]
|
|
25
|
+
minimum-version = "build-system.requires"
|
|
26
|
+
cmake.build-type = "Release"
|
|
27
|
+
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
|
|
28
|
+
wheel.packages = ["src/libggml"]
|
|
29
|
+
wheel.install-dir = "libggml"
|
|
30
|
+
sdist.include = ["ggml/", "src/libggml/_version.py"]
|
|
31
|
+
|
|
32
|
+
[tool.scikit-build.cmake.define]
|
|
33
|
+
CMAKE_RUNTIME_OUTPUT_DIRECTORY = "build"
|
|
34
|
+
|
|
35
|
+
[project.entry-points."cmake.root"]
|
|
36
|
+
ggml = "libggml"
|
|
37
|
+
|
|
38
|
+
[project.entry-points."cmake.prefix"]
|
|
39
|
+
ggml = "libggml"
|
|
40
|
+
|
|
41
|
+
[tool.setuptools_scm]
|
|
42
|
+
write_to = "src/libggml/_version.py"
|
|
43
|
+
|
|
44
|
+
[tool.cibuildwheel]
|
|
45
|
+
# skip 32bit builds
|
|
46
|
+
skip = ["*-win32", "*-manylinux_i686"]
|
|
47
|
+
|
|
48
|
+
[tool.cibuildwheel.linux]
|
|
49
|
+
repair-wheel-command = "auditwheel repair --exclude libggml* -w {dest_dir} {wheel}"
|
|
50
|
+
|
|
51
|
+
[tool.cibuildwheel.macos]
|
|
52
|
+
repair-wheel-command = "delocate-wheel --exclude libggml* --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"
|
|
53
|
+
|
|
54
|
+
[tool.cibuildwheel.windows]
|
|
55
|
+
before-build = "pip install delvewheel"
|
|
56
|
+
repair-wheel-command = "delvewheel repair --ignore-existing -w {dest_dir} {wheel}"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
3
|
+
"extends": [
|
|
4
|
+
"config:recommended",
|
|
5
|
+
":configMigration",
|
|
6
|
+
":pinDevDependencies"
|
|
7
|
+
],
|
|
8
|
+
"prHourlyLimit": 0,
|
|
9
|
+
"prConcurrentLimit": 0,
|
|
10
|
+
"enabledManagers": [
|
|
11
|
+
"github-actions",
|
|
12
|
+
"git-submodules"
|
|
13
|
+
],
|
|
14
|
+
"git-submodules": {
|
|
15
|
+
"enabled": true
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# file generated by setuptools-scm
|
|
2
|
+
# don't change, don't track in version control
|
|
3
|
+
|
|
4
|
+
__all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
|
|
5
|
+
|
|
6
|
+
TYPE_CHECKING = False
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
from typing import Tuple
|
|
9
|
+
from typing import Union
|
|
10
|
+
|
|
11
|
+
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
12
|
+
else:
|
|
13
|
+
VERSION_TUPLE = object
|
|
14
|
+
|
|
15
|
+
version: str
|
|
16
|
+
__version__: str
|
|
17
|
+
__version_tuple__: VERSION_TUPLE
|
|
18
|
+
version_tuple: VERSION_TUPLE
|
|
19
|
+
|
|
20
|
+
__version__ = version = '0.3.1'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 3, 1)
|
libggml_python-0.1.1/README.md
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
[project]
|
|
2
|
-
name = "libggml-python"
|
|
3
|
-
version = "0.1.1"
|
|
4
|
-
description = "Prebuilt ggml libraries"
|
|
5
|
-
authors = [
|
|
6
|
-
{ name = "benniekiss" }
|
|
7
|
-
]
|
|
8
|
-
readme = "README.md"
|
|
9
|
-
license = "MIT"
|
|
10
|
-
requires-python = ">=3.10"
|
|
11
|
-
|
|
12
|
-
[project.urls]
|
|
13
|
-
Source = "https://github.com/benniekiss/ggml-python"
|
|
14
|
-
Tracker = "https://github.com/benniekiss/ggml-python/issues"
|
|
15
|
-
Upstream = "https://github.com/ggml-org/ggml"
|
|
16
|
-
|
|
17
|
-
[build-system]
|
|
18
|
-
requires = [
|
|
19
|
-
"scikit-build-core>=0.11.5",
|
|
20
|
-
]
|
|
21
|
-
build-backend = "scikit_build_core.build"
|
|
22
|
-
|
|
23
|
-
[tool.scikit-build]
|
|
24
|
-
minimum-version = "build-system.requires"
|
|
25
|
-
cmake.build-type = "Release"
|
|
26
|
-
wheel.packages = ["src/libggml"]
|
|
27
|
-
wheel.install-dir = "libggml"
|
|
28
|
-
sdist.include = ["ggml/"]
|
|
29
|
-
|
|
30
|
-
[tool.scikit-build.cmake.define]
|
|
31
|
-
CMAKE_RUNTIME_OUTPUT_DIRECTORY = "build"
|
|
32
|
-
|
|
33
|
-
[project.entry-points."cmake.prefix"]
|
|
34
|
-
ggml = "libggml"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|