Update prebuilt-binaries file-dl naming according to repo - gguf-imat.py (#7)
Browse files- Update gguf-imat.py (4ccc0eaadbad678e63e5982881f88e4cc4922787)
Co-authored-by: Lewdiculous <Lewdiculous@users.noreply.huggingface.co>
29 unmodified lines30313233343536373839404129 unmodified linesresponse = requests.get(latest_release_url)if response.status_code == 200:latest_release_tag = response.url.split("/")[-1]download_url = f"https://github.com/ggerganov/llama.cpp/releases/download/{latest_release_tag}/llama-{latest_release_tag}-bin-win-cublas-cu12.2.0-x64.zip"response = requests.get(download_url)if response.status_code == 200:with open(f"llama-{latest_release_tag}-bin-win-cublas-cu12.2.0-x64.zip", "wb") as f:f.write(response.content)with zipfile.ZipFile(f"llama-{latest_release_tag}-bin-win-cublas-cu12.2.0-x64.zip", "r") as zip_ref:zip_ref.extractall(os.path.join(base_dir, "bin"))print("Downloading latest 'llama.cpp' prebuilt Windows binaries...")print("Download and extraction completed successfully.")29 unmodified lines30313233343536373839404129 unmodified linesresponse = requests.get(latest_release_url)if response.status_code == 200:latest_release_tag = response.url.split("/")[-1]download_url = f"https://github.com/ggerganov/llama.cpp/releases/download/{latest_release_tag}/llama-{latest_release_tag}-bin-win-cuda-cu12.2.0-x64.zip"response = requests.get(download_url)if response.status_code == 200:with open(f"llama-{latest_release_tag}-bin-win-cuda-cu12.2.0-x64.zip", "wb") as f:f.write(response.content)with zipfile.ZipFile(f"llama-{latest_release_tag}-bin-win-cuda-cu12.2.0-x64.zip", "r") as zip_ref:zip_ref.extractall(os.path.join(base_dir, "bin"))print("Downloading latest 'llama.cpp' prebuilt Windows binaries...")print("Download and extraction completed successfully.")
gguf-imat.py+3-3