mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-07-19 17:50:25 +00:00
python: prepare version 2.0.0rc1 (#1529)
This commit is contained in:
parent
bcbcad98d0
commit
017c3a9649
@ -414,6 +414,8 @@ jobs:
|
|||||||
command: |
|
command: |
|
||||||
cd gpt4all-bindings/python/
|
cd gpt4all-bindings/python/
|
||||||
python setup.py bdist_wheel --plat-name=manylinux1_x86_64
|
python setup.py bdist_wheel --plat-name=manylinux1_x86_64
|
||||||
|
- store_artifacts:
|
||||||
|
path: gpt4all-bindings/python/dist
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: gpt4all-bindings/python/dist
|
root: gpt4all-bindings/python/dist
|
||||||
paths:
|
paths:
|
||||||
@ -445,6 +447,8 @@ jobs:
|
|||||||
command: |
|
command: |
|
||||||
cd gpt4all-bindings/python
|
cd gpt4all-bindings/python
|
||||||
python setup.py bdist_wheel --plat-name=macosx_10_15_universal2
|
python setup.py bdist_wheel --plat-name=macosx_10_15_universal2
|
||||||
|
- store_artifacts:
|
||||||
|
path: gpt4all-bindings/python/dist
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: gpt4all-bindings/python/dist
|
root: gpt4all-bindings/python/dist
|
||||||
paths:
|
paths:
|
||||||
@ -458,9 +462,6 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Install MinGW64
|
name: Install MinGW64
|
||||||
command: choco install -y mingw --force --no-progress
|
command: choco install -y mingw --force --no-progress
|
||||||
- run:
|
|
||||||
name: Add MinGW64 to PATH
|
|
||||||
command: $env:Path += ";C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin"
|
|
||||||
- run:
|
- run:
|
||||||
name: Install VulkanSDK
|
name: Install VulkanSDK
|
||||||
command: |
|
command: |
|
||||||
@ -481,6 +482,7 @@ jobs:
|
|||||||
cd gpt4all-backend
|
cd gpt4all-backend
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
$env:Path += ";C:\ProgramData\mingw64\mingw64\bin"
|
||||||
$env:Path += ";C:\VulkanSDK\1.3.261.1\bin"
|
$env:Path += ";C:\VulkanSDK\1.3.261.1\bin"
|
||||||
cmake -G "MinGW Makefiles" .. -DKOMPUTE_OPT_DISABLE_VULKAN_VERSION_CHECK=ON -DKOMPUTE_OPT_USE_BUILT_IN_VULKAN_HEADER=OFF
|
cmake -G "MinGW Makefiles" .. -DKOMPUTE_OPT_DISABLE_VULKAN_VERSION_CHECK=ON -DKOMPUTE_OPT_USE_BUILT_IN_VULKAN_HEADER=OFF
|
||||||
cmake --build . --parallel
|
cmake --build . --parallel
|
||||||
@ -493,9 +495,11 @@ jobs:
|
|||||||
cd gpt4all
|
cd gpt4all
|
||||||
mkdir llmodel_DO_NOT_MODIFY
|
mkdir llmodel_DO_NOT_MODIFY
|
||||||
mkdir llmodel_DO_NOT_MODIFY/build/
|
mkdir llmodel_DO_NOT_MODIFY/build/
|
||||||
cp 'C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin\*dll' 'llmodel_DO_NOT_MODIFY/build/'
|
cp 'C:\ProgramData\mingw64\mingw64\bin\*dll' 'llmodel_DO_NOT_MODIFY/build/'
|
||||||
cd ..
|
cd ..
|
||||||
python setup.py bdist_wheel --plat-name=win_amd64
|
python setup.py bdist_wheel --plat-name=win_amd64
|
||||||
|
- store_artifacts:
|
||||||
|
path: gpt4all-bindings/python/dist
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: gpt4all-bindings/python/dist
|
root: gpt4all-bindings/python/dist
|
||||||
paths:
|
paths:
|
||||||
@ -612,7 +616,7 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Build Libraries
|
name: Build Libraries
|
||||||
command: |
|
command: |
|
||||||
$MinGWBin = "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin"
|
$MinGWBin = "C:\ProgramData\mingw64\mingw64\bin"
|
||||||
$Env:Path += ";$MinGwBin"
|
$Env:Path += ";$MinGwBin"
|
||||||
$Env:Path += ";C:\Program Files\CMake\bin"
|
$Env:Path += ";C:\Program Files\CMake\bin"
|
||||||
$Env:Path += ";C:\VulkanSDK\1.3.261.1\bin"
|
$Env:Path += ";C:\VulkanSDK\1.3.261.1\bin"
|
||||||
|
@ -222,7 +222,7 @@ if (LLAMA_KOMPUTE)
|
|||||||
|
|
||||||
if (EXISTS "${LLAMA_DIR}/kompute/CMakeLists.txt")
|
if (EXISTS "${LLAMA_DIR}/kompute/CMakeLists.txt")
|
||||||
message(STATUS "Kompute found")
|
message(STATUS "Kompute found")
|
||||||
set(KOMPUTE_OPT_LOG_LEVEL Error CACHE STRING "Kompute log level")
|
set(KOMPUTE_OPT_LOG_LEVEL Critical CACHE STRING "Kompute log level")
|
||||||
add_subdirectory(${LLAMA_DIR}/kompute)
|
add_subdirectory(${LLAMA_DIR}/kompute)
|
||||||
|
|
||||||
# Compile our shaders
|
# Compile our shaders
|
||||||
|
@ -60,7 +60,7 @@ chmod +x ./build_linux.sh
|
|||||||
1. Setup
|
1. Setup
|
||||||
```
|
```
|
||||||
choco install mingw
|
choco install mingw
|
||||||
$env:Path += ";C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin"
|
$env:Path += ";C:\ProgramData\mingw64\mingw64\bin"
|
||||||
choco install -y cmake --installargs 'ADD_CMAKE_TO_PATH=System'
|
choco install -y cmake --installargs 'ADD_CMAKE_TO_PATH=System'
|
||||||
```
|
```
|
||||||
2. Run the `./build_win-mingw.ps1` build script
|
2. Run the `./build_win-mingw.ps1` build script
|
||||||
|
@ -12,5 +12,5 @@ cmake -G "MinGW Makefiles" -S ..\..\gpt4all-backend -B $BUILD_DIR
|
|||||||
cmake --build $BUILD_DIR --parallel --config Release
|
cmake --build $BUILD_DIR --parallel --config Release
|
||||||
|
|
||||||
# copy native dlls
|
# copy native dlls
|
||||||
cp "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin\*dll" $LIBS_DIR
|
cp "C:\ProgramData\mingw64\mingw64\bin\*dll" $LIBS_DIR
|
||||||
cp "$BUILD_DIR\bin\*.dll" $LIBS_DIR
|
cp "$BUILD_DIR\bin\*.dll" $LIBS_DIR
|
@ -61,7 +61,7 @@ copy_prebuilt_C_lib(SRC_CLIB_DIRECtORY,
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name=package_name,
|
name=package_name,
|
||||||
version="1.0.12",
|
version="2.0.0rc1",
|
||||||
description="Python bindings for GPT4All",
|
description="Python bindings for GPT4All",
|
||||||
author="Nomic and the Open Source Community",
|
author="Nomic and the Open Source Community",
|
||||||
author_email="support@nomic.ai",
|
author_email="support@nomic.ai",
|
||||||
|
@ -12,5 +12,5 @@ cmake -G "MinGW Makefiles" -S ..\..\gpt4all-backend -B $BUILD_DIR -DLLAMA_AVX2=O
|
|||||||
cmake --build $BUILD_DIR --parallel --config Release
|
cmake --build $BUILD_DIR --parallel --config Release
|
||||||
|
|
||||||
# copy native dlls
|
# copy native dlls
|
||||||
# cp "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin\*dll" $LIBS_DIR
|
# cp "C:\ProgramData\mingw64\mingw64\bin\*dll" $LIBS_DIR
|
||||||
cp "$BUILD_DIR\bin\*.dll" $LIBS_DIR
|
cp "$BUILD_DIR\bin\*.dll" $LIBS_DIR
|
||||||
|
Loading…
Reference in New Issue
Block a user