Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2566,8 +2566,16 @@ install_flash_attn() {
log "ERROR" "无法创建临时目录"
return 1
}

local flash_attn_url="https://github.com/Dao-AILab/flash-attention.git"
if [ $USE_GHPROXY -eq 1 ]; then
flash_attn_url="${GHPROXY_URL}/${flash_attn_url}"
echo -e "${YELLOW}使用代理克隆flash-attention: ${flash_attn_url}${NC}"
else
echo -e "${YELLOW}直接克隆flash-attention: ${flash_attn_url}${NC}"
fi

if git clone https://github.com/Dao-AILab/flash-attention.git; then
if git clone "$flash_attn_url"; then
cd flash-attention || {
log "ERROR" "无法进入flash-attention目录"
return 1
Expand Down Expand Up @@ -2991,12 +2999,3 @@ main() {

# 运行主函数
main "$@"