This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ==================================================================================== | |
# [最终脚本 - 采用 PyTorch 官方 Pip 安装方式] | |
# | |
# 该脚本创建一个 Conda 环境来运行 Mamba 模型,其核心设计是: | |
# | |
# 1. 依赖主机 CUDA: 脚本不安装任何 CUDA 工具包,假定主机环境已正确配置。 | |
# 2. 官方 Pip 安装: 放弃 Conda,采用 PyTorch 官网推荐的 pip 命令进行安装。 | |
# 这是确保正确安装 GPU 版本的、最可靠的方法,能从根本上避免所有依赖冲突。 | |
# 3. 版本更新: PyTorch 版本已更新至 2.4.1。 |