Download serve.sh from qualitymaterial/Flint-NVFP4-FreeToken: direct link, hf CLI and curl.
- Browser
- Download file 654 Bytes
-
https://huggingface.co/qualitymaterial/Flint-NVFP4-FreeToken/resolve/main/serve.sh
- Command line
-
hf download hf://qualitymaterial/Flint-NVFP4-FreeToken/serve.sh
-
curl -L -o serve.sh https://huggingface.co/qualitymaterial/Flint-NVFP4-FreeToken/resolve/main/serve.sh
654 Bytes
| set -euo pipefail | |
| ROOT="${FLINT_HOME:-$HOME/.local/share/flint-freetoken}" | |
| export PATH="$ROOT/venv/bin:/usr/local/cuda/bin:$PATH" | |
| export PYTHONPATH="$ROOT/source/python" | |
| export FLASHINFER_USE_CUDA_NORM=1 | |
| exec "$ROOT/venv/bin/ft" serve \ | |
| --model "$ROOT/model/flint-nvfp4.gguf" \ | |
| --gpu 0 --moe-strategy hybrid --moe-hybrid-max-fetch 1 \ | |
| --moe-cache-mem 2GiB --moe-cpu-threads 8 --moe-cpu-layers auto \ | |
| --num-tokens "${FLINT_CONTEXT:-8192}" --max-seq-len-override "${FLINT_CONTEXT:-8192}" \ | |
| --max-prefill-length 2048 --max-running-requests 1 --cuda-graph-max-bs 1 \ | |
| --memory-ratio 0.9 --host 127.0.0.1 --port "${FLINT_PORT:-1919}" | |