mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 09:34:37 +00:00
Switched VS2019 for revert cu12.1 build, hopefully solves dll issues
try change order (+3 squashed commit) Squashed commit: [457f02507] try newer jimver [64af28862
] windows pyinstaller shim. the final loader will be moved into the packed directory later. [0272ecf2d
] try alternative way of getting cuda toolkit 12.4 since jimver wont work, also fix rocm try again (+3 squashed commit) Squashed commit: [133e81633] try without pwsh [4d99cefba] try without pwsh [bdfa91e7d] try alternative way of getting cuda toolkit 12.4, also fix rocm
This commit is contained in:
parent
28b35ca879
commit
8386546e08
5 changed files with 60 additions and 13 deletions
14
koboldcpp.py
14
koboldcpp.py
|
@ -660,15 +660,19 @@ def unpack_to_dir(destpath = ""):
|
|||
print(f"KoboldCpp will be extracted to {destpath}\nThis process may take several seconds to complete.")
|
||||
else:
|
||||
messagebox.showinfo("Unpack Starting", f"KoboldCpp will be extracted to {destpath}\nThis process may take several seconds to complete.")
|
||||
pyds_dir = os.path.join(destpath, 'pyds')
|
||||
os.makedirs(pyds_dir, exist_ok=True)
|
||||
for item in os.listdir(srcpath):
|
||||
s = os.path.join(srcpath, item)
|
||||
d = os.path.join(destpath, item)
|
||||
if item.endswith('.pyd'): # Skip .pyd files
|
||||
continue
|
||||
if os.path.isdir(s):
|
||||
shutil.copytree(s, d, False, None)
|
||||
else:
|
||||
if item.endswith('.pyd'): # relocate pyds files to subdirectory
|
||||
d = os.path.join(pyds_dir, item)
|
||||
shutil.copy2(s, d)
|
||||
else:
|
||||
if os.path.isdir(s):
|
||||
shutil.copytree(s, d, False, None)
|
||||
else:
|
||||
shutil.copy2(s, d)
|
||||
if cliunpack:
|
||||
print(f"KoboldCpp successfully extracted to {destpath}")
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue