Skip to content

Commit

Permalink
Add fix for #21
Browse files Browse the repository at this point in the history
  • Loading branch information
jllllll committed Nov 17, 2023
1 parent cefbdb0 commit c791889
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-wheels-batch-oobabooga.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
inputs:
versions:
description: 'Comma-seperated version tags of llama-cpp-python to build'
default: 'v0.1.77,v0.1.76'
default: 'v0.2.18,v0.2.17,v0.2.16,v0.2.15,v0.2.14'
required: true
type: string

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-wheels-batch-rocm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
inputs:
versions:
description: 'Comma-seperated version tags of llama-cpp-python to build'
default: 'v0.2.11,v0.2.10,v0.2.9,v0.2.8'
default: 'v0.2.18,v0.2.17,v0.2.16,v0.2.15,v0.2.14'
required: true
type: string
config:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/build-wheels-oobabooga.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,12 @@ jobs:
New-Item 'pyproject.toml' -itemType File -value $newpyproject -force
New-Item 'CMakeLists.txt' -itemType File -value $cmakelists.Replace('llama_cpp','llama_cpp_cuda') -force
if ($packageVersion -gt [version]'0.2.13' -and $packageVersion -lt [version]'0.2.19')
{
$pyScripts = (dir '.\llama_cpp_cuda\*.py')
$pyScripts.fullname.foreach({New-Item $_ -itemType File -value (cat $_ -raw).replace('import llama_cpp.llama','from . import llama') -force})
}
- name: Build Wheel
run: |
$packageVersion = [version]$env:PCKGVER.TrimStart('v')
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/build-wheels-rocm-full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@ jobs:
Copy-Item 'llama_cpp' 'llama_cpp_cuda' -recurse
New-Item 'pyproject.toml' -itemType File -value $newpyproject -force
New-Item 'CMakeLists.txt' -itemType File -value $cmakelists.Replace('llama_cpp','llama_cpp_cuda') -force
if ($packageVersion -gt [version]'0.2.13' -and $packageVersion -lt [version]'0.2.19')
{
$pyScripts = (dir '.\llama_cpp_cuda\*.py')
$pyScripts.fullname.foreach({New-Item $_ -itemType File -value (cat $_ -raw).replace('import llama_cpp.llama','from . import llama') -force})
}
- name: Build Wheel
run: |
Expand Down

0 comments on commit c791889

Please sign in to comment.