Docs: Refactor Contribution Guide (#2690)

This commit is contained in:
Shi Shuai
2024-12-31 22:11:00 +00:00
committed by GitHub
parent 286cad3ee3
commit 0a765bbccc
5 changed files with 176 additions and 45 deletions

View File

@@ -22,13 +22,7 @@
"source": [
"## Launch A Server\n",
"\n",
"This code block is equivalent to executing \n",
"\n",
"```bash\n",
"python3 -m sglang.launch_server --model-path meta-llama/Llama-3.2-11B-Vision-Instruct \\\n",
" --port 30000 --chat-template llama_3_vision\n",
"```\n",
"in your terminal and wait for the server to be ready.\n",
"Launch the server in your terminal and wait for it to initialize.\n",
"\n",
"Remember to add `--chat-template llama_3_vision` to specify the vision chat template, otherwise the server only supports text.\n",
"We need to specify `--chat-template` for vision language models because the chat template provided in Hugging Face tokenizer only supports text."