muryshev commited on
Commit
a40b18d
·
verified ·
1 Parent(s): 88279e1

Update run.sh

Browse files
Files changed (1) hide show
  1. run.sh +1 -23
run.sh CHANGED
@@ -9,29 +9,7 @@ CONTEXT="${CONTEXT:-30000}"
9
  # Check if the file exists
10
  if [ ! -e "$MODEL_PATH" ]; then
11
  echo "Downloading model."
12
- # If the file doesn't exist, download it using curl with redirects
13
- headers=$(curl -sI -L "$MODEL_URL")
14
-
15
- # Extract the final location from the headers
16
- final_url=$(echo "$headers" | grep -i '^location:' | awk '{print $2}' | tr -d '\r\n')
17
-
18
- if [ -z "$final_url" ]; then
19
- echo "Failed to determine the final URL after following redirects."
20
- exit 1
21
- fi
22
-
23
- # Download the file with the final URL
24
-
25
- echo "Download started from $final_url"
26
-
27
- curl --location --output "$MODEL_PATH" "$final_url" \
28
- --progress-bar \
29
- --write-out "%{size_download}\n"
30
-
31
- echo "Download completed from $final_url"
32
-
33
-
34
- echo "File downloaded successfully from $final_url."
35
  else
36
  echo "File already exists."
37
  fi
 
9
  # Check if the file exists
10
  if [ ! -e "$MODEL_PATH" ]; then
11
  echo "Downloading model."
12
+ wget -P /data -L https://huggingface.co/TheBloke/Mixtral-8x7B-Instruct-v0.1-GGUF/resolve/main/mixtral-8x7b-instruct-v0.1.Q2_K.gguf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  else
14
  echo "File already exists."
15
  fi