-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpipeline_models.sh
More file actions
47 lines (33 loc) · 1.11 KB
/
pipeline_models.sh
File metadata and controls
47 lines (33 loc) · 1.11 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
# Fractus shall already have these installed, but in case of a fresh setup:
# Install pip packages to user space
# python3 -m pip install --user --upgrade pip setuptools wheel
# Install PyTorch to user space
# pip install --user torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
# CURR_DIR=$(pwd)
# # Install nemo_toolkit to user space
# pip install --user nemo_toolkit['all']
# # Install requirements to user space
pip install --user -r ppl1_requirements.txt
# pip install --user -r ppl2_requirements.txt
echo "finished pip installation"
cd ~
WORK_DIR=~/workspace
if [ ! -d "$WORK_DIR" ]; then
echo "Creating $WORK_DIR directory..."
mkdir -p "$WORK_DIR"
echo "Directory created: $WORK_DIR"
fi
cd workspace
# Use the FLMR with TC's fix
git clone https://github.com/tcyuan373/FLMR.git
cd FLMR
pip install --user -e .
pip install --user colbert-ai
echo "finished flmr installation"
# Return to the original directory
cd "$CURR_DIR"
# Run the Python script
python prepare_FLMR.py
echo "finished flmr initialization"
git clone https://github.com/aliciayuting/SenseVoice.git