自行编译基于 SM_6.1(Pascal) P104‑100 的 CUDA 推理版 llama.cpp|实战系列(2)——资源官方直链与 aria2c 断点续传下载指令与资源包准备
好直接给系列(2)——完整下载资源 aria2c 断点续传指令格式和你要求的一致可直接贴博文。自行编译基于 SM_6.1(Pascal) P104‑100 的 CUDA 推理版 llama.cpp实战系列(2)——资源官方直链与 aria2c 断点续传下载指令系列导航(1) 资源需求、背景知识与版本匹配(2) 资源下载链接与 aria2c 断点续传指令 ←你在这里(3) CUDA / VS / CMake 安装步骤、选项与坑验证(4) llama.cpp CMake Ninja 编译实操与日志解读(5) P104‑100 推理测试CUDA vs Vulkan 对比分析(6) 制作绿色发行包含 CUDA Runtime Redist(7) 总结与进阶路线一、下载约定重要下载目录建议示例E:\Downloads\llama_cuda_build\所有包建议存同一目录方便管理aria2c参数说明aria2c --file-allocationnone -x 1 -s 1 -k 1M -c URL -o 文件名-c→ 断点续传-x 1 -s 1→ 单线程防 NVIDIA CDN 断连-k 1M→ chunk size⚠️ 如遇 HTTPS 证书报警加--check-certificatefalse一般不推荐仅应急二、CUDA Toolkit 12.4 Update 1核心 CUDA 12.4.1 Windows 10/11 x64 — local installerhttps://developer.download.nvidia.com/compute/cuda/12.4.1/local_installers/cuda_12.4.1_551.78_windows.exearia2c --file-allocationnone -x 1 -s 1 -k 1M -c ^ https://developer.download.nvidia.com/compute/cuda/12.4.1/local_installers/cuda_12.4.1_551.78_windows.exe ^ -o cuda_12.4.1_551.78_windows.exe✅ 大小约3.1 GB✅ 选Custom 安装后面系列(3)详解三、Visual Studio 2022 Build ToolsC/C 编译器 VS 2022 Build Tools 17.14官方引导安装器https://aka.ms/vs/17/release/vs_BuildTools.exearia2c --file-allocationnone -x 1 -s 1 -k 1M -c ^ https://aka.ms/vs/17/release/vs_BuildTools.exe ^ -o vs_BuildTools.exe安装时勾选组件系列(3)详述✅ MSVC v143 – VS 2022 C x64/x86 Build Tools✅ Windows 10/11 SDK✅ C CMake tools可选我们单独装新版 CMake❌ 不勾 IDE / 不勾 .NET / 不勾 Unity四、CMake≥ 3.28 推荐 CMake 3.31.x Windows x64 Installer官方https://github.com/Kitware/CMake/releases/download/v3.31.6/cmake-3.31.6-windows-x86_64.msiaria2c --file-allocationnone -x 1 -s 1 -k 1M -c ^ https://github.com/Kitware/CMake/releases/download/v3.31.6/cmake-3.31.6-windows-x86_64.msi ^ -o cmake-3.31.6-windows-x86_64.msi✅ 安装时勾选Add CMake to system PATH for all users五、Ninja构建工具 Ninja 1.11.1 Windows x64官方 binaryhttps://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-win.ziparia2c --file-allocationnone -x 1 -s 1 -k 1M -c ^ https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-win.zip ^ -o ninja-win.zip解压后把ninja.exe放入D:\Tools\ninja\ninja.exe并加入系统Path验证ninja --version应输出1.11.1六、Git for Windows拉 llama.cpp 源码 Git 2.45 x64https://github.com/git-for-windows/git/releases/download/v2.45.2.windows.1/Git-2.45.2-64-bit.exearia2c --file-allocationnone -x 1 -s 1 -k 1M -c ^ https://github.com/git-for-windows/git/releases/download/v2.45.2.windows.1/Git-2.45.2-64-bit.exe ^ -o Git-2.45.2-64-bit.exe七、llama.cpp 源码Git 方式非 ZIP安装完 Git 后git clone https://github.com/ggml-org/llama.cpp.git ^ E:\yang25\30hx_P104\P104-100\llamp.cpp_forP104\llama.cpp-master✅ 推荐用master最新你实测通过版本为 2025‑06‑late八、资源汇总速查表组件文件名关键说明CUDA 12.4.1cuda_12.4.1_551.78_windows.exeCustom 安装去 NsightVS 2022 BTvs_BuildTools.exe勾 v143 WinSDKCMakecmake-3.31.6-windows-x86_64.msi加 PATHNinjaninja-win.zip解压 PATHGitGit-2.45.2-64-bit.exe拉源码llama.cppgit clone不下载 zip九、本章小结本篇给出 Windows 11 下编译llama.cpp CUDA 推理版sm_61 / P104‑100 所需的全部官方资源直链以及经实战验证的aria2c断点续传下载命令。所有版本均经过 P104‑100 VS 2022 17.14 实测避免 cudafe 崩溃与 CMake 探测失败。下一篇讲解各组件安装顺序、选项、典型坑位与安装后验证命令。