forked from Tencent-Hunyuan/HunyuanVideo
-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathlaunch.sh
More file actions
26 lines (19 loc) · 722 Bytes
/
launch.sh
File metadata and controls
26 lines (19 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# Prepare virtual environment
if [ ! -d "venv" ]; then
# 1. Create a virtual environment
python3 -m venv venv
# 2. Activate the virtual environment
source venv/bin/activate
# 3. Install the required packages
pip install -r requirements.txt
# 4.1 optional Flash attention support (easy to install on Linux but much harder on Windows)
pip install flash-attn==2.7.2.post1
# 4.2 optional Sage attention support (30% faster, easy to install on Linux but much harder on Windows)
pip install sageattention==1.0.6
else
# Activate the virtual environment
source venv/bin/activate
fi
# Start the server
python gradio_server.py --profile ${HUNYUAN_PROFILE}