summaryrefslogtreecommitdiff
path: root/scripts/fetch-mt-model.sh
blob: 674899e933bd7e60e7ff4baa981c2bed98a97c9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# Optional: local English subtitles. Hy-MT2-1.8B (Tencent Hunyuan MT, Q4_K_M, ~1.1 GB)
# is a dedicated translation model — small, fast, and much better on short fragments
# than a general chat model. Needs llama-server (llama.cpp) on PATH.
set -eu
dest=${1:-models/mt}
name=Hy-MT2-1.8B-Q4_K_M.gguf
base=https://huggingface.co/tencent/Hy-MT2-1.8B-GGUF/resolve/main
mkdir -p "$dest"
if [ -f "$dest/$name" ]; then
  echo "already have $dest/$name"
  exit 0
fi
echo "downloading $name (~1.1 GB)"
curl -L --fail -C - -o "$dest/$name" "$base/$name"
ls -la "$dest/$name"