Go to file
ViperEkura 62db1a70aa switch to Qwen2.5-7B-Instruct 2026-06-14 19:08:43 +08:00
.gitignore add server, config, and scripts 2026-06-14 19:05:18 +08:00
README.md first commit 2026-06-14 18:54:46 +08:00
install.sh add server, config, and scripts 2026-06-14 19:05:18 +08:00
opencode.json switch to Qwen2.5-7B-Instruct 2026-06-14 19:08:43 +08:00
server.py switch to Qwen2.5-7B-Instruct 2026-06-14 19:08:43 +08:00
start.sh add server, config, and scripts 2026-06-14 19:05:18 +08:00

README.md

GLM-4.6V-Flash Server

基于 vLLM 的 OpenAI 兼容 API 服务。

Requirements

  • NVIDIA GPU with ≥44 GiB memory (e.g. L20)
  • CUDA driver ≥570.x (CUDA 12.8)
  • Python 3.12

Installation

bash install.sh

或手动三步:

pip install torch==2.10.0 torchvision==0.25.0 \
  --index-url https://download.pytorch.org/whl/cu128
pip install vllm==0.18.0 flashinfer-python==0.6.6
pip install transformers==5.12.0

启动

python server.py

或指定 GPU

CUDA_VISIBLE_DEVICES=2 python server.py

验证

curl http://localhost:8000/v1/models
curl http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model":"GLM-4.6V-Flash","messages":[{"role":"user","content":"hello"}]}'