summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/fetch-mt-model.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/fetch-mt-model.sh b/scripts/fetch-mt-model.sh
new file mode 100755
index 0000000..674899e
--- /dev/null
+++ b/scripts/fetch-mt-model.sh
@@ -0,0 +1,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"