Skip to content

Commit

Permalink
更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxinwei committed Jan 10, 2025
1 parent 5af3a38 commit 66065a4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
13 changes: 4 additions & 9 deletions doc/topics/gallery/mlc-llm/new-model-arch.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -942,9 +942,7 @@
}
],
"source": [
"!python -m mlc_llm gen_config {temp_dir}/dist/models/gpt2 \\\n",
" --quantization q0f16 --conv-template gpt2 \\\n",
" -o {temp_dir}/dist/gpt2-q0f16-MLC/"
"!python -m mlc_llm gen_config {temp_dir}/dist/models/gpt2 --quantization q0f16 --conv-template gpt2 -o {temp_dir}/dist/gpt2-q0f16-MLC/"
]
},
{
Expand Down Expand Up @@ -1088,8 +1086,7 @@
}
],
"source": [
"!python -m mlc_llm compile {temp_dir}/dist/gpt2-q0f16-MLC/mlc-chat-config.json \\\n",
" --device cuda -o {temp_dir}/dist/gpt2-q0f16-MLC/gpt2-q0f16-cuda.so"
"!python -m mlc_llm compile {temp_dir}/dist/gpt2-q0f16-MLC/mlc-chat-config.json --device cuda -o {temp_dir}/dist/gpt2-q0f16-MLC/gpt2-q0f16-cuda.so"
]
},
{
Expand Down Expand Up @@ -1151,9 +1148,7 @@
}
],
"source": [
"!python -m mlc_llm.testing.debug_chat --model {temp_dir}/dist/gpt2-q0f16-MLC/ \\\n",
" --model-lib {temp_dir}/dist/gpt2-q0f16-MLC/gpt2-q0f16-cuda.so --device cuda \\\n",
" --debug-dir {temp_dir}/debug-gpt2 --generate-len 5 \"Hey how are you doing today?\""
"!python -m mlc_llm.testing.debug_chat --model {temp_dir}/dist/gpt2-q0f16-MLC/ --model-lib {temp_dir}/dist/gpt2-q0f16-MLC/gpt2-q0f16-cuda.so --device cuda --debug-dir {temp_dir}/debug-gpt2 --generate-len 5 \"Hey how are you doing today?\""
]
},
{
Expand Down Expand Up @@ -1239,7 +1234,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.2"
"version": "3.12.7"
}
},
"nbformat": 4,
Expand Down
1 change: 1 addition & 0 deletions doc/topics/other/ultralytics/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
relay
relax
relax-opt
test
```
2 changes: 1 addition & 1 deletion doc/topics/other/ultralytics/test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## 裁剪 YOLOv8n 以探索计算图分割"
"# 裁剪 YOLOv8n 以探索计算图分割"
]
},
{
Expand Down

0 comments on commit 66065a4

Please sign in to comment.