Skip to content

Commit c791889

Browse files
committed
Add fix for #21
1 parent cefbdb0 commit c791889

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

.github/workflows/build-wheels-batch-oobabooga.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
inputs:
66
versions:
77
description: 'Comma-seperated version tags of llama-cpp-python to build'
8-
default: 'v0.1.77,v0.1.76'
8+
default: 'v0.2.18,v0.2.17,v0.2.16,v0.2.15,v0.2.14'
99
required: true
1010
type: string
1111

.github/workflows/build-wheels-batch-rocm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
inputs:
66
versions:
77
description: 'Comma-seperated version tags of llama-cpp-python to build'
8-
default: 'v0.2.11,v0.2.10,v0.2.9,v0.2.8'
8+
default: 'v0.2.18,v0.2.17,v0.2.16,v0.2.15,v0.2.14'
99
required: true
1010
type: string
1111
config:

.github/workflows/build-wheels-oobabooga.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,12 @@ jobs:
175175
New-Item 'pyproject.toml' -itemType File -value $newpyproject -force
176176
New-Item 'CMakeLists.txt' -itemType File -value $cmakelists.Replace('llama_cpp','llama_cpp_cuda') -force
177177
178+
if ($packageVersion -gt [version]'0.2.13' -and $packageVersion -lt [version]'0.2.19')
179+
{
180+
$pyScripts = (dir '.\llama_cpp_cuda\*.py')
181+
$pyScripts.fullname.foreach({New-Item $_ -itemType File -value (cat $_ -raw).replace('import llama_cpp.llama','from . import llama') -force})
182+
}
183+
178184
- name: Build Wheel
179185
run: |
180186
$packageVersion = [version]$env:PCKGVER.TrimStart('v')

.github/workflows/build-wheels-rocm-full.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,12 @@ jobs:
169169
Copy-Item 'llama_cpp' 'llama_cpp_cuda' -recurse
170170
New-Item 'pyproject.toml' -itemType File -value $newpyproject -force
171171
New-Item 'CMakeLists.txt' -itemType File -value $cmakelists.Replace('llama_cpp','llama_cpp_cuda') -force
172+
173+
if ($packageVersion -gt [version]'0.2.13' -and $packageVersion -lt [version]'0.2.19')
174+
{
175+
$pyScripts = (dir '.\llama_cpp_cuda\*.py')
176+
$pyScripts.fullname.foreach({New-Item $_ -itemType File -value (cat $_ -raw).replace('import llama_cpp.llama','from . import llama') -force})
177+
}
172178
173179
- name: Build Wheel
174180
run: |

0 commit comments

Comments
 (0)