forked from sophgo/LLM-TPU
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Qwen2] show FTL & TPS in python_demo_parallel
- Loading branch information
1 parent
65911d4
commit 87ce2e8
Showing
2 changed files
with
17 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,15 +59,15 @@ python3 -m dfss [email protected]:/ext_model_information/LLM/LLM-TPU/bmodels | |
git submodule update --init | ||
|
||
cd python_demo_parallel | ||
mkdir build && cd build | ||
cmake .. && make -j8 | ||
python3 pipeline.py --model_path ../compile/qwen2-7b_int4_seq8192_8dev.bmodel --tokenizer_path ../support/token_config/ --devid 0,1,2,3,4,5,6,7 | ||
mkdir build | ||
cd build && cmake .. && make -j8 && cp *cpython* .. && cd .. | ||
python3 pipeline.py --model_path ./qwen2-7b_int4_seq8192_8dev_static.bmodel --tokenizer_path ../support/token_config/ --devid 0,1,2,3,4,5,6,7 | ||
``` | ||
|
||
运行web demo | ||
```shell | ||
pip3 install gradio==3.39.0 mdtex2html==1.2.0 dfss | ||
python3 web_demo.py --model_path ../compile/qwen2-7b_int4_seq8192_8dev.bmodel --tokenizer_path ../support/token_config/ --devid 0,1,2,3,4,5,6,7 | ||
python3 web_demo.py --model_path ./qwen2-7b_int4_seq8192_8dev_static.bmodel --tokenizer_path ../support/token_config/ --devid 0,1,2,3,4,5,6,7 | ||
``` | ||
|
||
## 4. 常见问题 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters