Skip to content
Closed
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
12 changes: 8 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ else
CUBLAS_FLAG_CMAKE="OFF"
fi

mkdir -p bindings
mkdir -p bindings/whisper
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for the previous line, you can remove that


# Navigate to whisper.cpp examples directory and install dependencies
echo "Installing npm dependencies for whisper.cpp examples..."
Expand All @@ -69,14 +69,18 @@ cp -r build/Release/* ../bindings/whisper/
# Navigate back to the root directory
cd ../

# Navigate to llama.cpp
# Navigate to llama.cpp
cd llama.cpp

echo "Compiling llama.cpp server"
LLAMA_BUILD_SERVER=1 make
rm -rf build-server
mkdir build-server
cd build-server
cmake -DLLAMA_BUILD_SERVER=ON ..
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you will also need to take care of where CUDA flag was set or not. See the whisper command for reference

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you will also need to take care of where CUDA flag was set or not. See the whisper command for reference

CUDA flags? What do you mean?

cmake --build . --config Release

# Navigate back to the root directory
cd ../
cd ../../

# Prompt the user for whether they want to download models or not
read -p "Do you want to download models? [y/n] " DOWNLOAD_CHOICE
Expand Down