lihongjie
commited on
Commit
·
b726122
1
Parent(s):
7796708
tokenizer更新为内置c++ tokenizer
Browse files- main_axcl_api_x86 +2 -2
- main_axcl_x86 +2 -2
- run_image_axcl_x86.sh +1 -1
- run_image_axcl_x86_api.sh +18 -0
main_axcl_api_x86
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:67be73d1a6a4c17ee6b73222d3c5988fa10d2dbcf71515f6dad090a561dcc252
|
| 3 |
+
size 2202296
|
main_axcl_x86
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1113a46767e5cc6c0a53172c5973848a40c65f379a428b3efc64a9fb6f6fb212
|
| 3 |
+
size 2062240
|
run_image_axcl_x86.sh
CHANGED
|
@@ -5,7 +5,7 @@ AXMODEL_DIR=./Qwen3-VL-2B-Instruct-AX650-c128_p1152-int4/
|
|
| 5 |
--axmodel_num 28 \
|
| 6 |
--filename_image_encoder_axmodedl "${AXMODEL_DIR}/Qwen3-VL-2B-Instruct_vision.axmodel" \
|
| 7 |
--use_mmap_load_embed 1 \
|
| 8 |
-
--filename_tokenizer_model "
|
| 9 |
--filename_post_axmodel "${AXMODEL_DIR}/qwen3_vl_text_post.axmodel" \
|
| 10 |
--filename_tokens_embed "${AXMODEL_DIR}/model.embed_tokens.weight.bfloat16.bin" \
|
| 11 |
--tokens_embed_num 151936 \
|
|
|
|
| 5 |
--axmodel_num 28 \
|
| 6 |
--filename_image_encoder_axmodedl "${AXMODEL_DIR}/Qwen3-VL-2B-Instruct_vision.axmodel" \
|
| 7 |
--use_mmap_load_embed 1 \
|
| 8 |
+
--filename_tokenizer_model "qwen3_tokenizer.txt" \
|
| 9 |
--filename_post_axmodel "${AXMODEL_DIR}/qwen3_vl_text_post.axmodel" \
|
| 10 |
--filename_tokens_embed "${AXMODEL_DIR}/model.embed_tokens.weight.bfloat16.bin" \
|
| 11 |
--tokens_embed_num 151936 \
|
run_image_axcl_x86_api.sh
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
AXMODEL_DIR=./Qwen3-VL-2B-Instruct-AX650-c128_p1152-int4/
|
| 2 |
+
|
| 3 |
+
./main_axcl_api_x86 \
|
| 4 |
+
--template_filename_axmodel "${AXMODEL_DIR}/qwen3_vl_text_p128_l%d_together.axmodel" \
|
| 5 |
+
--axmodel_num 28 \
|
| 6 |
+
--filename_image_encoder_axmodedl "${AXMODEL_DIR}/Qwen3-VL-2B-Instruct_vision.axmodel" \
|
| 7 |
+
--use_mmap_load_embed 1 \
|
| 8 |
+
--filename_tokenizer_model "qwen3_tokenizer.txt" \
|
| 9 |
+
--filename_post_axmodel "${AXMODEL_DIR}/qwen3_vl_text_post.axmodel" \
|
| 10 |
+
--filename_tokens_embed "${AXMODEL_DIR}/model.embed_tokens.weight.bfloat16.bin" \
|
| 11 |
+
--tokens_embed_num 151936 \
|
| 12 |
+
--tokens_embed_size 2048 \
|
| 13 |
+
--patch_size 16 \
|
| 14 |
+
--img_width 384 \
|
| 15 |
+
--img_height 384 \
|
| 16 |
+
--vision_start_token_id 151652 \
|
| 17 |
+
--post_config_path post_config.json \
|
| 18 |
+
--devices 0,
|