Libtorch各版本下载

Libtorch各版本下载 (不定期 更新)

linux版本:

Libtorch 1.0.0

cpu:    	https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-1.0.0.zip

Libtorch 1.1.0 —— 1.5.0

不同的版本只需要修改最后的几个数字以及对应的CUDA的版本

cpu:    	https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-1.1.0.zip
cuda10.0:  	https://download.pytorch.org/libtorch/cu100/libtorch-shared-with-deps-1.1.0.zip

Libtorch 1.6.0

cpu:   	https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-1.6.0%2Bcpu.zip
cuda10.1:  	https://download.pytorch.org/libtorch/cu101/libtorch-shared-with-deps-1.6.0%2Bcu101.zip
cuda10.2:  	https://download.pytorch.org/libtorch/cu102/libtorch-shared-with-deps-1.6.0.zip

Libtorch 1.7.0

cpu:   	https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-1.7.0%2Bcpu.zip
cuda10.1:  	https://download.pytorch.org/libtorch/cu101/libtorch-shared-with-deps-1.7.0%2Bcu101.zip
cuda10.2: 	https://download.pytorch.org/libtorch/cu102/libtorch-shared-with-deps-1.7.0.zip

Libtorch 1.8.0

cpu:   	https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-1.8.0%2Bcpu.zip
cuda10.2:  	https://download.pytorch.org/libtorch/cu102/libtorch-shared-with-deps-1.8.0.zip

Libtorch 1.9.0


cpu:   	https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-1.9.0%2Bcpu.zip
cuda10.2:  	https://download.pytorch.org/libtorch/cu102/libtorch-shared-with-deps-1.9.0%2Bcu102.zip

libtorch 1.10.0

cpu:   	https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-1.10.0%2Bcpu.zip
cuda10.2:  	https://download.pytorch.org/libtorch/cu102/libtorch-shared-with-deps-1.10.0%2Bcu102.zip

libtorch 1.11.0


cpu:   	https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-1.11.0%2Bcpu.zip
cuda11.3:  	https://download.pytorch.org/libtorch/cu113/libtorch-shared-with-deps-1.11.0%2Bcu113.zip

libtorch 1.12.0

cpu:   	https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-1.12.0%2Bcpu.zip
cuda11.3:  	https://download.pytorch.org/libtorch/cu113/libtorch-shared-with-deps-1.12.0%2Bcu113.zip
cuda11.6:  	https://download.pytorch.org/libtorch/cu116/libtorch-shared-with-deps-1.12.0%2Bcu116.zip

libtorch 1.13.0

cpu:   	https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-1.13.0%2Bcpu.zip
cuda11.6:  	https://download.pytorch.org/libtorch/cu116/libtorch-shared-with-deps-1.13.0%2Bcu116.zip
cuda11.7:  	https://download.pytorch.org/libtorch/cu117/libtorch-shared-with-deps-1.13.0%2Bcu117.zip

libtorch 2.0.1

cpu-Pre-cxx11 ABI :  		https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-2.0.1%2Bcpu.zip
cpu-cxx11 ABI: 				https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.0.1%2Bcpu.zip
cuda11.7-Pre-cxx11 ABI :	https://download.pytorch.org/libtorch/cu117/libtorch-shared-with-deps-2.0.1%2Bcu117.zip
cuda11.7-cxx11 ABI: 		https://download.pytorch.org/libtorch/cu117/libtorch-cxx11-abi-shared-with-deps-2.0.1%2Bcu117.zip
cuda11.8-Pre-cxx11 ABI :	https://download.pytorch.org/libtorch/cu118/libtorch-shared-with-deps-2.0.1%2Bcu118.zip
cuda11.8-cxx11 ABI: 		https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.0.1%2Bcu118.zip

libtorch 2.1.0

cpu-Pre-cxx11 ABI :			https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-2.1.0%2Bcpu.zip
cpu-cxx11 ABI:	 			https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.1.0%2Bcpu.zip
cuda11.8-Pre-cxx11 ABI :	https://download.pytorch.org/libtorch/cu118/libtorch-shared-with-deps-2.1.0%2Bcu118.zip
cuda11.8-cxx11 ABI:			https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.1.0%2Bcu118.zip
cuda12.1-Pre-cxx11 ABI :	https://download.pytorch.org/libtorch/cu121/libtorch-shared-with-deps-2.1.0%2Bcu121.zip
cuda12.1-cxx11 ABI:			https://download.pytorch.org/libtorch/cu121/libtorch-cxx11-abi-shared-with-deps-2.1.0%2Bcu121.zip

libtorch 2.2.0

cpu-Pre-cxx11 ABI :			https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-2.2.0%2Bcpu.zip
cpu-cxx11 ABI:				https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.2.0%2Bcpu.zip
cuda11.8-Pre-cxx11 ABI :	https://download.pytorch.org/libtorch/cu118/libtorch-shared-with-deps-2.2.0%2Bcu118.zip
cuda11.8-cxx11 ABI:			https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.2.0%2Bcu118.zip
cuda12.1-Pre-cxx11 ABI :	https://download.pytorch.org/libtorch/cu121/libtorch-shared-with-deps-2.2.0%2Bcu121.zip
cuda12.1-cxx11 ABI:			https://download.pytorch.org/libtorch/cu121/libtorch-cxx11-abi-shared-with-deps-2.2.0%2Bcu121.zip
ROCm5.7-Pre-cxx11 ABI :		https://download.pytorch.org/libtorch/rocm5.7/libtorch-shared-with-deps-2.2.0%2Brocm5.7.zip
ROCm5.7-cxx11 ABI :			https://download.pytorch.org/libtorch/rocm5.7/libtorch-cxx11-abi-shared-with-deps-2.2.0%2Brocm5.7.zip

libtorch 2.3.0

cpu-Pre-cxx11 ABI :			https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-2.3.0%2Bcpu.zip
cpu-cxx11 ABI:				https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.3.0%2Bcpu.zip
ROCm6.0-Pre-cxx11 ABI:		https://download.pytorch.org/libtorch/rocm6.0/libtorch-shared-with-deps-2.3.0%2Brocm6.0.zip
ROCm6.0-cxx11 ABI:			https://download.pytorch.org/libtorch/rocm6.0/libtorch-cxx11-abi-shared-with-deps-2.3.0%2Brocm6.0.zip
cuda12.1-Pre-cxx11 ABI:		https://download.pytorch.org/libtorch/cu121/libtorch-shared-with-deps-2.3.0%2Bcu121.zip
cuda12.1-cxx11 ABI:			https://download.pytorch.org/libtorch/cu121/libtorch-cxx11-abi-shared-with-deps-2.3.0%2Bcu121.zip
cuda11.8-Pre-cxx11 ABI:		https://download.pytorch.org/libtorch/cu118/libtorch-shared-with-deps-2.3.0%2Bcu118.zip
cuda11.8-cxx11 ABI:			https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.3.0%2Bcu118.zip

libtorch 2.3.1

cpu-Pre-cxx11 ABI :			https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-2.3.1%2Bcpu.zip
cpu-cxx11 ABI:				https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.3.1%2Bcpu.zip
ROCm6.0-Pre-cxx11 ABI:		https://download.pytorch.org/libtorch/rocm6.0/libtorch-shared-with-deps-2.3.1%2Brocm6.0.zip
ROCm6.0-cxx11 ABI:			https://download.pytorch.org/libtorch/rocm6.0/libtorch-cxx11-abi-shared-with-deps-2.3.1%2Brocm6.0.zip
cuda12.1-Pre-cxx11 ABI:		https://download.pytorch.org/libtorch/cu121/libtorch-shared-with-deps-2.3.1%2Bcu121.zip
cuda12.1-cxx11 ABI:			https://download.pytorch.org/libtorch/cu121/libtorch-cxx11-abi-shared-with-deps-2.3.1%2Bcu121.zip
cuda11.8-Pre-cxx11 ABI:		https://download.pytorch.org/libtorch/cu118/libtorch-shared-with-deps-2.3.1%2Bcu118.zip
cuda11.8-cxx11 ABI:			https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.3.1%2Bcu118.zip

libtorch 2.5.0

cuda11.8-Pre-cxx11 ABI:		https://download.pytorch.org/libtorch/cu118/libtorch-shared-with-deps-2.5.0%2Bcu118.zip
cuda11.8-cxx11 ABI:			https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.5.0%2Bcu118.zip
cuda12.1 (Pre-cxx11 ABI):	https://download.pytorch.org/libtorch/cu121/libtorch-shared-with-deps-2.5.0%2Bcu121.zip
cuda12.1 (cxx11 ABI):		https://download.pytorch.org/libtorch/cu121/libtorch-cxx11-abi-shared-with-deps-2.5.0%2Bcu121.zip
cuda12.4 (Pre-cxx11 ABI):	https://download.pytorch.org/libtorch/cu124/libtorch-shared-with-deps-2.5.0%2Bcu124.zip
cuda12.4 (cxx11 ABI):		https://download.pytorch.org/libtorch/cu124/libtorch-cxx11-abi-shared-with-deps-2.5.0%2Bcu124.zip
ROCm6.2 (Pre-cxx11 ABI):	https://download.pytorch.org/libtorch/rocm6.2/libtorch-shared-with-deps-2.5.0%2Brocm6.2.zip
ROCm6.2 (cxx11 ABI):		https://download.pytorch.org/libtorch/rocm6.2/libtorch-cxx11-abi-shared-with-deps-2.5.0%2Brocm6.2.zip
cpu (Pre-cxx11 ABI):		https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-2.5.0%2Bcpu.zip
cpu (cxx11 ABI):			https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.5.0%2Bcpu.zip

libtorch 2.6.0

cuda11.8-Pre-cxx11 ABI:		https://download.pytorch.org/libtorch/cu118/libtorch-shared-with-deps-2.6.0%2Bcu118.zip
cuda11.8-cxx11 ABI:			https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.6.0%2Bcu118.zip
cuda12.4 (Pre-cxx11 ABI):	https://download.pytorch.org/libtorch/cu124/libtorch-shared-with-deps-2.6.0%2Bcu124.zip
cuda12.4 (cxx11 ABI):		https://download.pytorch.org/libtorch/cu124/libtorch-cxx11-abi-shared-with-deps-2.6.0%2Bcu124.zip
cuda12.6 (Pre-cxx11 ABI):	https://download.pytorch.org/libtorch/cu126/libtorch-shared-with-deps-2.6.0%2Bcu126.zip
cuda12.6 (cxx11 ABI):		https://download.pytorch.org/libtorch/cu126/libtorch-cxx11-abi-shared-with-deps-2.6.0%2Bcu126.zip
ROCm6.2.4(cxx11 ABI):		https://download.pytorch.org/libtorch/rocm6.2.4/libtorch-cxx11-abi-shared-with-deps-2.6.0%2Brocm6.2.4.zip
cpu (Pre-cxx11 ABI):		https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-2.6.0%2Bcpu.zip
cpu (cxx11 ABI):			https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.6.0%2Bcpu.zip

win版本:

Libtorch 1.0.0

cpu-release:    https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-1.0.0.zip
cu100-release:  https://download.pytorch.org/libtorch/cu100/libtorch-win-shared-with-deps-1.0.0.zip

Libtorch 1.1.0 —— 1.5.0

不同的版本只需要修改最后的几个数字以及对应的CUDA的版本

cpu-debug:      https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-debug-1.1.0.zip
cpu-release:    https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-1.1.0.zip
cu100-debug:    https://download.pytorch.org/libtorch/cu100/libtorch-win-shared-with-deps-debug-1.1.0.zip
cu100-release:  https://download.pytorch.org/libtorch/cu100/libtorch-win-shared-with-deps-1.1.0.zip

Libtorch 1.6.0

cpu-debug:     https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-debug-1.6.0%2Bcpu.zip
cpu-release:   https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-1.6.0%2Bcpu.zip
cu101-debug:    https://download.pytorch.org/libtorch/cu101/libtorch-win-shared-with-deps-debug-1.6.0%2Bcu101.zip
cu101-release:  https://download.pytorch.org/libtorch/cu101/libtorch-win-shared-with-deps-1.6.0%2Bcu101.zip
cu102-debug:    https://download.pytorch.org/libtorch/cu102/libtorch-win-shared-with-deps-debug-1.6.0.zip
cu102-release:  https://download.pytorch.org/libtorch/cu102/libtorch-win-shared-with-deps-1.6.0.zip

Libtorch 1.7.0

cpu-debug:     https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-debug-1.7.0%2Bcpu.zip
cpu-release:   https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-1.7.0%2Bcpu.zip
cu101-debug:    https://download.pytorch.org/libtorch/cu101/libtorch-win-shared-with-deps-debug-1.7.0%2Bcu101.zip
cu101-release:  https://download.pytorch.org/libtorch/cu101/libtorch-win-shared-with-deps-1.7.0%2Bcu101.zip
cu102-debug:    https://download.pytorch.org/libtorch/cu102/libtorch-win-shared-with-deps-debug-1.7.0.zip
cu102-debug:    https://download.pytorch.org/libtorch/cu102/libtorch-win-shared-with-deps-1.7.0.zip

Libtorch 1.8.0

cpu-debug:     https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-debug-1.8.0%2Bcpu.zip
cpu-release:   https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-1.8.0%2Bcpu.zip
cu102-debug:    https://download.pytorch.org/libtorch/cu102/libtorch-win-shared-with-deps-debug-1.8.0.zip
cu102-release:  https://download.pytorch.org/libtorch/cu102/libtorch-win-shared-with-deps-1.8.0.zip

Libtorch 1.9.0

cpu-debug:     https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-debug-1.9.0%2Bcpu.zip
cpu-release:   https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-1.9.0%2Bcpu.zip
cu102-debug:    https://download.pytorch.org/libtorch/cu102/libtorch-win-shared-with-deps-debug-1.9.0%2Bcu102.zip
cu102-release:  https://download.pytorch.org/libtorch/cu102/libtorch-win-shared-with-deps-1.9.0%2Bcu102.zip

libtorch 1.10.0

cpu-debug:     https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-debug-1.10.0%2Bcpu.zip
cpu-release:   https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-1.10.0%2Bcpu.zip
cu102-debug:    https://download.pytorch.org/libtorch/cu102/libtorch-win-shared-with-deps-debug-1.10.0%2Bcu102.zip
cu102-release:  https://download.pytorch.org/libtorch/cu102/libtorch-win-shared-with-deps-1.10.0%2Bcu102.zip

libtorch 1.11.0

cpu-debug:     https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-debug-1.11.0%2Bcpu.zip
cpu-release:   https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-1.11.0%2Bcpu.zip
cu113-debug:    https://download.pytorch.org/libtorch/cu113/libtorch-win-shared-with-deps-debug-1.11.0%2Bcu113.zip
cu113-release:  https://download.pytorch.org/libtorch/cu113/libtorch-win-shared-with-deps-1.11.0%2Bcu113.zip

libtorch 1.12.0

cpu-release:   https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-1.12.0%2Bcpu.zip
cpu-debug:     https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-debug-1.12.0%2Bcpu.zip
cu113-debug:    https://download.pytorch.org/libtorch/cu113/libtorch-win-shared-with-deps-debug-1.12.0%2Bcu113.zip
cu113-release:  https://download.pytorch.org/libtorch/cu113/libtorch-win-shared-with-deps-1.12.0%2Bcu113.zip
cu116-debug:    https://download.pytorch.org/libtorch/cu116/libtorch-win-shared-with-deps-debug-1.12.0%2Bcu116.zip
cu116-release:  https://download.pytorch.org/libtorch/cu116/libtorch-win-shared-with-deps-1.12.0%2Bcu116.zip

libtorch 1.13.0

cpu-release:   https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-1.13.0%2Bcpu.zip
cpu-debug:     https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-debug-1.13.0%2Bcpu.zip
cu116-debug:    https://download.pytorch.org/libtorch/cu116/libtorch-win-shared-with-deps-debug-1.13.0%2Bcu116.zip
cu116-release:  https://download.pytorch.org/libtorch/cu116/libtorch-win-shared-with-deps-1.13.0%2Bcu116.zip
cu117-debug:    https://download.pytorch.org/libtorch/cu117/libtorch-win-shared-with-deps-debug-1.13.0%2Bcu117.zip
cu117-release:  https://download.pytorch.org/libtorch/cu117/libtorch-win-shared-with-deps-1.13.0%2Bcu117.zip

libtorch 2.0.1

cpu-release:  		https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-2.0.1%2Bcpu.zip
cpu-debug: 			https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-debug-2.0.1%2Bcpu.zip
cuda11.7-release:	https://download.pytorch.org/libtorch/cu117/libtorch-win-shared-with-deps-2.0.1%2Bcu117.zip
cuda11.7-debug: 	https://download.pytorch.org/libtorch/cu117/libtorch-win-shared-with-deps-debug-2.0.1%2Bcu117.zip
cuda11.8-release:	https://download.pytorch.org/libtorch/cu118/libtorch-win-shared-with-deps-2.0.1%2Bcu118.zip
cuda11.8-debug: 	https://download.pytorch.org/libtorch/cu118/libtorch-win-shared-with-deps-debug-2.0.1%2Bcu118.zip

libtorch 2.1.0

cpu-release:		https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-2.1.0%2Bcpu.zip
cpu-debug:			https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-debug-2.1.0%2Bcpu.zip
cuda11.8-release:	https://download.pytorch.org/libtorch/cu118/libtorch-win-shared-with-deps-2.1.0%2Bcu118.zip
cuda11.8-debug:		https://download.pytorch.org/libtorch/cu118/libtorch-win-shared-with-deps-debug-2.1.0%2Bcu118.zip
cuda12.1-release:	https://download.pytorch.org/libtorch/cu121/libtorch-win-shared-with-deps-2.1.0%2Bcu121.zip
cuda12.1-debug:		https://download.pytorch.org/libtorch/cu121/libtorch-win-shared-with-deps-debug-2.1.0%2Bcu121.zip

libtorch 2.2.0

cpu-release:		https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-2.2.0%2Bcpu.zip
cpu-debug:			https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-debug-2.2.0%2Bcpu.zip
cuda11.8-release:	https://download.pytorch.org/libtorch/cu118/libtorch-win-shared-with-deps-2.2.0%2Bcu118.zip
cuda11.8-debug:		https://download.pytorch.org/libtorch/cu118/libtorch-win-shared-with-deps-debug-2.2.0%2Bcu118.zip
cuda12.1-release:	https://download.pytorch.org/libtorch/cu121/libtorch-win-shared-with-deps-2.2.0%2Bcu121.zip
cuda12.1-debug:		https://download.pytorch.org/libtorch/cu121/libtorch-win-shared-with-deps-debug-2.2.0%2Bcu121.zip

libtorch 2.3.0

cpu-Release version:		https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-2.3.0%2Bcpu.zip
cpu-Debug version:			https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-debug-2.3.0%2Bcpu.zip 
cuda12.1-Release version:	https://download.pytorch.org/libtorch/cu121/libtorch-win-shared-with-deps-2.3.0%2Bcu121.zip
cuda12.1-Debug version:		https://download.pytorch.org/libtorch/cu121/libtorch-win-shared-with-deps-debug-2.3.0%2Bcu121.zip
cuda11.8-Release version:	https://download.pytorch.org/libtorch/cu118/libtorch-win-shared-with-deps-2.3.0%2Bcu118.zip
cuda11.8-Debug version:		https://download.pytorch.org/libtorch/cu118/libtorch-win-shared-with-deps-debug-2.3.0%2Bcu118.zip

libtorch 2.3.1

cpu-Release version:		https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-2.3.1%2Bcpu.zip
cpu-Debug version:			https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-debug-2.3.1%2Bcpu.zip
cuda12.1-Release version:	https://download.pytorch.org/libtorch/cu121/libtorch-win-shared-with-deps-2.3.1%2Bcu121.zip
cuda12.1-Debug version:		https://download.pytorch.org/libtorch/cu121/libtorch-win-shared-with-deps-debug-2.3.1%2Bcu121.zip
cuda11.8-Release version:	https://download.pytorch.org/libtorch/cu118/libtorch-win-shared-with-deps-2.3.1%2Bcu118.zip
cuda11.8-Debug version:		https://download.pytorch.org/libtorch/cu118/libtorch-win-shared-with-deps-debug-2.3.1%2Bcu118.zip

libtorch 2.5.0

cuda 11.8(Release version):	https://download.pytorch.org/libtorch/cu118/libtorch-win-shared-with-deps-2.5.0%2Bcu118.zip
cuda11.8 (Debug version):	https://download.pytorch.org/libtorch/cu118/libtorch-win-shared-with-deps-debug-2.5.0%2Bcu118.zip
cuda12.1 (Release version):	https://download.pytorch.org/libtorch/cu121/libtorch-win-shared-with-deps-2.5.0%2Bcu121.zip
cuda12.1 (Debug version):	https://download.pytorch.org/libtorch/cu121/libtorch-win-shared-with-deps-debug-2.5.0%2Bcu121.zip
cuda12.4 (Release version):	https://download.pytorch.org/libtorch/cu124/libtorch-win-shared-with-deps-2.5.0%2Bcu124.zip
cuda12.4(Debug version):	https://download.pytorch.org/libtorch/cu124/libtorch-win-shared-with-deps-debug-2.5.0%2Bcu124.zip
cpu (Release version):		https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-2.5.0%2Bcpu.zip
cpu (Debug version):		https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-debug-2.5.0%2Bcpu.zip

libtorch 2.6.0

cuda 11.8(Release version):	https://download.pytorch.org/libtorch/cu118/libtorch-win-shared-with-deps-2.6.0%2Bcu118.zip
cuda11.8 (Debug version):	https://download.pytorch.org/libtorch/cu118/libtorch-win-shared-with-deps-debug-2.6.0%2Bcu118.zip
cuda12.4 (Release version):	https://download.pytorch.org/libtorch/cu124/libtorch-win-shared-with-deps-2.6.0%2Bcu124.zip
cuda12.4(Debug version):	https://download.pytorch.org/libtorch/cu124/libtorch-win-shared-with-deps-debug-2.6.0%2Bcu124.zip
cuda12.6 (Release version):	https://download.pytorch.org/libtorch/cu126/libtorch-win-shared-with-deps-2.6.0%2Bcu126.zip
cuda12.6(Debug version):	https://download.pytorch.org/libtorch/cu126/libtorch-win-shared-with-deps-debug-2.6.0%2Bcu126.zip
cpu (Release version):		https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-2.6.0%2Bcpu.zip
cpu (Debug version):		https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-debug-2.6.0%2Bcpu.zip
### 如何下载并安装 LibTorch 最新版本 对于 CUDA 版本为 11.4 的环境,可以直接下载最新的 LibTorch 库,因为 C++ 的 LibTorch 是向下兼容的[^2]。 #### 获取最新版 LibTorch 可以通过官方链接获取适用于特定操作系统的预编译二进制文件。以下是针对 Linux 系统的操作指南: ```bash wget https://download.pytorch.org/libtorch/nightly/cu117/libtorch-shared-with-deps-latest.zip unzip libtorch-shared-with-deps-latest.zip -d ~/libtorch ``` 这段脚本会从 PyTorch 官方服务器下载带有依赖项共享库形式发布的夜间构建版本,并将其解压缩到用户的 home 目录下的 `libtorch` 文件夹中[^3]。 #### 设置环境变量 为了使程序能够定位到刚下载好的 LibTorch 库,在 `.bashrc` 或者其他 shell 配置文件里添加如下路径设置: ```bash export LD_LIBRARY_PATH=$HOME/libtorch/lib:$LD_LIBRARY_PATH ``` 这一步骤确保了动态链接器可以找到所需的共享对象文件。 #### 测试安装是否成功 创建一个简单的测试项目来验证 LibTorch 是否正确安装: ```cpp // test_libtorch.cpp #include <torch/torch.h> #include <iostream> int main() { torch::Tensor tensor = torch::rand({2, 3}); std::cout << tensor << std::endl; } ``` 编译上述代码片段需要用到 g++ 编译器以及 pkg-config 工具帮助指定必要的编译选项: ```bash g++ -std=c++14 $(pkg-config --cflags torch) -o test_libtorch test_libtorch.cpp $(pkg-config --libs torch) ./test_libtorch ``` 如果一切正常,则应该能看到随机生成张量的内容被打印出来,表明 LibTorch 成功加载并且工作良好。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值