Skip to content

Commit de8bc01

Browse files
authored
feat: update dependencies and optimize python3.11 install (#177)
1 parent 627a50f commit de8bc01

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

usecases/ollama/setup.sh

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -100,19 +100,10 @@ verify_os() {
100100
echo "$S_VALID OS version: $CURRENT_OS_ID $CURRENT_OS_VERSION"
101101
}
102102

103-
verify_ppa_deadsnakes_repo(){
104-
if [ ! -e /etc/apt/sources.list.d/deadsnakes-ubuntu-ppa-jammy.list ]; then
105-
echo "Adding Deadsnakes PPA Repository"
106-
sudo add-apt-repository ppa:deadsnakes/ppa -y
107-
sudo -E apt update
108-
fi
109-
}
110-
111103
verify_python3.11_installation(){
112104
echo -e "\n# Verifying Python 3.11 Installation"
113105
if ! command -v python3.11 &> /dev/null; then
114106
echo "Installing Python 3.11"
115-
verify_ppa_deadsnakes_repo
116107
PYTHON_PACKAGES=(
117108
python3.11
118109
python3.11-venv
@@ -135,6 +126,7 @@ verify_llm_dependencies(){
135126
# Install dependencies
136127
if pip install --upgrade pip && \
137128
pip install --pre --upgrade 'ipex-llm[cpp]' && \
129+
pip install --upgrade accelerate==0.33.0 && \
138130
pip install --upgrade open-webui && \
139131
install_packages "curl"
140132
then
@@ -188,21 +180,16 @@ verify_oneapi(){
188180

189181

190182
setup() {
191-
192183
verify_platform
193184
verify_gpu
194185
verify_os
195186
verify_drivers
196-
197187
verify_oneapi
198-
199188
verify_python3.11_installation
200189
verify_llm_dependencies
201190
verify_ollama_installation
202-
203191
echo -e "\n# Status"
204192
echo "$S_VALID Setup Installed"
205-
206193
}
207194

208-
setup
195+
setup

0 commit comments

Comments
 (0)