Download compile.sh from simaai/LFM2-VL-3B-Autoround-a16w4: direct link, hf CLI and curl.
- Browser
- Download file 655 Bytes
-
https://huggingface.co/simaai/LFM2-VL-3B-Autoround-a16w4/resolve/main/compile.sh
- Command line
-
hf download hf://simaai/LFM2-VL-3B-Autoround-a16w4/compile.sh
-
curl -L -o compile.sh https://huggingface.co/simaai/LFM2-VL-3B-Autoround-a16w4/resolve/main/compile.sh
655 Bytes
| set -euo pipefail | |
| # Download the HuggingFace simaai/LFM2-VL-3B-Autoround-Safetensors using the following command. | |
| # hf download simaai/LFM2-VL-3B-Autoround-Safetensors --local-dir LFM2-VL-3B-Autoround-Safetensors | |
| MODEL_PATH="LFM2-VL-3B-Autoround-Safetensors" | |
| OUTPUT_PATH="LFM2-VL-3B-Autoround-a16w4" | |
| IMAGE_SIZE_ARGS=(--input_height 512 --input_width 512) | |
| TMPDIR="$(mktemp -d /tmp/sima.XXXXXX)" | |
| export TMPDIR | |
| cleanup() { | |
| rm -rf -- "${TMPDIR}" | |
| } | |
| trap cleanup EXIT | |
| llima-compile \ | |
| "${MODEL_PATH}" \ | |
| -o "${OUTPUT_PATH}" \ | |
| --max_num_tokens 8192 \ | |
| --enable_filter_sharing \ | |
| "${IMAGE_SIZE_ARGS[@]}" \ | |
| "$@" | |