Files
freetoken/docs/install.md
T
Xiaoze Fan 3af9d90ee5 feat: initial open-source release
Co-authored-by: Shuo Yang <andy_yang@berkeley.edu>
2026-08-11 22:53:25 +00:00

878 B

Install

Requirements

  • Linux x86_64, NVIDIA GPU, driver r580+ (CUDA 13)
  • CUDA 13 toolkit with nvcc — compiles the C++ extensions at install time and JIT-compiles CUDA kernels on first use
  • Python >= 3.10 and uv
# install uv
curl -LsSf https://astral.sh/uv/install.sh | sh

Install

git clone https://github.com/FlashML-org/FreeToken.git && cd FreeToken
uv venv # create a virtual environment
uv pip install -e . # install FreeToken in editable mode
# if you need flashinfer/sglang-kernels, install the accel extras: 
uv pip install -e ".[accel]"

Verify

source .venv/bin/activate
ft serve --model ~/path/to/Qwen3.6-35B-A3B
curl http://127.0.0.1:1919/v1/chat/completions -H 'Content-Type: application/json' \
  -d '{"model":"Qwen3.6-35B-A3B","messages":[{"role":"user","content":"hi"}]}'