Files
hydra-ml-config-template/quickstart.sh
2025-10-12 19:39:12 +08:00

34 lines
746 B
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
set -e
echo "🚀 Hydra ML Config Template - 快速开始"
echo "========================================"
# 安装 uv如果需要
if ! command -v uv &> /dev/null; then
echo "📦 安装 uv..."
curl -LsSf https://astral.sh/uv/install.sh | sh
fi
# 创建虚拟环境
echo "🔧 创建虚拟环境..."
uv venv
# 激活虚拟环境并安装依赖
echo "📥 安装依赖..."
source .venv/bin/activate
uv pip install -e .
# 运行示例
echo "🎯 运行示例..."
echo ""
echo "1⃣ 基础示例"
cd examples/01_basic && python train.py && cd ../..
echo ""
echo "2⃣ 机器学习训练示例"
cd examples/02_ml_training && python train.py && cd ../..
echo ""
echo "✨ 完成!查看 README.md 了解更多"