zheqiushui commited on
Commit
fd5eade
·
verified ·
1 Parent(s): 8e2bf43

AX8860 llama.cpp package

Browse files
BIN_COMMIT ADDED
@@ -0,0 +1 @@
 
 
1
+ 1970d6c5dd4f6b66207898711a8bab98b3c28bc4
MiniCPM5-2B-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5415f8989bf88a8288f1b55a3cc371af53c07b0faa220a63bd7a990cfaba078
3
+ size 2679710688
PACKAGE.md5 ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ dda465045fe83467593a756c86c7e0be BIN_COMMIT
2
+ 57e37e3fd7758a9e4f7c687cf5c0e257 MiniCPM5-2B-Q8_0.gguf
3
+ a48338b8e4d690f6f044873a61fd9a8b README.md
4
+ 8736973eb22670a9cce4a51d895363c2 WEIGHTS.md5
5
+ d9ab3d8341082333481876b7e5d98d9f bench.sh
6
+ 8b8d2651ef667dc715582f816984997c bin/llama-bench
7
+ 8d6b96f9e6dad8e346382b981fe87934 bin/llama-completion
8
+ 01c89b4563536de4bd013289a157b940 bin/llama-perplexity
9
+ 85a8a5139672934509123b3fadfc395c bin/llama-server
10
+ a2915553c2fb317df8bd10179feb0577 chat_template.jinja
11
+ dc5e2fb7318cd87de1b190ede7879b5b kernels/cpm5_decode1_mx8_kvc_c131072_npu4.axmodel
12
+ 6490fee00ae641abd9846f7ebb4b3628 kernels/cpm5_prefill256_mx8_kvc_c131072_npu4.axmodel
13
+ de2d5f40537e5fb31772adea46bfd4a8 kernels/io.json
14
+ c31176d76f1002dd5509cef2981c1039 kernels/kernels.md5
15
+ 69a48a1054f278eb930912ea805c6694 kernels/manifest.json
16
+ eeb511c2f4363d8b000ea447f8ed243a p4k.txt
17
+ a9830ba8db059611a298151a92e7a7c3 p_chat50.txt
18
+ b96fd0a6a80368e9893af931e408893c p_short.txt
19
+ 6664cda92c3752a28e5bcdc10c491b2a ppl_en.txt
20
+ f9703cbc32ad99410f56dcee5f1504a6 ppl_zh.txt
21
+ e5ce9dab7bea221fce96ce48f8f7111a run.sh
README.md ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: openbmb/MiniCPM5-2B
3
+ library_name: llama.cpp
4
+ ---
5
+
6
+ # MiniCPM5-2B on AX8860 (llama.cpp + ggml-axera)
7
+
8
+ 在爱芯 AX8860 的 NPU 上用 llama.cpp 运行 MiniCPM5-2B 纯文本模型,OpenAI 兼容服务、思考开关与工具调用。
9
+ MiniCPM5-2B on the Axera AX8860 NPU with llama.cpp: text-only decoding, an OpenAI-compatible server, a thinking switch and tool calling.
10
+
11
+ ## 模型 / Model
12
+
13
+ 42 层 Llama(GQA 16 Q / 2 KV,head_dim 128,SwiGLU 6144,vocab 130560,`rope_theta` 5e6,
14
+ 原生上下文 131072,EOS `[1, 130073]`)。包内 GGUF 为官方 Q8_0;F16 GGUF 也可直接加载。
15
+
16
+ ## 性能 / Performance
17
+
18
+ `sh bench.sh` 复现(生成 50 token;短 prompt 只列耗时):
19
+
20
+ | prompt | `-c` | prompt 耗时 / time | decode tokens/s |
21
+ |---|---:|---:|---:|
22
+ | 5 token | 8192 | 0.036 s | 59.50 |
23
+ | 46 token | 8192 | 0.045 s | 59.15 |
24
+ | 3907 token | 8192 | 0.628 s | 51.94 |
25
+ | 5 token | 131072 | 0.036 s | 59.20 |
26
+ | 3907 token | 131072 | 0.628 s | 52.08 |
27
+
28
+ 4k prompt prefill 约 **6219 tokens/s**(`-c 8192`)。
29
+
30
+ ## 困惑度 / Perplexity
31
+
32
+ `sh bench.sh ppl`,同一 GGUF、`-c 512`:
33
+
34
+ | 语言 | `-ub 1` | `-ub 4` |
35
+ |---|---:|---:|
36
+ | 中文 / zh | 16.70 | 16.72 |
37
+ | 英文 / en | 13.33 | 13.44 |
38
+
39
+ ## 快速开始 / Quick start
40
+
41
+ ```sh
42
+ sh run.sh "The capital of France is" 64 # 文本补全 / completion
43
+ sh run.sh -c # 命令行对话 / chat
44
+ sh run.sh -s 8080 # OpenAI 兼容服务 / server
45
+ sh bench.sh # 性能复现 / benchmark
46
+ sh bench.sh ppl # 困惑度 / perplexity
47
+ ```
48
+
49
+ `run.sh -c` 使用 `llama-completion -cnv` 的交互对话,需要真实终端;从管道喂输入时没有 TTY,
50
+ 程序会立即读到 EOF。请直接在终端运行,或用 `script -qec './run.sh -c' /dev/null` 验证。
51
+ Chat mode requires an interactive terminal; piped stdin has no TTY and exits at EOF.
52
+
53
+ 需要 AX8860,SDK V0.5.1 或更新;HF 下载的文件没有执行权限时用 `sh` 调用即可 /
54
+ needs an AX8860 with SDK V0.5.1+; call the scripts with `sh` when the downloaded files are not executable.
55
+
56
+ ## 服务端 / Server
57
+
58
+ ```sh
59
+ sh run.sh -s 8080
60
+ curl http://127.0.0.1:8080/v1/chat/completions -H 'Content-Type: application/json' -d '{
61
+ "messages": [{"role": "user", "content": "用一句话介绍长江"}],
62
+ "chat_template_kwargs": {"enable_thinking": false}
63
+ }'
64
+ ```
65
+
66
+ - 单序列(`-np 1`),prompt cache 与上下文 checkpoint 走统一的序列状态层。
67
+ - 思考开关:`chat_template_kwargs.enable_thinking`;工具调用使用 `--jinja` + 包内
68
+ `chat_template.jinja`。
69
+ - 上下文:一套 kernel 按 `-c` 分配 KV,最大 131072;`CTX`/`CTXCP` 环境变量可调。
70
+
71
+ ## 权重与精度 / Weights
72
+
73
+ - 加载时把 Q8_0 或 F16 GGUF 整块转成 MXFP8(e4m3 + per-32 E8M0 scale),KV 固定 bf16。
74
+ - 不 tie embedding;输出头并入 4 核 decode kernel,一次调用同时给出贪心 argmax 与 top-1024(max/sumexp)采样结果。
75
+ - 包内 kernel:`cpm5_prefill256_mx8_kvc_c131072_npu4.axmodel`(prefill)、
76
+ `cpm5_decode1_mx8_kvc_c131072_npu4.axmodel`(decode + 输出头)。
77
+ - 无 MTP 头,未启用投机解码。
78
+
79
+ ## 来源 / Source
80
+
81
+ https://github.com/ZHEQIUSHUI/llama.cpp
SHA256SUMS ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 0cdb06219b58744420a63b9bee1523816d47bc0edb530114eef33738dcef790d BIN_COMMIT
2
+ c5415f8989bf88a8288f1b55a3cc371af53c07b0faa220a63bd7a990cfaba078 MiniCPM5-2B-Q8_0.gguf
3
+ f072932c96fc449881e88cb5d29dc7c08537b04636df1993a06a34034dd2a869 README.md
4
+ 94dbae1f8d9a4c6563b08c82d18bd08496827e0273ce15352860c179a5a98932 WEIGHTS.md5
5
+ 8d4b00a1ffbb28665215172e794c13e6b681383113b25032d199cddce949236a bench.sh
6
+ 53128c2a1f7bf9f25f2a2c84d75e88b7e1917ec3840b3228333514b3b20998cd bin/llama-bench
7
+ 4ec103e62a8906355a075445ac69d4819d8d09dc9c052cc53a4e08cf0939cfee bin/llama-completion
8
+ 26317fb2bd771274231660a3b175af1987100f3f6a1cf4f98eb8171a15c03d13 bin/llama-perplexity
9
+ e048c1bd275284bc13d6d53d8ed6900809b368e0694b565b2a89fcb238c94255 bin/llama-server
10
+ bc1f78ef8a86b6bdf64a056cf89dd0ac506db4f198ab363d85168e2500ab44dd chat_template.jinja
11
+ c95f6efd8285e118bcdfadd0366b0e5638ebb4d8890c546b558152adcb7ce1ad kernels/cpm5_decode1_mx8_kvc_c131072_npu4.axmodel
12
+ 9410c466ae5367423372e3746eb77a6e57ac823bac38f009793d4438470d3c78 kernels/cpm5_prefill256_mx8_kvc_c131072_npu4.axmodel
13
+ 75575ff544a42cc709844c763f168b4dc02f10a90c814e3d51ec2aaff4432735 kernels/io.json
14
+ af028ae3d80c85f678be2f5130e08c7a080322a202dc8d8e35b8316e7adb36e2 kernels/kernels.md5
15
+ 57c9bc5cb9299c67c593ad6587df0e6b157506f0f28a9a2dfcb668c42b552e91 kernels/manifest.json
16
+ 454ba7e50ff896104d01fd052827ddb15b9a0221b9284eaa1440fff28df6d63f p4k.txt
17
+ f8c1fe32f04db9a92ba5be13b738d194f5ec906953de0cdad269e2bde369ad22 p_chat50.txt
18
+ 0b8b55f996e7040d630079da36b3f1e0f08dffa8d014c9e5dada28b80396cbc4 p_short.txt
19
+ e72ffc65b015a2105e35bf87cd15e0799e173d07ed9ad403bb9a2df3fe17cde0 ppl_en.txt
20
+ 72ecd62016d090375250fbdbcd5a10f1b2dc26c67d9bc410147178036f872c70 ppl_zh.txt
21
+ 3c54e163033f24202febbb2b8e7d46dab5e6187c36935fa7f56790c8bcaedc47 run.sh
WEIGHTS.md5 ADDED
@@ -0,0 +1 @@
 
 
1
+ 57e37e3fd7758a9e4f7c687cf5c0e257 MiniCPM5-2B-Q8_0.gguf
bench.sh ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ # Reproduce the release performance table on an AX8860 board.
3
+ # sh bench.sh short / 50-token / 4k-token prompts, prefill and decode
4
+ # sh bench.sh ppl perplexity, -c 512, -ub 1 and -ub 4, Chinese and English
5
+ set -u
6
+ H=$(cd "$(dirname "$0")" && pwd)
7
+ export LD_LIBRARY_PATH=/opt/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
8
+ G=${GGUF:-$H/MiniCPM5-2B-Q8_0.gguf}
9
+ K=${GGML_AXERA_KERNEL_DIR:-$H/kernels}
10
+ BIN=$H/bin/llama-completion
11
+ BINPPL=$H/bin/llama-perplexity
12
+ D=$H/bench-logs
13
+ mkdir -p "$D"
14
+ CTX=${CTX:-8192}
15
+ MAXCTX=${MAXCTX:-131072}
16
+
17
+ extract() {
18
+ kind=$1
19
+ line=$2
20
+ case "$kind" in
21
+ ms) printf '%s\n' "$line" | sed -n 's/.*= *\([0-9][0-9.]*\) ms.*/\1/p' ;;
22
+ tps) printf '%s\n' "$line" | sed -n 's/.*, *\([0-9][0-9.]*\) tokens per second.*/\1/p' ;;
23
+ n) printf '%s\n' "$line" | sed -n 's/.*ms \/ *\([0-9][0-9]*\) tokens.*/\1/p' ;;
24
+ esac
25
+ }
26
+
27
+ run_case() {
28
+ tag=$1
29
+ ctx=$2
30
+ prompt=$3
31
+ log=$D/$tag.log
32
+ start=$(date +%s)
33
+ GGML_AXERA_KERNEL_DIR=$K "$BIN" -m "$G" -ngl 99 -c "$ctx" -b 4096 -ub 4096 -f "$prompt" \
34
+ -n 50 --temp 0 -no-cnv --no-display-prompt > "$log" 2>&1
35
+ rc=$?
36
+ elapsed=$(( $(date +%s) - start ))
37
+ pms=$(extract ms "$(grep -a 'prompt eval time' "$log" | tail -1)")
38
+ ptps=$(extract tps "$(grep -a 'prompt eval time' "$log" | tail -1)")
39
+ ptok=$(extract n "$(grep -a 'prompt eval time' "$log" | tail -1)")
40
+ dtps=$(extract tps "$(grep -a ' eval time' "$log" | tail -1)")
41
+ [ -n "$pms" ] || pms=NA
42
+ [ -n "$ptps" ] || ptps=NA
43
+ [ -n "$ptok" ] || ptok=NA
44
+ [ -n "$dtps" ] || dtps=NA
45
+ printf 'RESULT tag=%-16s c=%-6s prompt=%-12s prompt_tokens=%-5s prompt_ms=%-9s prompt_tok_s=%-9s decode_tok_s=%-9s elapsed_s=%-4s rc=%s\n' \
46
+ "$tag" "$ctx" "$(basename "$prompt")" "$ptok" "$pms" "$ptps" "$dtps" "$elapsed" "$rc"
47
+ }
48
+
49
+ run_ppl() {
50
+ for lang in zh en; do
51
+ for ub in 1 4; do
52
+ log=$D/ppl.$lang.ub$ub.log
53
+ GGML_AXERA_KERNEL_DIR=$K "$BINPPL" -m "$G" -ngl 99 -c 512 --chunks 2 -b 512 -ub "$ub" \
54
+ -f "$H/ppl_$lang.txt" > "$log" 2>&1
55
+ rc=$?
56
+ ppl=$(grep -a 'Final estimate: PPL' "$log" | tail -1 | sed -n 's/.*PPL = *\([0-9][0-9.]*\).*/\1/p')
57
+ [ -n "$ppl" ] || ppl=NA
58
+ printf 'PPL_RESULT lang=%s ub=%s ppl=%s rc=%s\n' "$lang" "$ub" "$ppl" "$rc"
59
+ done
60
+ done
61
+ }
62
+
63
+ case "${1:-}" in
64
+ ppl) run_ppl; exit $? ;;
65
+ esac
66
+
67
+ echo "BENCH_META package=$H"
68
+ echo "BENCH_META completion_md5=$(md5sum "$BIN" | awk '{print $1}')"
69
+ echo "BENCH_META kernels_md5=$(md5sum "$K/kernels.md5" 2>/dev/null | awk '{print $1}')"
70
+ echo "BENCH_META bin_commit=$(cat "$H/BIN_COMMIT" 2>/dev/null | tr -d '\n')"
71
+ echo "BENCH_META llama_version=$("$BIN" --version 2>&1 | tr '\n' ' ' | sed 's/ */ /g')"
72
+ echo "BENCH_WARMUP one unmeasured 4k run, 8 tokens"
73
+ GGML_AXERA_KERNEL_DIR=$K "$BIN" -m "$G" -ngl 99 -c 8192 -b 4096 -ub 4096 -f "$H/p4k.txt" \
74
+ -n 8 --temp 0 -no-cnv --no-display-prompt > "$D/warmup.log" 2>&1
75
+ echo "BENCH_WARMUP rc=$?"
76
+
77
+ run_case short50_c8192 "$CTX" "$H/p_short.txt"
78
+ run_case chat50_c8192 "$CTX" "$H/p_chat50.txt"
79
+ run_case p4k50_c8192 "$CTX" "$H/p4k.txt"
80
+ run_case short50_cmax "$MAXCTX" "$H/p_short.txt"
81
+ run_case p4k50_cmax "$MAXCTX" "$H/p4k.txt"
82
+ echo BENCH_DONE
bin/llama-bench ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53128c2a1f7bf9f25f2a2c84d75e88b7e1917ec3840b3228333514b3b20998cd
3
+ size 13277872
bin/llama-completion ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ec103e62a8906355a075445ac69d4819d8d09dc9c052cc53a4e08cf0939cfee
3
+ size 13132664
bin/llama-perplexity ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26317fb2bd771274231660a3b175af1987100f3f6a1cf4f98eb8171a15c03d13
3
+ size 13201856
bin/llama-server ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e048c1bd275284bc13d6d53d8ed6900809b368e0694b565b2a89fcb238c94255
3
+ size 16931816
chat_template.jinja ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {{- bos_token }}{%- if tools %}
2
+ {%- set tool_definitions %}
3
+ {{- "# Tools\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
4
+ {%- for tool in tools %}
5
+ {{- "\n" }}
6
+ {{- tool | tojson(ensure_ascii=False) }}
7
+ {%- endfor %}
8
+ {{- '\n</tools>\n\nTool usage guidelines:\n- You may call zero or more functions. If no function calls are needed, just answer normally and do not include any <function ... </function>.\n- When calling a function, return an XML object within <function ... </function> using:\n<function name="function-name"><param name="param-name">param-value</param></function>\n- param-value may be multi-line. If it contains <, & or newline characters, wrap it in a CDATA block: <param name="param-name"><![CDATA[...multi-line value...]]></param>' }}
9
+ {%- endset %}
10
+
11
+ {{- '<|im_start|>system\n' }}
12
+ {%- if messages[0].role == 'system' %}
13
+ {%- if '<tool_def_sep>' in messages[0].content %}
14
+ {{- messages[0].content.replace('<tool_def_sep>', tool_definitions) }}
15
+ {%- else %}
16
+ {{- messages[0].content + '\n\n' + tool_definitions }}
17
+ {%- endif %}
18
+ {%- else %}
19
+ {{- tool_definitions.lstrip() }}
20
+ {%- endif %}
21
+ {{- '<|im_end|>\n' }}
22
+ {%- else %}
23
+ {%- if messages[0].role == 'system' %}
24
+ {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}
25
+ {%- endif %}
26
+ {%- endif %}
27
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
28
+ {%- for message in messages[::-1] %}
29
+ {%- set index = (messages|length - 1) - loop.index0 %}
30
+ {%- if ns.multi_step_tool and message.role == "user" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}
31
+ {%- set ns.multi_step_tool = false %}
32
+ {%- set ns.last_query_index = index %}
33
+ {%- endif %}
34
+ {%- endfor %}
35
+ {%- for message in messages %}
36
+ {%- if message.content is string %}
37
+ {%- set content = message.content %}
38
+ {%- else %}
39
+ {%- set content = '' %}
40
+ {%- endif %}
41
+ {%- if (message.role == "user") or (message.role == "system" and not loop.first) %}
42
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
43
+ {%- elif message.role == "assistant" %}
44
+ {%- set reasoning_content = '' %}
45
+ {%- if message.reasoning_content is string %}
46
+ {%- set reasoning_content = message.reasoning_content %}
47
+ {%- else %}
48
+ {%- if '</think>' in content %}
49
+ {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
50
+ {%- set content = content.split('</think>')[-1].lstrip('\n') %}
51
+ {%- endif %}
52
+ {%- endif %}
53
+
54
+ {%- if reasoning_content %}
55
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }}
56
+ {%- elif '<think>' not in content and '</think>' not in content %}
57
+ {{- '<|im_start|>' + message.role + '\n<think>\n\n</think>\n\n' + content.lstrip('\n') }}
58
+ {%- else %}
59
+ {{- '<|im_start|>' + message.role + '\n' + content }}
60
+ {%- endif %}
61
+
62
+ {%- if message.tool_calls %}
63
+ {%- for tool_call in message.tool_calls %}
64
+ {%- if (loop.first and content) or (not loop.first) %}
65
+ {{- '\n' }}
66
+ {%- endif %}
67
+ {%- if tool_call.function %}
68
+ {%- set tool_call = tool_call.function %}
69
+ {%- endif %}
70
+ {{- '<function name="' ~ tool_call.name ~ '">' }}
71
+ {%- if tool_call.arguments %}
72
+ {%- set args_dict = tool_call.arguments %}
73
+ {%- for param_name, param_value in args_dict.items() %}
74
+ {{- '<param name="' ~ param_name ~ '">' }}
75
+ {%- if param_value is string and ('<' in param_value or '&' in param_value or '\n' in param_value) %}
76
+ {{- '<![CDATA[' + param_value + ']]>' }}
77
+ {%- else %}
78
+ {{- param_value }}
79
+ {%- endif %}
80
+ {{- '</param>' }}
81
+ {%- endfor %}
82
+ {%- endif %}
83
+ {{- '</function>' }}
84
+ {%- endfor %}
85
+ {%- endif %}
86
+ {{- '<|im_end|>\n' }}
87
+ {%- elif message.role == "tool" %}
88
+ {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
89
+ {{- '<|im_start|>user' }}
90
+ {%- endif %}
91
+ {{- '\n<tool_response>\n' }}
92
+ {%- if message.content is string %}
93
+ {{- content }}
94
+ {%- else %}
95
+ {{- message.content | tojson(ensure_ascii=False) }}
96
+ {%- endif %}
97
+ {{- '\n</tool_response>' }}
98
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
99
+ {{- '<|im_end|>\n' }}
100
+ {%- endif %}
101
+ {%- endif %}
102
+ {%- endfor %}
103
+ {%- if add_generation_prompt %}
104
+ {{- '<|im_start|>assistant\n' }}
105
+ {%- if enable_thinking is defined %}
106
+ {%- if enable_thinking is false %}
107
+ {{- '<think>\n\n</think>\n\n' }}
108
+ {%- elif enable_thinking is true %}
109
+ {{- '<think>\n' }}
110
+ {%- endif %}
111
+ {%- endif %}
112
+ {%- endif %}
kernels/cpm5_decode1_mx8_kvc_c131072_npu4.axmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c95f6efd8285e118bcdfadd0366b0e5638ebb4d8890c546b558152adcb7ce1ad
3
+ size 14713920
kernels/cpm5_prefill256_mx8_kvc_c131072_npu4.axmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9410c466ae5367423372e3746eb77a6e57ac823bac38f009793d4438470d3c78
3
+ size 25000337
kernels/io.json ADDED
@@ -0,0 +1,1978 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cpm5_prefill256_mx8_kvc_c131072_npu4.axmodel": {
3
+ "in": [
4
+ [
5
+ "x",
6
+ 1048576,
7
+ 9,
8
+ [
9
+ 256,
10
+ 2048
11
+ ]
12
+ ],
13
+ [
14
+ "position_ids",
15
+ 1024,
16
+ 6,
17
+ [
18
+ 256
19
+ ]
20
+ ],
21
+ [
22
+ "indptr",
23
+ 8,
24
+ 6,
25
+ [
26
+ 2
27
+ ]
28
+ ],
29
+ [
30
+ "indices",
31
+ 2048,
32
+ 6,
33
+ [
34
+ 512
35
+ ]
36
+ ],
37
+ [
38
+ "last_page_len",
39
+ 4,
40
+ 6,
41
+ [
42
+ 1
43
+ ]
44
+ ],
45
+ [
46
+ "cache_location",
47
+ 8,
48
+ 6,
49
+ [
50
+ 2
51
+ ]
52
+ ],
53
+ [
54
+ "valid_tokens",
55
+ 4,
56
+ 6,
57
+ [
58
+ 1
59
+ ]
60
+ ],
61
+ [
62
+ "head_on",
63
+ 4,
64
+ 6,
65
+ [
66
+ 1
67
+ ]
68
+ ],
69
+ [
70
+ "out_row",
71
+ 16,
72
+ 6,
73
+ [
74
+ 4
75
+ ]
76
+ ],
77
+ [
78
+ "nout",
79
+ 4,
80
+ 6,
81
+ [
82
+ 1
83
+ ]
84
+ ],
85
+ [
86
+ "norm_w",
87
+ 8192,
88
+ 3,
89
+ [
90
+ 2048
91
+ ]
92
+ ],
93
+ [
94
+ "w_lm",
95
+ 267386880,
96
+ 11,
97
+ [
98
+ 130560,
99
+ 2048
100
+ ]
101
+ ],
102
+ [
103
+ "s_lm",
104
+ 8355840,
105
+ 1,
106
+ [
107
+ 130560,
108
+ 64
109
+ ]
110
+ ],
111
+ [
112
+ "b0_attn_cos",
113
+ 33554432,
114
+ 3,
115
+ [
116
+ 1,
117
+ 131072,
118
+ 64
119
+ ]
120
+ ],
121
+ [
122
+ "b0_attn_sin",
123
+ 33554432,
124
+ 3,
125
+ [
126
+ 1,
127
+ 131072,
128
+ 64
129
+ ]
130
+ ],
131
+ [
132
+ "b0_attn_w_k",
133
+ 22020096,
134
+ 11,
135
+ [
136
+ 42,
137
+ 256,
138
+ 2048
139
+ ]
140
+ ],
141
+ [
142
+ "b0_attn_w_norm_attn",
143
+ 172032,
144
+ 9,
145
+ [
146
+ 42,
147
+ 2048
148
+ ]
149
+ ],
150
+ [
151
+ "b0_attn_w_o",
152
+ 176160768,
153
+ 11,
154
+ [
155
+ 42,
156
+ 2048,
157
+ 2048
158
+ ]
159
+ ],
160
+ [
161
+ "b0_attn_w_q",
162
+ 176160768,
163
+ 11,
164
+ [
165
+ 42,
166
+ 2048,
167
+ 2048
168
+ ]
169
+ ],
170
+ [
171
+ "b0_attn_w_scale2_k",
172
+ 1344,
173
+ 3,
174
+ [
175
+ 42,
176
+ 8
177
+ ]
178
+ ],
179
+ [
180
+ "b0_attn_w_scale2_o",
181
+ 1344,
182
+ 3,
183
+ [
184
+ 42,
185
+ 8
186
+ ]
187
+ ],
188
+ [
189
+ "b0_attn_w_scale2_q",
190
+ 1344,
191
+ 3,
192
+ [
193
+ 42,
194
+ 8
195
+ ]
196
+ ],
197
+ [
198
+ "b0_attn_w_scale2_v",
199
+ 1344,
200
+ 3,
201
+ [
202
+ 42,
203
+ 8
204
+ ]
205
+ ],
206
+ [
207
+ "b0_attn_w_scale_k",
208
+ 688128,
209
+ 1,
210
+ [
211
+ 42,
212
+ 256,
213
+ 64
214
+ ]
215
+ ],
216
+ [
217
+ "b0_attn_w_scale_o",
218
+ 5505024,
219
+ 1,
220
+ [
221
+ 42,
222
+ 2048,
223
+ 64
224
+ ]
225
+ ],
226
+ [
227
+ "b0_attn_w_scale_q",
228
+ 5505024,
229
+ 1,
230
+ [
231
+ 42,
232
+ 2048,
233
+ 64
234
+ ]
235
+ ],
236
+ [
237
+ "b0_attn_w_scale_v",
238
+ 688128,
239
+ 1,
240
+ [
241
+ 42,
242
+ 256,
243
+ 64
244
+ ]
245
+ ],
246
+ [
247
+ "b0_attn_w_v",
248
+ 22020096,
249
+ 11,
250
+ [
251
+ 42,
252
+ 256,
253
+ 2048
254
+ ]
255
+ ],
256
+ [
257
+ "b0_attn_w_zeropoint_k",
258
+ 1344,
259
+ 9,
260
+ [
261
+ 42,
262
+ 16
263
+ ]
264
+ ],
265
+ [
266
+ "b0_attn_w_zeropoint_o",
267
+ 1344,
268
+ 9,
269
+ [
270
+ 42,
271
+ 16
272
+ ]
273
+ ],
274
+ [
275
+ "b0_attn_w_zeropoint_q",
276
+ 1344,
277
+ 9,
278
+ [
279
+ 42,
280
+ 16
281
+ ]
282
+ ],
283
+ [
284
+ "b0_attn_w_zeropoint_v",
285
+ 1344,
286
+ 9,
287
+ [
288
+ 42,
289
+ 16
290
+ ]
291
+ ],
292
+ [
293
+ "b0_mlp_input_permutation",
294
+ 1344,
295
+ 6,
296
+ [
297
+ 42,
298
+ 8
299
+ ]
300
+ ],
301
+ [
302
+ "b0_mlp_w1",
303
+ 528482304,
304
+ 11,
305
+ [
306
+ 42,
307
+ 6144,
308
+ 2048
309
+ ]
310
+ ],
311
+ [
312
+ "b0_mlp_w2",
313
+ 528482304,
314
+ 11,
315
+ [
316
+ 42,
317
+ 6144,
318
+ 2048
319
+ ]
320
+ ],
321
+ [
322
+ "b0_mlp_w3",
323
+ 528482304,
324
+ 11,
325
+ [
326
+ 42,
327
+ 2048,
328
+ 6144
329
+ ]
330
+ ],
331
+ [
332
+ "b0_mlp_w_norm",
333
+ 172032,
334
+ 9,
335
+ [
336
+ 42,
337
+ 2048
338
+ ]
339
+ ],
340
+ [
341
+ "b0_mlp_w_scale1",
342
+ 16515072,
343
+ 1,
344
+ [
345
+ 42,
346
+ 6144,
347
+ 64
348
+ ]
349
+ ],
350
+ [
351
+ "b0_mlp_w_scale2",
352
+ 16515072,
353
+ 1,
354
+ [
355
+ 42,
356
+ 6144,
357
+ 64
358
+ ]
359
+ ],
360
+ [
361
+ "b0_mlp_w_scale2_1",
362
+ 1344,
363
+ 3,
364
+ [
365
+ 42,
366
+ 8
367
+ ]
368
+ ],
369
+ [
370
+ "b0_mlp_w_scale2_2",
371
+ 1344,
372
+ 3,
373
+ [
374
+ 42,
375
+ 8
376
+ ]
377
+ ],
378
+ [
379
+ "b0_mlp_w_scale2_3",
380
+ 1344,
381
+ 3,
382
+ [
383
+ 42,
384
+ 8
385
+ ]
386
+ ],
387
+ [
388
+ "b0_mlp_w_scale3",
389
+ 16515072,
390
+ 1,
391
+ [
392
+ 42,
393
+ 2048,
394
+ 192
395
+ ]
396
+ ],
397
+ [
398
+ "b0_mlp_w_zp_scale1",
399
+ 1344,
400
+ 9,
401
+ [
402
+ 42,
403
+ 16
404
+ ]
405
+ ],
406
+ [
407
+ "b0_mlp_w_zp_scale2",
408
+ 1344,
409
+ 9,
410
+ [
411
+ 42,
412
+ 16
413
+ ]
414
+ ],
415
+ [
416
+ "b0_mlp_w_zp_scale3",
417
+ 1344,
418
+ 9,
419
+ [
420
+ 42,
421
+ 16
422
+ ]
423
+ ],
424
+ [
425
+ "b0_kv0",
426
+ 134217728,
427
+ 9,
428
+ [
429
+ 512,
430
+ 2,
431
+ 256,
432
+ 2,
433
+ 128
434
+ ]
435
+ ],
436
+ [
437
+ "b0_kv1",
438
+ 134217728,
439
+ 9,
440
+ [
441
+ 512,
442
+ 2,
443
+ 256,
444
+ 2,
445
+ 128
446
+ ]
447
+ ],
448
+ [
449
+ "b0_kv2",
450
+ 134217728,
451
+ 9,
452
+ [
453
+ 512,
454
+ 2,
455
+ 256,
456
+ 2,
457
+ 128
458
+ ]
459
+ ],
460
+ [
461
+ "b0_kv3",
462
+ 134217728,
463
+ 9,
464
+ [
465
+ 512,
466
+ 2,
467
+ 256,
468
+ 2,
469
+ 128
470
+ ]
471
+ ],
472
+ [
473
+ "b0_kv4",
474
+ 134217728,
475
+ 9,
476
+ [
477
+ 512,
478
+ 2,
479
+ 256,
480
+ 2,
481
+ 128
482
+ ]
483
+ ],
484
+ [
485
+ "b0_kv5",
486
+ 134217728,
487
+ 9,
488
+ [
489
+ 512,
490
+ 2,
491
+ 256,
492
+ 2,
493
+ 128
494
+ ]
495
+ ],
496
+ [
497
+ "b0_kv6",
498
+ 134217728,
499
+ 9,
500
+ [
501
+ 512,
502
+ 2,
503
+ 256,
504
+ 2,
505
+ 128
506
+ ]
507
+ ],
508
+ [
509
+ "b0_kv7",
510
+ 134217728,
511
+ 9,
512
+ [
513
+ 512,
514
+ 2,
515
+ 256,
516
+ 2,
517
+ 128
518
+ ]
519
+ ],
520
+ [
521
+ "b0_kv8",
522
+ 134217728,
523
+ 9,
524
+ [
525
+ 512,
526
+ 2,
527
+ 256,
528
+ 2,
529
+ 128
530
+ ]
531
+ ],
532
+ [
533
+ "b0_kv9",
534
+ 134217728,
535
+ 9,
536
+ [
537
+ 512,
538
+ 2,
539
+ 256,
540
+ 2,
541
+ 128
542
+ ]
543
+ ],
544
+ [
545
+ "b0_kv10",
546
+ 134217728,
547
+ 9,
548
+ [
549
+ 512,
550
+ 2,
551
+ 256,
552
+ 2,
553
+ 128
554
+ ]
555
+ ],
556
+ [
557
+ "b0_kv11",
558
+ 134217728,
559
+ 9,
560
+ [
561
+ 512,
562
+ 2,
563
+ 256,
564
+ 2,
565
+ 128
566
+ ]
567
+ ],
568
+ [
569
+ "b0_kv12",
570
+ 134217728,
571
+ 9,
572
+ [
573
+ 512,
574
+ 2,
575
+ 256,
576
+ 2,
577
+ 128
578
+ ]
579
+ ],
580
+ [
581
+ "b0_kv13",
582
+ 134217728,
583
+ 9,
584
+ [
585
+ 512,
586
+ 2,
587
+ 256,
588
+ 2,
589
+ 128
590
+ ]
591
+ ],
592
+ [
593
+ "b0_kv14",
594
+ 134217728,
595
+ 9,
596
+ [
597
+ 512,
598
+ 2,
599
+ 256,
600
+ 2,
601
+ 128
602
+ ]
603
+ ],
604
+ [
605
+ "b0_kv15",
606
+ 134217728,
607
+ 9,
608
+ [
609
+ 512,
610
+ 2,
611
+ 256,
612
+ 2,
613
+ 128
614
+ ]
615
+ ],
616
+ [
617
+ "b0_kv16",
618
+ 134217728,
619
+ 9,
620
+ [
621
+ 512,
622
+ 2,
623
+ 256,
624
+ 2,
625
+ 128
626
+ ]
627
+ ],
628
+ [
629
+ "b0_kv17",
630
+ 134217728,
631
+ 9,
632
+ [
633
+ 512,
634
+ 2,
635
+ 256,
636
+ 2,
637
+ 128
638
+ ]
639
+ ],
640
+ [
641
+ "b0_kv18",
642
+ 134217728,
643
+ 9,
644
+ [
645
+ 512,
646
+ 2,
647
+ 256,
648
+ 2,
649
+ 128
650
+ ]
651
+ ],
652
+ [
653
+ "b0_kv19",
654
+ 134217728,
655
+ 9,
656
+ [
657
+ 512,
658
+ 2,
659
+ 256,
660
+ 2,
661
+ 128
662
+ ]
663
+ ],
664
+ [
665
+ "b0_kv20",
666
+ 134217728,
667
+ 9,
668
+ [
669
+ 512,
670
+ 2,
671
+ 256,
672
+ 2,
673
+ 128
674
+ ]
675
+ ],
676
+ [
677
+ "b0_kv21",
678
+ 134217728,
679
+ 9,
680
+ [
681
+ 512,
682
+ 2,
683
+ 256,
684
+ 2,
685
+ 128
686
+ ]
687
+ ],
688
+ [
689
+ "b0_kv22",
690
+ 134217728,
691
+ 9,
692
+ [
693
+ 512,
694
+ 2,
695
+ 256,
696
+ 2,
697
+ 128
698
+ ]
699
+ ],
700
+ [
701
+ "b0_kv23",
702
+ 134217728,
703
+ 9,
704
+ [
705
+ 512,
706
+ 2,
707
+ 256,
708
+ 2,
709
+ 128
710
+ ]
711
+ ],
712
+ [
713
+ "b0_kv24",
714
+ 134217728,
715
+ 9,
716
+ [
717
+ 512,
718
+ 2,
719
+ 256,
720
+ 2,
721
+ 128
722
+ ]
723
+ ],
724
+ [
725
+ "b0_kv25",
726
+ 134217728,
727
+ 9,
728
+ [
729
+ 512,
730
+ 2,
731
+ 256,
732
+ 2,
733
+ 128
734
+ ]
735
+ ],
736
+ [
737
+ "b0_kv26",
738
+ 134217728,
739
+ 9,
740
+ [
741
+ 512,
742
+ 2,
743
+ 256,
744
+ 2,
745
+ 128
746
+ ]
747
+ ],
748
+ [
749
+ "b0_kv27",
750
+ 134217728,
751
+ 9,
752
+ [
753
+ 512,
754
+ 2,
755
+ 256,
756
+ 2,
757
+ 128
758
+ ]
759
+ ],
760
+ [
761
+ "b0_kv28",
762
+ 134217728,
763
+ 9,
764
+ [
765
+ 512,
766
+ 2,
767
+ 256,
768
+ 2,
769
+ 128
770
+ ]
771
+ ],
772
+ [
773
+ "b0_kv29",
774
+ 134217728,
775
+ 9,
776
+ [
777
+ 512,
778
+ 2,
779
+ 256,
780
+ 2,
781
+ 128
782
+ ]
783
+ ],
784
+ [
785
+ "b0_kv30",
786
+ 134217728,
787
+ 9,
788
+ [
789
+ 512,
790
+ 2,
791
+ 256,
792
+ 2,
793
+ 128
794
+ ]
795
+ ],
796
+ [
797
+ "b0_kv31",
798
+ 134217728,
799
+ 9,
800
+ [
801
+ 512,
802
+ 2,
803
+ 256,
804
+ 2,
805
+ 128
806
+ ]
807
+ ],
808
+ [
809
+ "b0_kv32",
810
+ 134217728,
811
+ 9,
812
+ [
813
+ 512,
814
+ 2,
815
+ 256,
816
+ 2,
817
+ 128
818
+ ]
819
+ ],
820
+ [
821
+ "b0_kv33",
822
+ 134217728,
823
+ 9,
824
+ [
825
+ 512,
826
+ 2,
827
+ 256,
828
+ 2,
829
+ 128
830
+ ]
831
+ ],
832
+ [
833
+ "b0_kv34",
834
+ 134217728,
835
+ 9,
836
+ [
837
+ 512,
838
+ 2,
839
+ 256,
840
+ 2,
841
+ 128
842
+ ]
843
+ ],
844
+ [
845
+ "b0_kv35",
846
+ 134217728,
847
+ 9,
848
+ [
849
+ 512,
850
+ 2,
851
+ 256,
852
+ 2,
853
+ 128
854
+ ]
855
+ ],
856
+ [
857
+ "b0_kv36",
858
+ 134217728,
859
+ 9,
860
+ [
861
+ 512,
862
+ 2,
863
+ 256,
864
+ 2,
865
+ 128
866
+ ]
867
+ ],
868
+ [
869
+ "b0_kv37",
870
+ 134217728,
871
+ 9,
872
+ [
873
+ 512,
874
+ 2,
875
+ 256,
876
+ 2,
877
+ 128
878
+ ]
879
+ ],
880
+ [
881
+ "b0_kv38",
882
+ 134217728,
883
+ 9,
884
+ [
885
+ 512,
886
+ 2,
887
+ 256,
888
+ 2,
889
+ 128
890
+ ]
891
+ ],
892
+ [
893
+ "b0_kv39",
894
+ 134217728,
895
+ 9,
896
+ [
897
+ 512,
898
+ 2,
899
+ 256,
900
+ 2,
901
+ 128
902
+ ]
903
+ ],
904
+ [
905
+ "b0_kv40",
906
+ 134217728,
907
+ 9,
908
+ [
909
+ 512,
910
+ 2,
911
+ 256,
912
+ 2,
913
+ 128
914
+ ]
915
+ ],
916
+ [
917
+ "b0_kv41",
918
+ 134217728,
919
+ 9,
920
+ [
921
+ 512,
922
+ 2,
923
+ 256,
924
+ 2,
925
+ 128
926
+ ]
927
+ ]
928
+ ],
929
+ "out": [
930
+ [
931
+ "output",
932
+ 1048576,
933
+ 9,
934
+ [
935
+ 256,
936
+ 2048
937
+ ]
938
+ ],
939
+ [
940
+ "ids",
941
+ 16,
942
+ 6,
943
+ [
944
+ 4
945
+ ]
946
+ ],
947
+ [
948
+ "top_logits",
949
+ 16,
950
+ 3,
951
+ [
952
+ 4
953
+ ]
954
+ ],
955
+ [
956
+ "logits",
957
+ 2088960,
958
+ 3,
959
+ [
960
+ 4,
961
+ 130560
962
+ ]
963
+ ]
964
+ ]
965
+ },
966
+ "cpm5_decode1_mx8_kvc_c131072_npu4.axmodel": {
967
+ "in": [
968
+ [
969
+ "x",
970
+ 4096,
971
+ 9,
972
+ [
973
+ 1,
974
+ 2048
975
+ ]
976
+ ],
977
+ [
978
+ "position_ids",
979
+ 4,
980
+ 6,
981
+ [
982
+ 1
983
+ ]
984
+ ],
985
+ [
986
+ "indptr",
987
+ 8,
988
+ 6,
989
+ [
990
+ 2
991
+ ]
992
+ ],
993
+ [
994
+ "indices",
995
+ 2048,
996
+ 6,
997
+ [
998
+ 512
999
+ ]
1000
+ ],
1001
+ [
1002
+ "last_page_len",
1003
+ 4,
1004
+ 6,
1005
+ [
1006
+ 1
1007
+ ]
1008
+ ],
1009
+ [
1010
+ "cache_location",
1011
+ 8,
1012
+ 6,
1013
+ [
1014
+ 2
1015
+ ]
1016
+ ],
1017
+ [
1018
+ "head",
1019
+ 4,
1020
+ 6,
1021
+ [
1022
+ 1
1023
+ ]
1024
+ ],
1025
+ [
1026
+ "topk_on",
1027
+ 4,
1028
+ 6,
1029
+ [
1030
+ 1
1031
+ ]
1032
+ ],
1033
+ [
1034
+ "norm_w",
1035
+ 8192,
1036
+ 3,
1037
+ [
1038
+ 2048
1039
+ ]
1040
+ ],
1041
+ [
1042
+ "w_lm",
1043
+ 267386880,
1044
+ 11,
1045
+ [
1046
+ 130560,
1047
+ 2048
1048
+ ]
1049
+ ],
1050
+ [
1051
+ "s_lm",
1052
+ 8355840,
1053
+ 1,
1054
+ [
1055
+ 130560,
1056
+ 64
1057
+ ]
1058
+ ],
1059
+ [
1060
+ "bias",
1061
+ 522240,
1062
+ 3,
1063
+ [
1064
+ 130560
1065
+ ]
1066
+ ],
1067
+ [
1068
+ "mul_pos",
1069
+ 522240,
1070
+ 3,
1071
+ [
1072
+ 130560
1073
+ ]
1074
+ ],
1075
+ [
1076
+ "mul_neg",
1077
+ 522240,
1078
+ 3,
1079
+ [
1080
+ 130560
1081
+ ]
1082
+ ],
1083
+ [
1084
+ "temp",
1085
+ 4,
1086
+ 3,
1087
+ [
1088
+ 1
1089
+ ]
1090
+ ],
1091
+ [
1092
+ "b0_attn_cos",
1093
+ 33554432,
1094
+ 3,
1095
+ [
1096
+ 1,
1097
+ 131072,
1098
+ 64
1099
+ ]
1100
+ ],
1101
+ [
1102
+ "b0_attn_sin",
1103
+ 33554432,
1104
+ 3,
1105
+ [
1106
+ 1,
1107
+ 131072,
1108
+ 64
1109
+ ]
1110
+ ],
1111
+ [
1112
+ "b0_attn_w_k",
1113
+ 22020096,
1114
+ 11,
1115
+ [
1116
+ 42,
1117
+ 256,
1118
+ 2048
1119
+ ]
1120
+ ],
1121
+ [
1122
+ "b0_attn_w_norm_attn",
1123
+ 172032,
1124
+ 9,
1125
+ [
1126
+ 42,
1127
+ 2048
1128
+ ]
1129
+ ],
1130
+ [
1131
+ "b0_attn_w_o",
1132
+ 176160768,
1133
+ 11,
1134
+ [
1135
+ 42,
1136
+ 2048,
1137
+ 2048
1138
+ ]
1139
+ ],
1140
+ [
1141
+ "b0_attn_w_q",
1142
+ 176160768,
1143
+ 11,
1144
+ [
1145
+ 42,
1146
+ 2048,
1147
+ 2048
1148
+ ]
1149
+ ],
1150
+ [
1151
+ "b0_attn_w_scale2_k",
1152
+ 1344,
1153
+ 3,
1154
+ [
1155
+ 42,
1156
+ 8
1157
+ ]
1158
+ ],
1159
+ [
1160
+ "b0_attn_w_scale2_o",
1161
+ 1344,
1162
+ 3,
1163
+ [
1164
+ 42,
1165
+ 8
1166
+ ]
1167
+ ],
1168
+ [
1169
+ "b0_attn_w_scale2_q",
1170
+ 1344,
1171
+ 3,
1172
+ [
1173
+ 42,
1174
+ 8
1175
+ ]
1176
+ ],
1177
+ [
1178
+ "b0_attn_w_scale2_v",
1179
+ 1344,
1180
+ 3,
1181
+ [
1182
+ 42,
1183
+ 8
1184
+ ]
1185
+ ],
1186
+ [
1187
+ "b0_attn_w_scale_k",
1188
+ 688128,
1189
+ 1,
1190
+ [
1191
+ 42,
1192
+ 256,
1193
+ 64
1194
+ ]
1195
+ ],
1196
+ [
1197
+ "b0_attn_w_scale_o",
1198
+ 5505024,
1199
+ 1,
1200
+ [
1201
+ 42,
1202
+ 2048,
1203
+ 64
1204
+ ]
1205
+ ],
1206
+ [
1207
+ "b0_attn_w_scale_q",
1208
+ 5505024,
1209
+ 1,
1210
+ [
1211
+ 42,
1212
+ 2048,
1213
+ 64
1214
+ ]
1215
+ ],
1216
+ [
1217
+ "b0_attn_w_scale_v",
1218
+ 688128,
1219
+ 1,
1220
+ [
1221
+ 42,
1222
+ 256,
1223
+ 64
1224
+ ]
1225
+ ],
1226
+ [
1227
+ "b0_attn_w_v",
1228
+ 22020096,
1229
+ 11,
1230
+ [
1231
+ 42,
1232
+ 256,
1233
+ 2048
1234
+ ]
1235
+ ],
1236
+ [
1237
+ "b0_attn_w_zeropoint_k",
1238
+ 1344,
1239
+ 9,
1240
+ [
1241
+ 42,
1242
+ 16
1243
+ ]
1244
+ ],
1245
+ [
1246
+ "b0_attn_w_zeropoint_o",
1247
+ 1344,
1248
+ 9,
1249
+ [
1250
+ 42,
1251
+ 16
1252
+ ]
1253
+ ],
1254
+ [
1255
+ "b0_attn_w_zeropoint_q",
1256
+ 1344,
1257
+ 9,
1258
+ [
1259
+ 42,
1260
+ 16
1261
+ ]
1262
+ ],
1263
+ [
1264
+ "b0_attn_w_zeropoint_v",
1265
+ 1344,
1266
+ 9,
1267
+ [
1268
+ 42,
1269
+ 16
1270
+ ]
1271
+ ],
1272
+ [
1273
+ "b0_mlp_input_permutation",
1274
+ 1344,
1275
+ 6,
1276
+ [
1277
+ 42,
1278
+ 8
1279
+ ]
1280
+ ],
1281
+ [
1282
+ "b0_mlp_w1",
1283
+ 528482304,
1284
+ 11,
1285
+ [
1286
+ 42,
1287
+ 6144,
1288
+ 2048
1289
+ ]
1290
+ ],
1291
+ [
1292
+ "b0_mlp_w2",
1293
+ 528482304,
1294
+ 11,
1295
+ [
1296
+ 42,
1297
+ 6144,
1298
+ 2048
1299
+ ]
1300
+ ],
1301
+ [
1302
+ "b0_mlp_w3",
1303
+ 528482304,
1304
+ 11,
1305
+ [
1306
+ 42,
1307
+ 2048,
1308
+ 6144
1309
+ ]
1310
+ ],
1311
+ [
1312
+ "b0_mlp_w_norm",
1313
+ 172032,
1314
+ 9,
1315
+ [
1316
+ 42,
1317
+ 2048
1318
+ ]
1319
+ ],
1320
+ [
1321
+ "b0_mlp_w_scale1",
1322
+ 16515072,
1323
+ 1,
1324
+ [
1325
+ 42,
1326
+ 6144,
1327
+ 64
1328
+ ]
1329
+ ],
1330
+ [
1331
+ "b0_mlp_w_scale2",
1332
+ 16515072,
1333
+ 1,
1334
+ [
1335
+ 42,
1336
+ 6144,
1337
+ 64
1338
+ ]
1339
+ ],
1340
+ [
1341
+ "b0_mlp_w_scale2_1",
1342
+ 1344,
1343
+ 3,
1344
+ [
1345
+ 42,
1346
+ 8
1347
+ ]
1348
+ ],
1349
+ [
1350
+ "b0_mlp_w_scale2_2",
1351
+ 1344,
1352
+ 3,
1353
+ [
1354
+ 42,
1355
+ 8
1356
+ ]
1357
+ ],
1358
+ [
1359
+ "b0_mlp_w_scale2_3",
1360
+ 1344,
1361
+ 3,
1362
+ [
1363
+ 42,
1364
+ 8
1365
+ ]
1366
+ ],
1367
+ [
1368
+ "b0_mlp_w_scale3",
1369
+ 16515072,
1370
+ 1,
1371
+ [
1372
+ 42,
1373
+ 2048,
1374
+ 192
1375
+ ]
1376
+ ],
1377
+ [
1378
+ "b0_mlp_w_zp_scale1",
1379
+ 1344,
1380
+ 9,
1381
+ [
1382
+ 42,
1383
+ 16
1384
+ ]
1385
+ ],
1386
+ [
1387
+ "b0_mlp_w_zp_scale2",
1388
+ 1344,
1389
+ 9,
1390
+ [
1391
+ 42,
1392
+ 16
1393
+ ]
1394
+ ],
1395
+ [
1396
+ "b0_mlp_w_zp_scale3",
1397
+ 1344,
1398
+ 9,
1399
+ [
1400
+ 42,
1401
+ 16
1402
+ ]
1403
+ ],
1404
+ [
1405
+ "b0_kv0",
1406
+ 134217728,
1407
+ 9,
1408
+ [
1409
+ 512,
1410
+ 2,
1411
+ 256,
1412
+ 2,
1413
+ 128
1414
+ ]
1415
+ ],
1416
+ [
1417
+ "b0_kv1",
1418
+ 134217728,
1419
+ 9,
1420
+ [
1421
+ 512,
1422
+ 2,
1423
+ 256,
1424
+ 2,
1425
+ 128
1426
+ ]
1427
+ ],
1428
+ [
1429
+ "b0_kv2",
1430
+ 134217728,
1431
+ 9,
1432
+ [
1433
+ 512,
1434
+ 2,
1435
+ 256,
1436
+ 2,
1437
+ 128
1438
+ ]
1439
+ ],
1440
+ [
1441
+ "b0_kv3",
1442
+ 134217728,
1443
+ 9,
1444
+ [
1445
+ 512,
1446
+ 2,
1447
+ 256,
1448
+ 2,
1449
+ 128
1450
+ ]
1451
+ ],
1452
+ [
1453
+ "b0_kv4",
1454
+ 134217728,
1455
+ 9,
1456
+ [
1457
+ 512,
1458
+ 2,
1459
+ 256,
1460
+ 2,
1461
+ 128
1462
+ ]
1463
+ ],
1464
+ [
1465
+ "b0_kv5",
1466
+ 134217728,
1467
+ 9,
1468
+ [
1469
+ 512,
1470
+ 2,
1471
+ 256,
1472
+ 2,
1473
+ 128
1474
+ ]
1475
+ ],
1476
+ [
1477
+ "b0_kv6",
1478
+ 134217728,
1479
+ 9,
1480
+ [
1481
+ 512,
1482
+ 2,
1483
+ 256,
1484
+ 2,
1485
+ 128
1486
+ ]
1487
+ ],
1488
+ [
1489
+ "b0_kv7",
1490
+ 134217728,
1491
+ 9,
1492
+ [
1493
+ 512,
1494
+ 2,
1495
+ 256,
1496
+ 2,
1497
+ 128
1498
+ ]
1499
+ ],
1500
+ [
1501
+ "b0_kv8",
1502
+ 134217728,
1503
+ 9,
1504
+ [
1505
+ 512,
1506
+ 2,
1507
+ 256,
1508
+ 2,
1509
+ 128
1510
+ ]
1511
+ ],
1512
+ [
1513
+ "b0_kv9",
1514
+ 134217728,
1515
+ 9,
1516
+ [
1517
+ 512,
1518
+ 2,
1519
+ 256,
1520
+ 2,
1521
+ 128
1522
+ ]
1523
+ ],
1524
+ [
1525
+ "b0_kv10",
1526
+ 134217728,
1527
+ 9,
1528
+ [
1529
+ 512,
1530
+ 2,
1531
+ 256,
1532
+ 2,
1533
+ 128
1534
+ ]
1535
+ ],
1536
+ [
1537
+ "b0_kv11",
1538
+ 134217728,
1539
+ 9,
1540
+ [
1541
+ 512,
1542
+ 2,
1543
+ 256,
1544
+ 2,
1545
+ 128
1546
+ ]
1547
+ ],
1548
+ [
1549
+ "b0_kv12",
1550
+ 134217728,
1551
+ 9,
1552
+ [
1553
+ 512,
1554
+ 2,
1555
+ 256,
1556
+ 2,
1557
+ 128
1558
+ ]
1559
+ ],
1560
+ [
1561
+ "b0_kv13",
1562
+ 134217728,
1563
+ 9,
1564
+ [
1565
+ 512,
1566
+ 2,
1567
+ 256,
1568
+ 2,
1569
+ 128
1570
+ ]
1571
+ ],
1572
+ [
1573
+ "b0_kv14",
1574
+ 134217728,
1575
+ 9,
1576
+ [
1577
+ 512,
1578
+ 2,
1579
+ 256,
1580
+ 2,
1581
+ 128
1582
+ ]
1583
+ ],
1584
+ [
1585
+ "b0_kv15",
1586
+ 134217728,
1587
+ 9,
1588
+ [
1589
+ 512,
1590
+ 2,
1591
+ 256,
1592
+ 2,
1593
+ 128
1594
+ ]
1595
+ ],
1596
+ [
1597
+ "b0_kv16",
1598
+ 134217728,
1599
+ 9,
1600
+ [
1601
+ 512,
1602
+ 2,
1603
+ 256,
1604
+ 2,
1605
+ 128
1606
+ ]
1607
+ ],
1608
+ [
1609
+ "b0_kv17",
1610
+ 134217728,
1611
+ 9,
1612
+ [
1613
+ 512,
1614
+ 2,
1615
+ 256,
1616
+ 2,
1617
+ 128
1618
+ ]
1619
+ ],
1620
+ [
1621
+ "b0_kv18",
1622
+ 134217728,
1623
+ 9,
1624
+ [
1625
+ 512,
1626
+ 2,
1627
+ 256,
1628
+ 2,
1629
+ 128
1630
+ ]
1631
+ ],
1632
+ [
1633
+ "b0_kv19",
1634
+ 134217728,
1635
+ 9,
1636
+ [
1637
+ 512,
1638
+ 2,
1639
+ 256,
1640
+ 2,
1641
+ 128
1642
+ ]
1643
+ ],
1644
+ [
1645
+ "b0_kv20",
1646
+ 134217728,
1647
+ 9,
1648
+ [
1649
+ 512,
1650
+ 2,
1651
+ 256,
1652
+ 2,
1653
+ 128
1654
+ ]
1655
+ ],
1656
+ [
1657
+ "b0_kv21",
1658
+ 134217728,
1659
+ 9,
1660
+ [
1661
+ 512,
1662
+ 2,
1663
+ 256,
1664
+ 2,
1665
+ 128
1666
+ ]
1667
+ ],
1668
+ [
1669
+ "b0_kv22",
1670
+ 134217728,
1671
+ 9,
1672
+ [
1673
+ 512,
1674
+ 2,
1675
+ 256,
1676
+ 2,
1677
+ 128
1678
+ ]
1679
+ ],
1680
+ [
1681
+ "b0_kv23",
1682
+ 134217728,
1683
+ 9,
1684
+ [
1685
+ 512,
1686
+ 2,
1687
+ 256,
1688
+ 2,
1689
+ 128
1690
+ ]
1691
+ ],
1692
+ [
1693
+ "b0_kv24",
1694
+ 134217728,
1695
+ 9,
1696
+ [
1697
+ 512,
1698
+ 2,
1699
+ 256,
1700
+ 2,
1701
+ 128
1702
+ ]
1703
+ ],
1704
+ [
1705
+ "b0_kv25",
1706
+ 134217728,
1707
+ 9,
1708
+ [
1709
+ 512,
1710
+ 2,
1711
+ 256,
1712
+ 2,
1713
+ 128
1714
+ ]
1715
+ ],
1716
+ [
1717
+ "b0_kv26",
1718
+ 134217728,
1719
+ 9,
1720
+ [
1721
+ 512,
1722
+ 2,
1723
+ 256,
1724
+ 2,
1725
+ 128
1726
+ ]
1727
+ ],
1728
+ [
1729
+ "b0_kv27",
1730
+ 134217728,
1731
+ 9,
1732
+ [
1733
+ 512,
1734
+ 2,
1735
+ 256,
1736
+ 2,
1737
+ 128
1738
+ ]
1739
+ ],
1740
+ [
1741
+ "b0_kv28",
1742
+ 134217728,
1743
+ 9,
1744
+ [
1745
+ 512,
1746
+ 2,
1747
+ 256,
1748
+ 2,
1749
+ 128
1750
+ ]
1751
+ ],
1752
+ [
1753
+ "b0_kv29",
1754
+ 134217728,
1755
+ 9,
1756
+ [
1757
+ 512,
1758
+ 2,
1759
+ 256,
1760
+ 2,
1761
+ 128
1762
+ ]
1763
+ ],
1764
+ [
1765
+ "b0_kv30",
1766
+ 134217728,
1767
+ 9,
1768
+ [
1769
+ 512,
1770
+ 2,
1771
+ 256,
1772
+ 2,
1773
+ 128
1774
+ ]
1775
+ ],
1776
+ [
1777
+ "b0_kv31",
1778
+ 134217728,
1779
+ 9,
1780
+ [
1781
+ 512,
1782
+ 2,
1783
+ 256,
1784
+ 2,
1785
+ 128
1786
+ ]
1787
+ ],
1788
+ [
1789
+ "b0_kv32",
1790
+ 134217728,
1791
+ 9,
1792
+ [
1793
+ 512,
1794
+ 2,
1795
+ 256,
1796
+ 2,
1797
+ 128
1798
+ ]
1799
+ ],
1800
+ [
1801
+ "b0_kv33",
1802
+ 134217728,
1803
+ 9,
1804
+ [
1805
+ 512,
1806
+ 2,
1807
+ 256,
1808
+ 2,
1809
+ 128
1810
+ ]
1811
+ ],
1812
+ [
1813
+ "b0_kv34",
1814
+ 134217728,
1815
+ 9,
1816
+ [
1817
+ 512,
1818
+ 2,
1819
+ 256,
1820
+ 2,
1821
+ 128
1822
+ ]
1823
+ ],
1824
+ [
1825
+ "b0_kv35",
1826
+ 134217728,
1827
+ 9,
1828
+ [
1829
+ 512,
1830
+ 2,
1831
+ 256,
1832
+ 2,
1833
+ 128
1834
+ ]
1835
+ ],
1836
+ [
1837
+ "b0_kv36",
1838
+ 134217728,
1839
+ 9,
1840
+ [
1841
+ 512,
1842
+ 2,
1843
+ 256,
1844
+ 2,
1845
+ 128
1846
+ ]
1847
+ ],
1848
+ [
1849
+ "b0_kv37",
1850
+ 134217728,
1851
+ 9,
1852
+ [
1853
+ 512,
1854
+ 2,
1855
+ 256,
1856
+ 2,
1857
+ 128
1858
+ ]
1859
+ ],
1860
+ [
1861
+ "b0_kv38",
1862
+ 134217728,
1863
+ 9,
1864
+ [
1865
+ 512,
1866
+ 2,
1867
+ 256,
1868
+ 2,
1869
+ 128
1870
+ ]
1871
+ ],
1872
+ [
1873
+ "b0_kv39",
1874
+ 134217728,
1875
+ 9,
1876
+ [
1877
+ 512,
1878
+ 2,
1879
+ 256,
1880
+ 2,
1881
+ 128
1882
+ ]
1883
+ ],
1884
+ [
1885
+ "b0_kv40",
1886
+ 134217728,
1887
+ 9,
1888
+ [
1889
+ 512,
1890
+ 2,
1891
+ 256,
1892
+ 2,
1893
+ 128
1894
+ ]
1895
+ ],
1896
+ [
1897
+ "b0_kv41",
1898
+ 134217728,
1899
+ 9,
1900
+ [
1901
+ 512,
1902
+ 2,
1903
+ 256,
1904
+ 2,
1905
+ 128
1906
+ ]
1907
+ ]
1908
+ ],
1909
+ "out": [
1910
+ [
1911
+ "output",
1912
+ 4096,
1913
+ 9,
1914
+ [
1915
+ 1,
1916
+ 2048
1917
+ ]
1918
+ ],
1919
+ [
1920
+ "ids",
1921
+ 4,
1922
+ 6,
1923
+ [
1924
+ 1
1925
+ ]
1926
+ ],
1927
+ [
1928
+ "top_logits",
1929
+ 4,
1930
+ 3,
1931
+ [
1932
+ 1
1933
+ ]
1934
+ ],
1935
+ [
1936
+ "values",
1937
+ 4096,
1938
+ 3,
1939
+ [
1940
+ 1024
1941
+ ]
1942
+ ],
1943
+ [
1944
+ "kids",
1945
+ 4096,
1946
+ 6,
1947
+ [
1948
+ 1024
1949
+ ]
1950
+ ],
1951
+ [
1952
+ "vmax",
1953
+ 4,
1954
+ 3,
1955
+ [
1956
+ 1
1957
+ ]
1958
+ ],
1959
+ [
1960
+ "sumexp",
1961
+ 4,
1962
+ 3,
1963
+ [
1964
+ 1
1965
+ ]
1966
+ ],
1967
+ [
1968
+ "logits",
1969
+ 522240,
1970
+ 3,
1971
+ [
1972
+ 1,
1973
+ 130560
1974
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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format": 1,
3
+ "model": "cpm5",
4
+ "context": 131072,
5
+ "cores": 4,
6
+ "params": {},
7
+ "kernels": {
8
+ "prefill": {
9
+ "file": "cpm5_prefill256_mx8_kvc_c131072_npu4.axmodel",
10
+ "in": [
11
+ {
12
+ "name": "x",
13
+ "bytes": 1048576,
14
+ "dtype": 9,
15
+ "shape": [
16
+ 256,
17
+ 2048
18
+ ]
19
+ },
20
+ {
21
+ "name": "position_ids",
22
+ "bytes": 1024,
23
+ "dtype": 6,
24
+ "shape": [
25
+ 256
26
+ ]
27
+ },
28
+ {
29
+ "name": "indptr",
30
+ "bytes": 8,
31
+ "dtype": 6,
32
+ "shape": [
33
+ 2
34
+ ]
35
+ },
36
+ {
37
+ "name": "indices",
38
+ "bytes": 2048,
39
+ "dtype": 6,
40
+ "shape": [
41
+ 512
42
+ ]
43
+ },
44
+ {
45
+ "name": "last_page_len",
46
+ "bytes": 4,
47
+ "dtype": 6,
48
+ "shape": [
49
+ 1
50
+ ]
51
+ },
52
+ {
53
+ "name": "cache_location",
54
+ "bytes": 8,
55
+ "dtype": 6,
56
+ "shape": [
57
+ 2
58
+ ]
59
+ },
60
+ {
61
+ "name": "valid_tokens",
62
+ "bytes": 4,
63
+ "dtype": 6,
64
+ "shape": [
65
+ 1
66
+ ]
67
+ },
68
+ {
69
+ "name": "head_on",
70
+ "bytes": 4,
71
+ "dtype": 6,
72
+ "shape": [
73
+ 1
74
+ ]
75
+ },
76
+ {
77
+ "name": "out_row",
78
+ "bytes": 16,
79
+ "dtype": 6,
80
+ "shape": [
81
+ 4
82
+ ]
83
+ },
84
+ {
85
+ "name": "nout",
86
+ "bytes": 4,
87
+ "dtype": 6,
88
+ "shape": [
89
+ 1
90
+ ]
91
+ },
92
+ {
93
+ "name": "norm_w",
94
+ "bytes": 8192,
95
+ "dtype": 3,
96
+ "shape": [
97
+ 2048
98
+ ]
99
+ },
100
+ {
101
+ "name": "w_lm",
102
+ "bytes": 267386880,
103
+ "dtype": 11,
104
+ "shape": [
105
+ 130560,
106
+ 2048
107
+ ]
108
+ },
109
+ {
110
+ "name": "s_lm",
111
+ "bytes": 8355840,
112
+ "dtype": 1,
113
+ "shape": [
114
+ 130560,
115
+ 64
116
+ ]
117
+ },
118
+ {
119
+ "name": "b0_attn_cos",
120
+ "bytes": 33554432,
121
+ "dtype": 3,
122
+ "shape": [
123
+ 1,
124
+ 131072,
125
+ 64
126
+ ]
127
+ },
128
+ {
129
+ "name": "b0_attn_sin",
130
+ "bytes": 33554432,
131
+ "dtype": 3,
132
+ "shape": [
133
+ 1,
134
+ 131072,
135
+ 64
136
+ ]
137
+ },
138
+ {
139
+ "name": "b0_attn_w_k",
140
+ "bytes": 22020096,
141
+ "dtype": 11,
142
+ "shape": [
143
+ 42,
144
+ 256,
145
+ 2048
146
+ ]
147
+ },
148
+ {
149
+ "name": "b0_attn_w_norm_attn",
150
+ "bytes": 172032,
151
+ "dtype": 9,
152
+ "shape": [
153
+ 42,
154
+ 2048
155
+ ]
156
+ },
157
+ {
158
+ "name": "b0_attn_w_o",
159
+ "bytes": 176160768,
160
+ "dtype": 11,
161
+ "shape": [
162
+ 42,
163
+ 2048,
164
+ 2048
165
+ ]
166
+ },
167
+ {
168
+ "name": "b0_attn_w_q",
169
+ "bytes": 176160768,
170
+ "dtype": 11,
171
+ "shape": [
172
+ 42,
173
+ 2048,
174
+ 2048
175
+ ]
176
+ },
177
+ {
178
+ "name": "b0_attn_w_scale2_k",
179
+ "bytes": 1344,
180
+ "dtype": 3,
181
+ "shape": [
182
+ 42,
183
+ 8
184
+ ]
185
+ },
186
+ {
187
+ "name": "b0_attn_w_scale2_o",
188
+ "bytes": 1344,
189
+ "dtype": 3,
190
+ "shape": [
191
+ 42,
192
+ 8
193
+ ]
194
+ },
195
+ {
196
+ "name": "b0_attn_w_scale2_q",
197
+ "bytes": 1344,
198
+ "dtype": 3,
199
+ "shape": [
200
+ 42,
201
+ 8
202
+ ]
203
+ },
204
+ {
205
+ "name": "b0_attn_w_scale2_v",
206
+ "bytes": 1344,
207
+ "dtype": 3,
208
+ "shape": [
209
+ 42,
210
+ 8
211
+ ]
212
+ },
213
+ {
214
+ "name": "b0_attn_w_scale_k",
215
+ "bytes": 688128,
216
+ "dtype": 1,
217
+ "shape": [
218
+ 42,
219
+ 256,
220
+ 64
221
+ ]
222
+ },
223
+ {
224
+ "name": "b0_attn_w_scale_o",
225
+ "bytes": 5505024,
226
+ "dtype": 1,
227
+ "shape": [
228
+ 42,
229
+ 2048,
230
+ 64
231
+ ]
232
+ },
233
+ {
234
+ "name": "b0_attn_w_scale_q",
235
+ "bytes": 5505024,
236
+ "dtype": 1,
237
+ "shape": [
238
+ 42,
239
+ 2048,
240
+ 64
241
+ ]
242
+ },
243
+ {
244
+ "name": "b0_attn_w_scale_v",
245
+ "bytes": 688128,
246
+ "dtype": 1,
247
+ "shape": [
248
+ 42,
249
+ 256,
250
+ 64
251
+ ]
252
+ },
253
+ {
254
+ "name": "b0_attn_w_v",
255
+ "bytes": 22020096,
256
+ "dtype": 11,
257
+ "shape": [
258
+ 42,
259
+ 256,
260
+ 2048
261
+ ]
262
+ },
263
+ {
264
+ "name": "b0_attn_w_zeropoint_k",
265
+ "bytes": 1344,
266
+ "dtype": 9,
267
+ "shape": [
268
+ 42,
269
+ 16
270
+ ]
271
+ },
272
+ {
273
+ "name": "b0_attn_w_zeropoint_o",
274
+ "bytes": 1344,
275
+ "dtype": 9,
276
+ "shape": [
277
+ 42,
278
+ 16
279
+ ]
280
+ },
281
+ {
282
+ "name": "b0_attn_w_zeropoint_q",
283
+ "bytes": 1344,
284
+ "dtype": 9,
285
+ "shape": [
286
+ 42,
287
+ 16
288
+ ]
289
+ },
290
+ {
291
+ "name": "b0_attn_w_zeropoint_v",
292
+ "bytes": 1344,
293
+ "dtype": 9,
294
+ "shape": [
295
+ 42,
296
+ 16
297
+ ]
298
+ },
299
+ {
300
+ "name": "b0_mlp_input_permutation",
301
+ "bytes": 1344,
302
+ "dtype": 6,
303
+ "shape": [
304
+ 42,
305
+ 8
306
+ ]
307
+ },
308
+ {
309
+ "name": "b0_mlp_w1",
310
+ "bytes": 528482304,
311
+ "dtype": 11,
312
+ "shape": [
313
+ 42,
314
+ 6144,
315
+ 2048
316
+ ]
317
+ },
318
+ {
319
+ "name": "b0_mlp_w2",
320
+ "bytes": 528482304,
321
+ "dtype": 11,
322
+ "shape": [
323
+ 42,
324
+ 6144,
325
+ 2048
326
+ ]
327
+ },
328
+ {
329
+ "name": "b0_mlp_w3",
330
+ "bytes": 528482304,
331
+ "dtype": 11,
332
+ "shape": [
333
+ 42,
334
+ 2048,
335
+ 6144
336
+ ]
337
+ },
338
+ {
339
+ "name": "b0_mlp_w_norm",
340
+ "bytes": 172032,
341
+ "dtype": 9,
342
+ "shape": [
343
+ 42,
344
+ 2048
345
+ ]
346
+ },
347
+ {
348
+ "name": "b0_mlp_w_scale1",
349
+ "bytes": 16515072,
350
+ "dtype": 1,
351
+ "shape": [
352
+ 42,
353
+ 6144,
354
+ 64
355
+ ]
356
+ },
357
+ {
358
+ "name": "b0_mlp_w_scale2",
359
+ "bytes": 16515072,
360
+ "dtype": 1,
361
+ "shape": [
362
+ 42,
363
+ 6144,
364
+ 64
365
+ ]
366
+ },
367
+ {
368
+ "name": "b0_mlp_w_scale2_1",
369
+ "bytes": 1344,
370
+ "dtype": 3,
371
+ "shape": [
372
+ 42,
373
+ 8
374
+ ]
375
+ },
376
+ {
377
+ "name": "b0_mlp_w_scale2_2",
378
+ "bytes": 1344,
379
+ "dtype": 3,
380
+ "shape": [
381
+ 42,
382
+ 8
383
+ ]
384
+ },
385
+ {
386
+ "name": "b0_mlp_w_scale2_3",
387
+ "bytes": 1344,
388
+ "dtype": 3,
389
+ "shape": [
390
+ 42,
391
+ 8
392
+ ]
393
+ },
394
+ {
395
+ "name": "b0_mlp_w_scale3",
396
+ "bytes": 16515072,
397
+ "dtype": 1,
398
+ "shape": [
399
+ 42,
400
+ 2048,
401
+ 192
402
+ ]
403
+ },
404
+ {
405
+ "name": "b0_mlp_w_zp_scale1",
406
+ "bytes": 1344,
407
+ "dtype": 9,
408
+ "shape": [
409
+ 42,
410
+ 16
411
+ ]
412
+ },
413
+ {
414
+ "name": "b0_mlp_w_zp_scale2",
415
+ "bytes": 1344,
416
+ "dtype": 9,
417
+ "shape": [
418
+ 42,
419
+ 16
420
+ ]
421
+ },
422
+ {
423
+ "name": "b0_mlp_w_zp_scale3",
424
+ "bytes": 1344,
425
+ "dtype": 9,
426
+ "shape": [
427
+ 42,
428
+ 16
429
+ ]
430
+ },
431
+ {
432
+ "name": "b0_kv0",
433
+ "bytes": 134217728,
434
+ "dtype": 9,
435
+ "shape": [
436
+ 512,
437
+ 2,
438
+ 256,
439
+ 2,
440
+ 128
441
+ ]
442
+ },
443
+ {
444
+ "name": "b0_kv1",
445
+ "bytes": 134217728,
446
+ "dtype": 9,
447
+ "shape": [
448
+ 512,
449
+ 2,
450
+ 256,
451
+ 2,
452
+ 128
453
+ ]
454
+ },
455
+ {
456
+ "name": "b0_kv2",
457
+ "bytes": 134217728,
458
+ "dtype": 9,
459
+ "shape": [
460
+ 512,
461
+ 2,
462
+ 256,
463
+ 2,
464
+ 128
465
+ ]
466
+ },
467
+ {
468
+ "name": "b0_kv3",
469
+ "bytes": 134217728,
470
+ "dtype": 9,
471
+ "shape": [
472
+ 512,
473
+ 2,
474
+ 256,
475
+ 2,
476
+ 128
477
+ ]
478
+ },
479
+ {
480
+ "name": "b0_kv4",
481
+ "bytes": 134217728,
482
+ "dtype": 9,
483
+ "shape": [
484
+ 512,
485
+ 2,
486
+ 256,
487
+ 2,
488
+ 128
489
+ ]
490
+ },
491
+ {
492
+ "name": "b0_kv5",
493
+ "bytes": 134217728,
494
+ "dtype": 9,
495
+ "shape": [
496
+ 512,
497
+ 2,
498
+ 256,
499
+ 2,
500
+ 128
501
+ ]
502
+ },
503
+ {
504
+ "name": "b0_kv6",
505
+ "bytes": 134217728,
506
+ "dtype": 9,
507
+ "shape": [
508
+ 512,
509
+ 2,
510
+ 256,
511
+ 2,
512
+ 128
513
+ ]
514
+ },
515
+ {
516
+ "name": "b0_kv7",
517
+ "bytes": 134217728,
518
+ "dtype": 9,
519
+ "shape": [
520
+ 512,
521
+ 2,
522
+ 256,
523
+ 2,
524
+ 128
525
+ ]
526
+ },
527
+ {
528
+ "name": "b0_kv8",
529
+ "bytes": 134217728,
530
+ "dtype": 9,
531
+ "shape": [
532
+ 512,
533
+ 2,
534
+ 256,
535
+ 2,
536
+ 128
537
+ ]
538
+ },
539
+ {
540
+ "name": "b0_kv9",
541
+ "bytes": 134217728,
542
+ "dtype": 9,
543
+ "shape": [
544
+ 512,
545
+ 2,
546
+ 256,
547
+ 2,
548
+ 128
549
+ ]
550
+ },
551
+ {
552
+ "name": "b0_kv10",
553
+ "bytes": 134217728,
554
+ "dtype": 9,
555
+ "shape": [
556
+ 512,
557
+ 2,
558
+ 256,
559
+ 2,
560
+ 128
561
+ ]
562
+ },
563
+ {
564
+ "name": "b0_kv11",
565
+ "bytes": 134217728,
566
+ "dtype": 9,
567
+ "shape": [
568
+ 512,
569
+ 2,
570
+ 256,
571
+ 2,
572
+ 128
573
+ ]
574
+ },
575
+ {
576
+ "name": "b0_kv12",
577
+ "bytes": 134217728,
578
+ "dtype": 9,
579
+ "shape": [
580
+ 512,
581
+ 2,
582
+ 256,
583
+ 2,
584
+ 128
585
+ ]
586
+ },
587
+ {
588
+ "name": "b0_kv13",
589
+ "bytes": 134217728,
590
+ "dtype": 9,
591
+ "shape": [
592
+ 512,
593
+ 2,
594
+ 256,
595
+ 2,
596
+ 128
597
+ ]
598
+ },
599
+ {
600
+ "name": "b0_kv14",
601
+ "bytes": 134217728,
602
+ "dtype": 9,
603
+ "shape": [
604
+ 512,
605
+ 2,
606
+ 256,
607
+ 2,
608
+ 128
609
+ ]
610
+ },
611
+ {
612
+ "name": "b0_kv15",
613
+ "bytes": 134217728,
614
+ "dtype": 9,
615
+ "shape": [
616
+ 512,
617
+ 2,
618
+ 256,
619
+ 2,
620
+ 128
621
+ ]
622
+ },
623
+ {
624
+ "name": "b0_kv16",
625
+ "bytes": 134217728,
626
+ "dtype": 9,
627
+ "shape": [
628
+ 512,
629
+ 2,
630
+ 256,
631
+ 2,
632
+ 128
633
+ ]
634
+ },
635
+ {
636
+ "name": "b0_kv17",
637
+ "bytes": 134217728,
638
+ "dtype": 9,
639
+ "shape": [
640
+ 512,
641
+ 2,
642
+ 256,
643
+ 2,
644
+ 128
645
+ ]
646
+ },
647
+ {
648
+ "name": "b0_kv18",
649
+ "bytes": 134217728,
650
+ "dtype": 9,
651
+ "shape": [
652
+ 512,
653
+ 2,
654
+ 256,
655
+ 2,
656
+ 128
657
+ ]
658
+ },
659
+ {
660
+ "name": "b0_kv19",
661
+ "bytes": 134217728,
662
+ "dtype": 9,
663
+ "shape": [
664
+ 512,
665
+ 2,
666
+ 256,
667
+ 2,
668
+ 128
669
+ ]
670
+ },
671
+ {
672
+ "name": "b0_kv20",
673
+ "bytes": 134217728,
674
+ "dtype": 9,
675
+ "shape": [
676
+ 512,
677
+ 2,
678
+ 256,
679
+ 2,
680
+ 128
681
+ ]
682
+ },
683
+ {
684
+ "name": "b0_kv21",
685
+ "bytes": 134217728,
686
+ "dtype": 9,
687
+ "shape": [
688
+ 512,
689
+ 2,
690
+ 256,
691
+ 2,
692
+ 128
693
+ ]
694
+ },
695
+ {
696
+ "name": "b0_kv22",
697
+ "bytes": 134217728,
698
+ "dtype": 9,
699
+ "shape": [
700
+ 512,
701
+ 2,
702
+ 256,
703
+ 2,
704
+ 128
705
+ ]
706
+ },
707
+ {
708
+ "name": "b0_kv23",
709
+ "bytes": 134217728,
710
+ "dtype": 9,
711
+ "shape": [
712
+ 512,
713
+ 2,
714
+ 256,
715
+ 2,
716
+ 128
717
+ ]
718
+ },
719
+ {
720
+ "name": "b0_kv24",
721
+ "bytes": 134217728,
722
+ "dtype": 9,
723
+ "shape": [
724
+ 512,
725
+ 2,
726
+ 256,
727
+ 2,
728
+ 128
729
+ ]
730
+ },
731
+ {
732
+ "name": "b0_kv25",
733
+ "bytes": 134217728,
734
+ "dtype": 9,
735
+ "shape": [
736
+ 512,
737
+ 2,
738
+ 256,
739
+ 2,
740
+ 128
741
+ ]
742
+ },
743
+ {
744
+ "name": "b0_kv26",
745
+ "bytes": 134217728,
746
+ "dtype": 9,
747
+ "shape": [
748
+ 512,
749
+ 2,
750
+ 256,
751
+ 2,
752
+ 128
753
+ ]
754
+ },
755
+ {
756
+ "name": "b0_kv27",
757
+ "bytes": 134217728,
758
+ "dtype": 9,
759
+ "shape": [
760
+ 512,
761
+ 2,
762
+ 256,
763
+ 2,
764
+ 128
765
+ ]
766
+ },
767
+ {
768
+ "name": "b0_kv28",
769
+ "bytes": 134217728,
770
+ "dtype": 9,
771
+ "shape": [
772
+ 512,
773
+ 2,
774
+ 256,
775
+ 2,
776
+ 128
777
+ ]
778
+ },
779
+ {
780
+ "name": "b0_kv29",
781
+ "bytes": 134217728,
782
+ "dtype": 9,
783
+ "shape": [
784
+ 512,
785
+ 2,
786
+ 256,
787
+ 2,
788
+ 128
789
+ ]
790
+ },
791
+ {
792
+ "name": "b0_kv30",
793
+ "bytes": 134217728,
794
+ "dtype": 9,
795
+ "shape": [
796
+ 512,
797
+ 2,
798
+ 256,
799
+ 2,
800
+ 128
801
+ ]
802
+ },
803
+ {
804
+ "name": "b0_kv31",
805
+ "bytes": 134217728,
806
+ "dtype": 9,
807
+ "shape": [
808
+ 512,
809
+ 2,
810
+ 256,
811
+ 2,
812
+ 128
813
+ ]
814
+ },
815
+ {
816
+ "name": "b0_kv32",
817
+ "bytes": 134217728,
818
+ "dtype": 9,
819
+ "shape": [
820
+ 512,
821
+ 2,
822
+ 256,
823
+ 2,
824
+ 128
825
+ ]
826
+ },
827
+ {
828
+ "name": "b0_kv33",
829
+ "bytes": 134217728,
830
+ "dtype": 9,
831
+ "shape": [
832
+ 512,
833
+ 2,
834
+ 256,
835
+ 2,
836
+ 128
837
+ ]
838
+ },
839
+ {
840
+ "name": "b0_kv34",
841
+ "bytes": 134217728,
842
+ "dtype": 9,
843
+ "shape": [
844
+ 512,
845
+ 2,
846
+ 256,
847
+ 2,
848
+ 128
849
+ ]
850
+ },
851
+ {
852
+ "name": "b0_kv35",
853
+ "bytes": 134217728,
854
+ "dtype": 9,
855
+ "shape": [
856
+ 512,
857
+ 2,
858
+ 256,
859
+ 2,
860
+ 128
861
+ ]
862
+ },
863
+ {
864
+ "name": "b0_kv36",
865
+ "bytes": 134217728,
866
+ "dtype": 9,
867
+ "shape": [
868
+ 512,
869
+ 2,
870
+ 256,
871
+ 2,
872
+ 128
873
+ ]
874
+ },
875
+ {
876
+ "name": "b0_kv37",
877
+ "bytes": 134217728,
878
+ "dtype": 9,
879
+ "shape": [
880
+ 512,
881
+ 2,
882
+ 256,
883
+ 2,
884
+ 128
885
+ ]
886
+ },
887
+ {
888
+ "name": "b0_kv38",
889
+ "bytes": 134217728,
890
+ "dtype": 9,
891
+ "shape": [
892
+ 512,
893
+ 2,
894
+ 256,
895
+ 2,
896
+ 128
897
+ ]
898
+ },
899
+ {
900
+ "name": "b0_kv39",
901
+ "bytes": 134217728,
902
+ "dtype": 9,
903
+ "shape": [
904
+ 512,
905
+ 2,
906
+ 256,
907
+ 2,
908
+ 128
909
+ ]
910
+ },
911
+ {
912
+ "name": "b0_kv40",
913
+ "bytes": 134217728,
914
+ "dtype": 9,
915
+ "shape": [
916
+ 512,
917
+ 2,
918
+ 256,
919
+ 2,
920
+ 128
921
+ ]
922
+ },
923
+ {
924
+ "name": "b0_kv41",
925
+ "bytes": 134217728,
926
+ "dtype": 9,
927
+ "shape": [
928
+ 512,
929
+ 2,
930
+ 256,
931
+ 2,
932
+ 128
933
+ ]
934
+ }
935
+ ],
936
+ "out": [
937
+ {
938
+ "name": "output",
939
+ "bytes": 1048576,
940
+ "dtype": 9,
941
+ "shape": [
942
+ 256,
943
+ 2048
944
+ ]
945
+ },
946
+ {
947
+ "name": "ids",
948
+ "bytes": 16,
949
+ "dtype": 6,
950
+ "shape": [
951
+ 4
952
+ ]
953
+ },
954
+ {
955
+ "name": "top_logits",
956
+ "bytes": 16,
957
+ "dtype": 3,
958
+ "shape": [
959
+ 4
960
+ ]
961
+ },
962
+ {
963
+ "name": "logits",
964
+ "bytes": 2088960,
965
+ "dtype": 3,
966
+ "shape": [
967
+ 4,
968
+ 130560
969
+ ]
970
+ }
971
+ ]
972
+ },
973
+ "decode": {
974
+ "file": "cpm5_decode1_mx8_kvc_c131072_npu4.axmodel",
975
+ "in": [
976
+ {
977
+ "name": "x",
978
+ "bytes": 4096,
979
+ "dtype": 9,
980
+ "shape": [
981
+ 1,
982
+ 2048
983
+ ]
984
+ },
985
+ {
986
+ "name": "position_ids",
987
+ "bytes": 4,
988
+ "dtype": 6,
989
+ "shape": [
990
+ 1
991
+ ]
992
+ },
993
+ {
994
+ "name": "indptr",
995
+ "bytes": 8,
996
+ "dtype": 6,
997
+ "shape": [
998
+ 2
999
+ ]
1000
+ },
1001
+ {
1002
+ "name": "indices",
1003
+ "bytes": 2048,
1004
+ "dtype": 6,
1005
+ "shape": [
1006
+ 512
1007
+ ]
1008
+ },
1009
+ {
1010
+ "name": "last_page_len",
1011
+ "bytes": 4,
1012
+ "dtype": 6,
1013
+ "shape": [
1014
+ 1
1015
+ ]
1016
+ },
1017
+ {
1018
+ "name": "cache_location",
1019
+ "bytes": 8,
1020
+ "dtype": 6,
1021
+ "shape": [
1022
+ 2
1023
+ ]
1024
+ },
1025
+ {
1026
+ "name": "head",
1027
+ "bytes": 4,
1028
+ "dtype": 6,
1029
+ "shape": [
1030
+ 1
1031
+ ]
1032
+ },
1033
+ {
1034
+ "name": "topk_on",
1035
+ "bytes": 4,
1036
+ "dtype": 6,
1037
+ "shape": [
1038
+ 1
1039
+ ]
1040
+ },
1041
+ {
1042
+ "name": "norm_w",
1043
+ "bytes": 8192,
1044
+ "dtype": 3,
1045
+ "shape": [
1046
+ 2048
1047
+ ]
1048
+ },
1049
+ {
1050
+ "name": "w_lm",
1051
+ "bytes": 267386880,
1052
+ "dtype": 11,
1053
+ "shape": [
1054
+ 130560,
1055
+ 2048
1056
+ ]
1057
+ },
1058
+ {
1059
+ "name": "s_lm",
1060
+ "bytes": 8355840,
1061
+ "dtype": 1,
1062
+ "shape": [
1063
+ 130560,
1064
+ 64
1065
+ ]
1066
+ },
1067
+ {
1068
+ "name": "bias",
1069
+ "bytes": 522240,
1070
+ "dtype": 3,
1071
+ "shape": [
1072
+ 130560
1073
+ ]
1074
+ },
1075
+ {
1076
+ "name": "mul_pos",
1077
+ "bytes": 522240,
1078
+ "dtype": 3,
1079
+ "shape": [
1080
+ 130560
1081
+ ]
1082
+ },
1083
+ {
1084
+ "name": "mul_neg",
1085
+ "bytes": 522240,
1086
+ "dtype": 3,
1087
+ "shape": [
1088
+ 130560
1089
+ ]
1090
+ },
1091
+ {
1092
+ "name": "temp",
1093
+ "bytes": 4,
1094
+ "dtype": 3,
1095
+ "shape": [
1096
+ 1
1097
+ ]
1098
+ },
1099
+ {
1100
+ "name": "b0_attn_cos",
1101
+ "bytes": 33554432,
1102
+ "dtype": 3,
1103
+ "shape": [
1104
+ 1,
1105
+ 131072,
1106
+ 64
1107
+ ]
1108
+ },
1109
+ {
1110
+ "name": "b0_attn_sin",
1111
+ "bytes": 33554432,
1112
+ "dtype": 3,
1113
+ "shape": [
1114
+ 1,
1115
+ 131072,
1116
+ 64
1117
+ ]
1118
+ },
1119
+ {
1120
+ "name": "b0_attn_w_k",
1121
+ "bytes": 22020096,
1122
+ "dtype": 11,
1123
+ "shape": [
1124
+ 42,
1125
+ 256,
1126
+ 2048
1127
+ ]
1128
+ },
1129
+ {
1130
+ "name": "b0_attn_w_norm_attn",
1131
+ "bytes": 172032,
1132
+ "dtype": 9,
1133
+ "shape": [
1134
+ 42,
1135
+ 2048
1136
+ ]
1137
+ },
1138
+ {
1139
+ "name": "b0_attn_w_o",
1140
+ "bytes": 176160768,
1141
+ "dtype": 11,
1142
+ "shape": [
1143
+ 42,
1144
+ 2048,
1145
+ 2048
1146
+ ]
1147
+ },
1148
+ {
1149
+ "name": "b0_attn_w_q",
1150
+ "bytes": 176160768,
1151
+ "dtype": 11,
1152
+ "shape": [
1153
+ 42,
1154
+ 2048,
1155
+ 2048
1156
+ ]
1157
+ },
1158
+ {
1159
+ "name": "b0_attn_w_scale2_k",
1160
+ "bytes": 1344,
1161
+ "dtype": 3,
1162
+ "shape": [
1163
+ 42,
1164
+ 8
1165
+ ]
1166
+ },
1167
+ {
1168
+ "name": "b0_attn_w_scale2_o",
1169
+ "bytes": 1344,
1170
+ "dtype": 3,
1171
+ "shape": [
1172
+ 42,
1173
+ 8
1174
+ ]
1175
+ },
1176
+ {
1177
+ "name": "b0_attn_w_scale2_q",
1178
+ "bytes": 1344,
1179
+ "dtype": 3,
1180
+ "shape": [
1181
+ 42,
1182
+ 8
1183
+ ]
1184
+ },
1185
+ {
1186
+ "name": "b0_attn_w_scale2_v",
1187
+ "bytes": 1344,
1188
+ "dtype": 3,
1189
+ "shape": [
1190
+ 42,
1191
+ 8
1192
+ ]
1193
+ },
1194
+ {
1195
+ "name": "b0_attn_w_scale_k",
1196
+ "bytes": 688128,
1197
+ "dtype": 1,
1198
+ "shape": [
1199
+ 42,
1200
+ 256,
1201
+ 64
1202
+ ]
1203
+ },
1204
+ {
1205
+ "name": "b0_attn_w_scale_o",
1206
+ "bytes": 5505024,
1207
+ "dtype": 1,
1208
+ "shape": [
1209
+ 42,
1210
+ 2048,
1211
+ 64
1212
+ ]
1213
+ },
1214
+ {
1215
+ "name": "b0_attn_w_scale_q",
1216
+ "bytes": 5505024,
1217
+ "dtype": 1,
1218
+ "shape": [
1219
+ 42,
1220
+ 2048,
1221
+ 64
1222
+ ]
1223
+ },
1224
+ {
1225
+ "name": "b0_attn_w_scale_v",
1226
+ "bytes": 688128,
1227
+ "dtype": 1,
1228
+ "shape": [
1229
+ 42,
1230
+ 256,
1231
+ 64
1232
+ ]
1233
+ },
1234
+ {
1235
+ "name": "b0_attn_w_v",
1236
+ "bytes": 22020096,
1237
+ "dtype": 11,
1238
+ "shape": [
1239
+ 42,
1240
+ 256,
1241
+ 2048
1242
+ ]
1243
+ },
1244
+ {
1245
+ "name": "b0_attn_w_zeropoint_k",
1246
+ "bytes": 1344,
1247
+ "dtype": 9,
1248
+ "shape": [
1249
+ 42,
1250
+ 16
1251
+ ]
1252
+ },
1253
+ {
1254
+ "name": "b0_attn_w_zeropoint_o",
1255
+ "bytes": 1344,
1256
+ "dtype": 9,
1257
+ "shape": [
1258
+ 42,
1259
+ 16
1260
+ ]
1261
+ },
1262
+ {
1263
+ "name": "b0_attn_w_zeropoint_q",
1264
+ "bytes": 1344,
1265
+ "dtype": 9,
1266
+ "shape": [
1267
+ 42,
1268
+ 16
1269
+ ]
1270
+ },
1271
+ {
1272
+ "name": "b0_attn_w_zeropoint_v",
1273
+ "bytes": 1344,
1274
+ "dtype": 9,
1275
+ "shape": [
1276
+ 42,
1277
+ 16
1278
+ ]
1279
+ },
1280
+ {
1281
+ "name": "b0_mlp_input_permutation",
1282
+ "bytes": 1344,
1283
+ "dtype": 6,
1284
+ "shape": [
1285
+ 42,
1286
+ 8
1287
+ ]
1288
+ },
1289
+ {
1290
+ "name": "b0_mlp_w1",
1291
+ "bytes": 528482304,
1292
+ "dtype": 11,
1293
+ "shape": [
1294
+ 42,
1295
+ 6144,
1296
+ 2048
1297
+ ]
1298
+ },
1299
+ {
1300
+ "name": "b0_mlp_w2",
1301
+ "bytes": 528482304,
1302
+ "dtype": 11,
1303
+ "shape": [
1304
+ 42,
1305
+ 6144,
1306
+ 2048
1307
+ ]
1308
+ },
1309
+ {
1310
+ "name": "b0_mlp_w3",
1311
+ "bytes": 528482304,
1312
+ "dtype": 11,
1313
+ "shape": [
1314
+ 42,
1315
+ 2048,
1316
+ 6144
1317
+ ]
1318
+ },
1319
+ {
1320
+ "name": "b0_mlp_w_norm",
1321
+ "bytes": 172032,
1322
+ "dtype": 9,
1323
+ "shape": [
1324
+ 42,
1325
+ 2048
1326
+ ]
1327
+ },
1328
+ {
1329
+ "name": "b0_mlp_w_scale1",
1330
+ "bytes": 16515072,
1331
+ "dtype": 1,
1332
+ "shape": [
1333
+ 42,
1334
+ 6144,
1335
+ 64
1336
+ ]
1337
+ },
1338
+ {
1339
+ "name": "b0_mlp_w_scale2",
1340
+ "bytes": 16515072,
1341
+ "dtype": 1,
1342
+ "shape": [
1343
+ 42,
1344
+ 6144,
1345
+ 64
1346
+ ]
1347
+ },
1348
+ {
1349
+ "name": "b0_mlp_w_scale2_1",
1350
+ "bytes": 1344,
1351
+ "dtype": 3,
1352
+ "shape": [
1353
+ 42,
1354
+ 8
1355
+ ]
1356
+ },
1357
+ {
1358
+ "name": "b0_mlp_w_scale2_2",
1359
+ "bytes": 1344,
1360
+ "dtype": 3,
1361
+ "shape": [
1362
+ 42,
1363
+ 8
1364
+ ]
1365
+ },
1366
+ {
1367
+ "name": "b0_mlp_w_scale2_3",
1368
+ "bytes": 1344,
1369
+ "dtype": 3,
1370
+ "shape": [
1371
+ 42,
1372
+ 8
1373
+ ]
1374
+ },
1375
+ {
1376
+ "name": "b0_mlp_w_scale3",
1377
+ "bytes": 16515072,
1378
+ "dtype": 1,
1379
+ "shape": [
1380
+ 42,
1381
+ 2048,
1382
+ 192
1383
+ ]
1384
+ },
1385
+ {
1386
+ "name": "b0_mlp_w_zp_scale1",
1387
+ "bytes": 1344,
1388
+ "dtype": 9,
1389
+ "shape": [
1390
+ 42,
1391
+ 16
1392
+ ]
1393
+ },
1394
+ {
1395
+ "name": "b0_mlp_w_zp_scale2",
1396
+ "bytes": 1344,
1397
+ "dtype": 9,
1398
+ "shape": [
1399
+ 42,
1400
+ 16
1401
+ ]
1402
+ },
1403
+ {
1404
+ "name": "b0_mlp_w_zp_scale3",
1405
+ "bytes": 1344,
1406
+ "dtype": 9,
1407
+ "shape": [
1408
+ 42,
1409
+ 16
1410
+ ]
1411
+ },
1412
+ {
1413
+ "name": "b0_kv0",
1414
+ "bytes": 134217728,
1415
+ "dtype": 9,
1416
+ "shape": [
1417
+ 512,
1418
+ 2,
1419
+ 256,
1420
+ 2,
1421
+ 128
1422
+ ]
1423
+ },
1424
+ {
1425
+ "name": "b0_kv1",
1426
+ "bytes": 134217728,
1427
+ "dtype": 9,
1428
+ "shape": [
1429
+ 512,
1430
+ 2,
1431
+ 256,
1432
+ 2,
1433
+ 128
1434
+ ]
1435
+ },
1436
+ {
1437
+ "name": "b0_kv2",
1438
+ "bytes": 134217728,
1439
+ "dtype": 9,
1440
+ "shape": [
1441
+ 512,
1442
+ 2,
1443
+ 256,
1444
+ 2,
1445
+ 128
1446
+ ]
1447
+ },
1448
+ {
1449
+ "name": "b0_kv3",
1450
+ "bytes": 134217728,
1451
+ "dtype": 9,
1452
+ "shape": [
1453
+ 512,
1454
+ 2,
1455
+ 256,
1456
+ 2,
1457
+ 128
1458
+ ]
1459
+ },
1460
+ {
1461
+ "name": "b0_kv4",
1462
+ "bytes": 134217728,
1463
+ "dtype": 9,
1464
+ "shape": [
1465
+ 512,
1466
+ 2,
1467
+ 256,
1468
+ 2,
1469
+ 128
1470
+ ]
1471
+ },
1472
+ {
1473
+ "name": "b0_kv5",
1474
+ "bytes": 134217728,
1475
+ "dtype": 9,
1476
+ "shape": [
1477
+ 512,
1478
+ 2,
1479
+ 256,
1480
+ 2,
1481
+ 128
1482
+ ]
1483
+ },
1484
+ {
1485
+ "name": "b0_kv6",
1486
+ "bytes": 134217728,
1487
+ "dtype": 9,
1488
+ "shape": [
1489
+ 512,
1490
+ 2,
1491
+ 256,
1492
+ 2,
1493
+ 128
1494
+ ]
1495
+ },
1496
+ {
1497
+ "name": "b0_kv7",
1498
+ "bytes": 134217728,
1499
+ "dtype": 9,
1500
+ "shape": [
1501
+ 512,
1502
+ 2,
1503
+ 256,
1504
+ 2,
1505
+ 128
1506
+ ]
1507
+ },
1508
+ {
1509
+ "name": "b0_kv8",
1510
+ "bytes": 134217728,
1511
+ "dtype": 9,
1512
+ "shape": [
1513
+ 512,
1514
+ 2,
1515
+ 256,
1516
+ 2,
1517
+ 128
1518
+ ]
1519
+ },
1520
+ {
1521
+ "name": "b0_kv9",
1522
+ "bytes": 134217728,
1523
+ "dtype": 9,
1524
+ "shape": [
1525
+ 512,
1526
+ 2,
1527
+ 256,
1528
+ 2,
1529
+ 128
1530
+ ]
1531
+ },
1532
+ {
1533
+ "name": "b0_kv10",
1534
+ "bytes": 134217728,
1535
+ "dtype": 9,
1536
+ "shape": [
1537
+ 512,
1538
+ 2,
1539
+ 256,
1540
+ 2,
1541
+ 128
1542
+ ]
1543
+ },
1544
+ {
1545
+ "name": "b0_kv11",
1546
+ "bytes": 134217728,
1547
+ "dtype": 9,
1548
+ "shape": [
1549
+ 512,
1550
+ 2,
1551
+ 256,
1552
+ 2,
1553
+ 128
1554
+ ]
1555
+ },
1556
+ {
1557
+ "name": "b0_kv12",
1558
+ "bytes": 134217728,
1559
+ "dtype": 9,
1560
+ "shape": [
1561
+ 512,
1562
+ 2,
1563
+ 256,
1564
+ 2,
1565
+ 128
1566
+ ]
1567
+ },
1568
+ {
1569
+ "name": "b0_kv13",
1570
+ "bytes": 134217728,
1571
+ "dtype": 9,
1572
+ "shape": [
1573
+ 512,
1574
+ 2,
1575
+ 256,
1576
+ 2,
1577
+ 128
1578
+ ]
1579
+ },
1580
+ {
1581
+ "name": "b0_kv14",
1582
+ "bytes": 134217728,
1583
+ "dtype": 9,
1584
+ "shape": [
1585
+ 512,
1586
+ 2,
1587
+ 256,
1588
+ 2,
1589
+ 128
1590
+ ]
1591
+ },
1592
+ {
1593
+ "name": "b0_kv15",
1594
+ "bytes": 134217728,
1595
+ "dtype": 9,
1596
+ "shape": [
1597
+ 512,
1598
+ 2,
1599
+ 256,
1600
+ 2,
1601
+ 128
1602
+ ]
1603
+ },
1604
+ {
1605
+ "name": "b0_kv16",
1606
+ "bytes": 134217728,
1607
+ "dtype": 9,
1608
+ "shape": [
1609
+ 512,
1610
+ 2,
1611
+ 256,
1612
+ 2,
1613
+ 128
1614
+ ]
1615
+ },
1616
+ {
1617
+ "name": "b0_kv17",
1618
+ "bytes": 134217728,
1619
+ "dtype": 9,
1620
+ "shape": [
1621
+ 512,
1622
+ 2,
1623
+ 256,
1624
+ 2,
1625
+ 128
1626
+ ]
1627
+ },
1628
+ {
1629
+ "name": "b0_kv18",
1630
+ "bytes": 134217728,
1631
+ "dtype": 9,
1632
+ "shape": [
1633
+ 512,
1634
+ 2,
1635
+ 256,
1636
+ 2,
1637
+ 128
1638
+ ]
1639
+ },
1640
+ {
1641
+ "name": "b0_kv19",
1642
+ "bytes": 134217728,
1643
+ "dtype": 9,
1644
+ "shape": [
1645
+ 512,
1646
+ 2,
1647
+ 256,
1648
+ 2,
1649
+ 128
1650
+ ]
1651
+ },
1652
+ {
1653
+ "name": "b0_kv20",
1654
+ "bytes": 134217728,
1655
+ "dtype": 9,
1656
+ "shape": [
1657
+ 512,
1658
+ 2,
1659
+ 256,
1660
+ 2,
1661
+ 128
1662
+ ]
1663
+ },
1664
+ {
1665
+ "name": "b0_kv21",
1666
+ "bytes": 134217728,
1667
+ "dtype": 9,
1668
+ "shape": [
1669
+ 512,
1670
+ 2,
1671
+ 256,
1672
+ 2,
1673
+ 128
1674
+ ]
1675
+ },
1676
+ {
1677
+ "name": "b0_kv22",
1678
+ "bytes": 134217728,
1679
+ "dtype": 9,
1680
+ "shape": [
1681
+ 512,
1682
+ 2,
1683
+ 256,
1684
+ 2,
1685
+ 128
1686
+ ]
1687
+ },
1688
+ {
1689
+ "name": "b0_kv23",
1690
+ "bytes": 134217728,
1691
+ "dtype": 9,
1692
+ "shape": [
1693
+ 512,
1694
+ 2,
1695
+ 256,
1696
+ 2,
1697
+ 128
1698
+ ]
1699
+ },
1700
+ {
1701
+ "name": "b0_kv24",
1702
+ "bytes": 134217728,
1703
+ "dtype": 9,
1704
+ "shape": [
1705
+ 512,
1706
+ 2,
1707
+ 256,
1708
+ 2,
1709
+ 128
1710
+ ]
1711
+ },
1712
+ {
1713
+ "name": "b0_kv25",
1714
+ "bytes": 134217728,
1715
+ "dtype": 9,
1716
+ "shape": [
1717
+ 512,
1718
+ 2,
1719
+ 256,
1720
+ 2,
1721
+ 128
1722
+ ]
1723
+ },
1724
+ {
1725
+ "name": "b0_kv26",
1726
+ "bytes": 134217728,
1727
+ "dtype": 9,
1728
+ "shape": [
1729
+ 512,
1730
+ 2,
1731
+ 256,
1732
+ 2,
1733
+ 128
1734
+ ]
1735
+ },
1736
+ {
1737
+ "name": "b0_kv27",
1738
+ "bytes": 134217728,
1739
+ "dtype": 9,
1740
+ "shape": [
1741
+ 512,
1742
+ 2,
1743
+ 256,
1744
+ 2,
1745
+ 128
1746
+ ]
1747
+ },
1748
+ {
1749
+ "name": "b0_kv28",
1750
+ "bytes": 134217728,
1751
+ "dtype": 9,
1752
+ "shape": [
1753
+ 512,
1754
+ 2,
1755
+ 256,
1756
+ 2,
1757
+ 128
1758
+ ]
1759
+ },
1760
+ {
1761
+ "name": "b0_kv29",
1762
+ "bytes": 134217728,
1763
+ "dtype": 9,
1764
+ "shape": [
1765
+ 512,
1766
+ 2,
1767
+ 256,
1768
+ 2,
1769
+ 128
1770
+ ]
1771
+ },
1772
+ {
1773
+ "name": "b0_kv30",
1774
+ "bytes": 134217728,
1775
+ "dtype": 9,
1776
+ "shape": [
1777
+ 512,
1778
+ 2,
1779
+ 256,
1780
+ 2,
1781
+ 128
1782
+ ]
1783
+ },
1784
+ {
1785
+ "name": "b0_kv31",
1786
+ "bytes": 134217728,
1787
+ "dtype": 9,
1788
+ "shape": [
1789
+ 512,
1790
+ 2,
1791
+ 256,
1792
+ 2,
1793
+ 128
1794
+ ]
1795
+ },
1796
+ {
1797
+ "name": "b0_kv32",
1798
+ "bytes": 134217728,
1799
+ "dtype": 9,
1800
+ "shape": [
1801
+ 512,
1802
+ 2,
1803
+ 256,
1804
+ 2,
1805
+ 128
1806
+ ]
1807
+ },
1808
+ {
1809
+ "name": "b0_kv33",
1810
+ "bytes": 134217728,
1811
+ "dtype": 9,
1812
+ "shape": [
1813
+ 512,
1814
+ 2,
1815
+ 256,
1816
+ 2,
1817
+ 128
1818
+ ]
1819
+ },
1820
+ {
1821
+ "name": "b0_kv34",
1822
+ "bytes": 134217728,
1823
+ "dtype": 9,
1824
+ "shape": [
1825
+ 512,
1826
+ 2,
1827
+ 256,
1828
+ 2,
1829
+ 128
1830
+ ]
1831
+ },
1832
+ {
1833
+ "name": "b0_kv35",
1834
+ "bytes": 134217728,
1835
+ "dtype": 9,
1836
+ "shape": [
1837
+ 512,
1838
+ 2,
1839
+ 256,
1840
+ 2,
1841
+ 128
1842
+ ]
1843
+ },
1844
+ {
1845
+ "name": "b0_kv36",
1846
+ "bytes": 134217728,
1847
+ "dtype": 9,
1848
+ "shape": [
1849
+ 512,
1850
+ 2,
1851
+ 256,
1852
+ 2,
1853
+ 128
1854
+ ]
1855
+ },
1856
+ {
1857
+ "name": "b0_kv37",
1858
+ "bytes": 134217728,
1859
+ "dtype": 9,
1860
+ "shape": [
1861
+ 512,
1862
+ 2,
1863
+ 256,
1864
+ 2,
1865
+ 128
1866
+ ]
1867
+ },
1868
+ {
1869
+ "name": "b0_kv38",
1870
+ "bytes": 134217728,
1871
+ "dtype": 9,
1872
+ "shape": [
1873
+ 512,
1874
+ 2,
1875
+ 256,
1876
+ 2,
1877
+ 128
1878
+ ]
1879
+ },
1880
+ {
1881
+ "name": "b0_kv39",
1882
+ "bytes": 134217728,
1883
+ "dtype": 9,
1884
+ "shape": [
1885
+ 512,
1886
+ 2,
1887
+ 256,
1888
+ 2,
1889
+ 128
1890
+ ]
1891
+ },
1892
+ {
1893
+ "name": "b0_kv40",
1894
+ "bytes": 134217728,
1895
+ "dtype": 9,
1896
+ "shape": [
1897
+ 512,
1898
+ 2,
1899
+ 256,
1900
+ 2,
1901
+ 128
1902
+ ]
1903
+ },
1904
+ {
1905
+ "name": "b0_kv41",
1906
+ "bytes": 134217728,
1907
+ "dtype": 9,
1908
+ "shape": [
1909
+ 512,
1910
+ 2,
1911
+ 256,
1912
+ 2,
1913
+ 128
1914
+ ]
1915
+ }
1916
+ ],
1917
+ "out": [
1918
+ {
1919
+ "name": "output",
1920
+ "bytes": 4096,
1921
+ "dtype": 9,
1922
+ "shape": [
1923
+ 1,
1924
+ 2048
1925
+ ]
1926
+ },
1927
+ {
1928
+ "name": "ids",
1929
+ "bytes": 4,
1930
+ "dtype": 6,
1931
+ "shape": [
1932
+ 1
1933
+ ]
1934
+ },
1935
+ {
1936
+ "name": "top_logits",
1937
+ "bytes": 4,
1938
+ "dtype": 3,
1939
+ "shape": [
1940
+ 1
1941
+ ]
1942
+ },
1943
+ {
1944
+ "name": "values",
1945
+ "bytes": 4096,
1946
+ "dtype": 3,
1947
+ "shape": [
1948
+ 1024
1949
+ ]
1950
+ },
1951
+ {
1952
+ "name": "kids",
1953
+ "bytes": 4096,
1954
+ "dtype": 6,
1955
+ "shape": [
1956
+ 1024
1957
+ ]
1958
+ },
1959
+ {
1960
+ "name": "vmax",
1961
+ "bytes": 4,
1962
+ "dtype": 3,
1963
+ "shape": [
1964
+ 1
1965
+ ]
1966
+ },
1967
+ {
1968
+ "name": "sumexp",
1969
+ "bytes": 4,
1970
+ "dtype": 3,
1971
+ "shape": [
1972
+ 1
1973
+ ]
1974
+ },
1975
+ {
1976
+ "name": "logits",
1977
+ "bytes": 522240,
1978
+ "dtype": 3,
1979
+ "shape": [
1980
+ 1,
1981
+ 130560
1982
+ ]
1983
+ }
1984
+ ]
1985
+ }
1986
+ }
1987
+ }
p4k.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ Summarize the following text.
2
+ a model design balances of for latency for on throughput processing of for the throughput and inference the devices latency balances unit model of bandwidth the the the on language the throughput edge processing and the large unit latency for language unit compute unit edge unit latency memory the and language on of neural on memory of bandwidth devices large and large edge processing memory memory model for large throughput model system for unit throughput and edge neural compute language devices edge compute design latency edge large of neural large throughput compute for the for system memory devices inference model model throughput on neural neural large unit the processing language language unit throughput large compute model compute latency balances edge language inference the throughput large a large language processing and system for compute model language processing large and for compute and compute the language language inference inference bandwidth latency inference the unit on neural language model neural design language balances system edge design design the latency the balances unit balances of inference neural compute memory design neural neural balances large neural edge balances on devices memory latency devices bandwidth for for of the memory throughput bandwidth and processing balances of balances large processing inference and the unit the throughput a system neural latency devices large edge and language unit on devices large latency unit large on the throughput edge model bandwidth edge on and system memory a processing system memory design design memory memory neural and model balances a the language system model processing model latency neural devices inference large system throughput processing compute of processing model edge and model processing for of edge throughput memory large for the bandwidth inference throughput memory the neural processing bandwidth model a bandwidth and processing balances edge of throughput language compute edge language for language unit design system design a neural neural language processing balances bandwidth inference large balances compute bandwidth bandwidth of memory unit inference devices for a model language of bandwidth system and design throughput a a bandwidth of inference model throughput design model language unit model design balances compute memory model language of latency balances of system memory the inference edge the design and of system processing unit model and neural of latency neural edge unit neural of and throughput language memory language balances devices for bandwidth of processing on bandwidth system the the memory inference bandwidth latency throughput bandwidth throughput design design bandwidth inference latency of balances processing inference language devices for edge compute balances neural language processing memory processing unit compute design balances design latency design on model on bandwidth unit throughput memory system bandwidth neural bandwidth model memory unit bandwidth of language inference model inference design unit unit the unit throughput design balances language design design the on the memory compute for for a of large bandwidth design large edge neural neural a a bandwidth memory of devices large inference memory a processing a language system bandwidth inference edge language devices processing neural memory and language neural system devices edge unit balances design edge latency and language balances language latency language latency the throughput bandwidth neural balances for the on and model the system devices compute model a model a a balances balances throughput model throughput neural inference design unit for the neural large bandwidth large on latency edge on unit unit bandwidth for edge for unit devices and bandwidth language inference on balances on unit system design large on compute neural large processing memory memory devices memory language compute neural devices devices latency inference design of inference large model throughput neural a balances and processing model system for edge throughput devices on compute throughput large neural language system large design balances on of balances design a inference edge edge devices design latency unit throughput and throughput neural bandwidth latency a inference for processing of and inference language and of edge memory balances unit throughput language the processing large latency model the the on inference unit balances processing neural memory a language processing balances memory model balances edge latency neural language compute for and of processing model throughput processing memory of the of model the language memory edge on a design large compute model memory and large edge compute large bandwidth the of latency devices latency compute memory language throughput bandwidth edge model for of on throughput throughput processing language the balances on inference large processing latency inference large and devices memory devices neural latency inference edge large processing compute large the edge throughput model and throughput bandwidth inference model devices design for unit on on memory on the and on a on throughput balances neural design inference the compute balances devices and edge language memory a latency balances for neural latency large system balances large of model and design compute design edge latency the neural large devices neural devices design throughput on devices balances inference memory processing large processing unit bandwidth balances design design devices large edge compute latency large language system neural memory on devices language balances compute inference unit throughput language throughput neural for balances inference bandwidth devices unit balances inference devices unit edge the inference throughput bandwidth and unit balances processing design on neural model latency model a inference balances latency large neural a a devices latency compute memory throughput unit of devices processing devices edge memory design of unit throughput bandwidth for of neural system system inference the processing edge system for devices large inference latency bandwidth edge balances of inference devices neural of unit throughput unit for latency throughput neural unit unit memory latency language model throughput processing latency devices balances bandwidth for model of processing design system the the for bandwidth throughput model memory processing throughput neural on a the the throughput a edge language system model throughput balances a design latency on memory the system language system large a system balances of and design processing the for on a balances edge processing edge latency throughput bandwidth on balances balances on on unit unit system model model neural compute and inference devices language on large system compute language and language processing devices language and edge design devices balances inference design balances neural of a system processing and system system on design large for large compute of bandwidth system a language system latency edge a throughput devices latency the large balances design balances bandwidth design memory system throughput system balances bandwidth a balances throughput of edge memory of and unit large language processing bandwidth bandwidth large throughput model for of a on latency large language model devices large language the memory neural processing compute throughput large bandwidth of and compute a model design system memory on language bandwidth and memory bandwidth compute balances bandwidth large large the large of a bandwidth bandwidth bandwidth model design latency balances for latency compute throughput design model system a system large for model balances unit devices model bandwidth compute on compute throughput memory latency inference bandwidth language large neural the a balances edge unit model a of neural and inference system of language edge balances devices of processing balances design on model large on design design processing on neural large and the model compute for devices memory unit processing inference for unit and latency edge compute language processing for design balances and processing the language throughput large for design throughput inference large model model and system compute latency the processing memory devices devices on the language of memory large bandwidth language on model language memory large and language large and inference on model memory latency memory a large latency model a language neural balances on the and edge model system compute and throughput memory edge edge the design design the throughput balances latency balances compute on for bandwidth throughput latency of for compute a and a the neural balances compute a model memory and balances large memory and devices balances and bandwidth for processing devices for throughput devices and design design a processing a unit the of balances a for of throughput on neural the design and inference system language processing language and compute system on of language edge and edge of balances edge balances neural for devices system processing edge on design throughput of edge latency memory edge large for throughput of inference for of a throughput inference devices processing neural large balances and language memory for on language processing inference bandwidth for of the edge compute devices balances system language on latency memory of unit large balances balances devices unit and a a balances processing and language on inference system language inference large a and balances balances for devices memory balances for processing for compute inference for unit bandwidth neural inference neural model devices latency language a system large bandwidth large devices a on processing bandwidth inference for for bandwidth of a a devices balances unit design on language devices system model neural edge of unit model processing large model edge memory and bandwidth the the memory inference unit design unit balances edge on bandwidth balances inference large throughput the of bandwidth compute a of balances a edge model system compute design design of memory bandwidth unit balances large system compute the design a throughput compute on devices unit of edge bandwidth balances the large bandwidth of compute on a inference balances throughput design edge model inference large for model and language throughput memory unit on memory language a system inference large of neural unit processing and balances language the balances language balances large balances for a throughput devices of compute design on language compute language language large edge model the inference memory latency edge a a design model a edge processing for bandwidth compute memory neural a throughput latency throughput of inference a balances memory edge edge on inference the language the on a throughput language of latency the and inference edge and balances compute and throughput inference latency system of for system on devices devices the system of model a large large compute language balances model on compute for devices unit inference unit of language compute neural of system devices bandwidth and compute balances edge on system inference and and throughput compute memory bandwidth latency devices unit on inference large a system bandwidth edge of large neural language on on for bandwidth devices of model the for processing throughput on neural throughput devices unit of unit bandwidth bandwidth edge unit edge latency for compute for on edge processing and latency throughput language of model for balances a a the throughput and of the on design neural latency throughput edge large memory a a large of balances the latency throughput on devices unit language devices throughput the language unit and neural edge neural bandwidth edge unit design language language neural neural throughput model the large processing and unit system large processing devices large devices inference on language design unit throughput latency of model on system throughput design language of on for system large unit the the memory latency balances and neural inference a language devices bandwidth language on latency large and language neural devices throughput devices throughput processing for balances compute a balances model balances neural inference design compute bandwidth a balances balances balances compute throughput balances model latency the a a balances unit processing design model language inference processing language and devices unit model a language latency throughput devices processing design on design a edge system the throughput throughput and edge a model inference a edge language language design unit throughput a memory processing edge throughput compute neural unit memory devices a compute for language memory design large memory processing devices latency the memory inference model of inference compute latency balances inference system system bandwidth neural a on of of and on model unit processing large large throughput of devices processing throughput edge large a devices model balances the devices of processing model throughput edge for language inference unit balances system on neural edge edge language large unit and balances edge and throughput balances for of edge a neural language the latency system for processing throughput language bandwidth unit of design edge system and latency processing neural inference large processing large throughput large compute processing unit compute edge model design bandwidth system latency system inference neural a memory for system model large design model throughput design throughput large model on memory throughput balances compute for system language for the and memory model bandwidth a inference model language balances design inference compute and throughput large the model model of system model large the of bandwidth bandwidth compute language system on compute model design for on design language latency bandwidth large language the neural bandwidth compute processing a model a model of throughput bandwidth large and compute bandwidth balances inference compute system devices design on unit balances throughput language memory model inference design design devices neural balances and design a memory language on balances unit processing of balances for system large memory processing language design language bandwidth bandwidth memory large a system latency compute system the bandwidth and neural language system devices model devices edge on large and neural processing unit of model a model large of balances latency processing system compute latency bandwidth inference compute unit on the the for system neural balances language system the unit design large neural system large processing processing latency memory unit for large compute bandwidth throughput on design processing inference neural processing edge inference memory model and inference for compute the for the of edge on model edge inference and devices model bandwidth bandwidth design on and processing devices large for inference model edge language large for inference edge model latency inference for neural balances edge large memory model throughput inference language balances balances memory the inference system latency latency compute unit large latency processing devices for bandwidth devices on a throughput and system on of compute the balances language system memory throughput the bandwidth bandwidth memory model system processing devices design bandwidth of edge on design a devices memory and inference bandwidth unit the on devices devices neural large model on compute memory memory throughput and large latency design processing and unit inference system inference unit on unit unit devices throughput throughput processing inference a memory compute the devices devices edge memory latency for neural edge a the compute and language bandwidth large for bandwidth inference of model on memory language edge balances and the memory design on for of large unit inference on balances and compute unit system of inference large large large neural a memory system design processing the edge system and devices the design system the system language bandwidth bandwidth the inference the language processing for processing balances memory model language large balances unit neural processing throughput system unit language devices latency system bandwidth bandwidth and of the model neural large on design neural processing unit neural memory of system bandwidth a design latency a unit system memory compute system model design latency processing unit edge neural of system processing system of design unit memory devices balances large and unit system balances processing bandwidth compute compute latency edge inference throughput edge throughput design and unit for bandwidth neural inference on of unit design and balances language memory bandwidth compute and latency compute compute bandwidth throughput for large the compute a memory neural memory model a language devices a neural latency on on a a neural design inference balances unit compute on bandwidth neural balances for memory design and a language compute latency of a edge bandwidth design edge neural for language system system processing on compute compute large compute large on edge compute bandwidth on of neural throughput system balances inference devices processing system unit memory bandwidth model throughput unit compute system unit memory devices model the processing of a unit compute large balances a neural unit design memory model large large language inference language and latency model large for neural large compute processing and design balances processing unit a a processing the neural for compute neural system compute design inference unit edge devices processing design latency on on processing inference bandwidth neural model devices edge devices the processing bandwidth for language system system compute for language compute a for design large bandwidth edge model edge memory inference bandwidth model design for bandwidth and design balances design edge on bandwidth the neural bandwidth unit bandwidth balances balances memory for and the memory neural on memory system of and and inference processing balances compute on model for model memory inference balances edge neural bandwidth a compute of throughput compute large model devices processing throughput latency a for devices unit system on unit design design system large large for model for devices bandwidth large neural model devices for throughput the throughput language language latency neural model model compute system compute compute latency unit devices on edge language memory design latency compute processing neural a latency system compute model bandwidth neural model for for the model unit inference system latency on neural large processing throughput latency of bandwidth balances a neural bandwidth a neural inference large memory unit language devices and latency latency large language memory neural large inference large memory model processing memory edge a edge the bandwidth of and throughput devices on large neural inference latency latency language latency compute processing system design of of language throughput a latency throughput neural for latency large model system model processing model latency for throughput memory compute neural inference balances neural the language system edge design language unit latency bandwidth latency bandwidth of throughput system latency balances and latency bandwidth large of neural throughput language and inference for large a bandwidth a compute a inference processing unit processing latency on a of devices of and system latency a compute language bandwidth balances throughput the throughput for devices latency memory devices memory on model throughput bandwidth memory neural of for neural latency a latency of language of language bandwidth bandwidth for edge language on bandwidth model bandwidth language model latency bandwidth for devices throughput language processing neural unit language processing inference unit system bandwidth inference system bandwidth and the compute compute compute inference inference edge and processing memory unit bandwidth throughput devices throughput edge neural the throughput on compute inference inference unit unit design inference bandwidth throughput processing devices memory of and the compute design and a of language neural bandwidth a throughput and bandwidth language on devices large balances processing processing neural neural language neural a of latency model large a and a bandwidth inference devices edge bandwidth inference a the compute neural unit unit devices for model for system on design a language for model a processing compute devices a balances compute design throughput for the large latency processing unit processing devices the devices memory system balances large processing design of of throughput bandwidth of latency devices model large devices on for edge balances a and compute on compute throughput and and compute language processing processing design a unit unit the unit edge throughput latency inference latency model of system neural large the system and balances and a unit devices edge compute and bandwidth model system large latency a devices large compute model system compute of unit on on of and a the compute a a memory the for on the for design model and design for language inference large of a language edge devices throughput on inference language and unit large throughput for bandwidth latency of design processing model inference devices compute of of compute of processing of devices on model design the large and unit design memory for inference system model and language memory throughput on system edge inference the balances inference for latency unit balances bandwidth for latency language system balances large neural devices latency latency memory model model neural bandwidth large edge throughput edge devices and edge language inference throughput for on unit memory the design a for of compute balances memory language memory a of large a latency system latency for model bandwidth language compute a devices the language processing balances inference design latency memory the on balances large devices the model throughput of of edge bandwidth inference inference on devices devices model latency design inference for large bandwidth model edge system processing neural system inference of system of language large memory processing neural language a unit processing design large compute devices model and balances inference a memory model unit design inference balances system the and inference memory for and and design neural processing edge system on and and compute compute large a neural unit unit system compute design latency bandwidth processing unit balances a devices devices large throughput of for edge inference the for memory balances devices memory processing a devices on throughput edge system throughput latency language the a unit for on of memory devices inference and processing large bandwidth of unit unit for model of neural for compute devices on inference on inference and throughput language and the on throughput a and a system memory throughput inference and on of processing inference balances for inference and balances large of bandwidth a language devices language balances edge edge the language edge of compute latency balances of memory a design and devices throughput the for model a language throughput for unit large the throughput system and inference design unit edge system latency design memory inference system compute system design design system model memory compute memory design language for inference compute bandwidth neural on compute large unit bandwidth inference unit unit on devices processing memory memory language bandwidth devices memory model the edge for balances edge unit a unit neural design balances throughput processing a neural language inference design bandwidth throughput devices processing neural system latency processing throughput of devices memory unit on memory large on latency bandwidth design design design unit of large latency devices language latency the inference neural latency and language of processing the unit memory processing large inference memory memory balances compute balances memory system the the on latency system processing design bandwidth latency edge memory of unit edge of processing the processing on a inference inference edge edge the latency the language unit for neural language the unit a design the a bandwidth model design large language balances processing throughput the language balances compute balances language throughput throughput large large language latency balances design neural for model throughput a inference processing large the large system bandwidth a unit bandwidth throughput system and model for large design devices system a language and language throughput language balances model system processing processing memory devices throughput memory large the model balances processing language large language neural unit design processing for neural system edge throughput memory the a of system devices model and for neural processing model latency edge of edge throughput unit design a bandwidth large for for large edge compute and model unit latency balances throughput compute throughput model unit throughput inference of neural edge inference on compute design the and model for system latency of on on unit latency compute large design bandwidth edge system balances model large inference bandwidth a model neural and edge memory devices latency unit for throughput the large balances of memory balances the model design bandwidth on large edge neural unit memory design neural latency compute throughput on latency edge for edge edge of model for model design edge system system the balances system balances memory neural language for inference devices edge bandwidth the latency bandwidth unit unit compute devices system the latency large processing throughput a neural unit design throughput system neural bandwidth the latency language inference large neural system and
p_chat50.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ System: You are a helpful, concise assistant. User: Explain in two sentences why the sky appears blue at midday and red near sunset, and why clouds are white, using language a curious ten-year-old can understand. Assistant:
p_short.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ The capital of France is
ppl_en.txt ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The river moved quietly through the valley before sunrise. A narrow road followed the water, passing orchards, workshops, and a few stone houses whose roofs had weathered many winters. The people of the town kept careful records of the seasons, the height of the river, and the arrival of birds. In the morning, farmers walked to the fields with tools over their shoulders, while children carried books to a school beside the old mill.
2
+
3
+ The mill had not turned for decades, but its wooden wheel remained in place, dark with age. A retired engineer repaired it one summer, replacing several broken boards and cleaning the iron axle. When the wheel finally moved again, water spilled over the rim and fell into the channel below, making a steady sound that could be heard from the square. Visitors came to watch, and someone painted a small sign explaining how grain had once been ground there.
4
+
5
+ Beyond the mill, a path climbed through a forest of pine and oak. The soil was soft and covered with needles, and the air smelled of resin. Mushrooms appeared after rain, some bright and some nearly invisible against the leaves. A local naturalist led walks along the path, pointing out bird calls and explaining how the forest recovered from a fire many years earlier. She carried a notebook and wrote down anything unusual, from a new nest to a patch of damaged bark.
6
+
7
+ The town library occupied a former warehouse near the station. Its high windows let in a cool, even light, and the shelves reached almost to the ceiling. Readers sat at long tables, turning pages and occasionally looking out at the trains. The librarian knew most of them by name and kept a list of requested books on a card near the desk. When a shipment arrived, she opened the boxes carefully, checked each spine, and placed the new volumes where they could be found.
8
+
9
+ In winter, the river sometimes froze along the edges, leaving a dark channel in the middle. People walked carefully on the bank and watched ducks gather in the open water. The bakery stayed warm, and its windows fogged with steam from the ovens. Fresh bread was stacked in baskets, and the smell drifted down the street. A few customers arrived before dawn, stamping snow from their boots and talking in low voices while they waited.
10
+
11
+ The railway station had only two platforms, but it connected the valley to the coast. A slow train stopped every morning and evening, carrying mail, parcels, and passengers. The stationmaster sold tickets from a small office and kept the stove burning through the coldest months. He also maintained a garden beside the platform, where roses bloomed in summer and a row of vegetables grew in neat lines.
12
+
13
+ On the hill above the town, an observatory opened its doors to the public once a month. Volunteers set up telescopes and explained how to find the brighter planets. On clear nights, the Milky Way appeared as a pale band across the sky, and people stood in silence, surprised by how much they could see away from the city lights. The dome rotated slowly, following a star until it disappeared behind the trees.
14
+
15
+ The market square filled on Saturdays with farmers, bakers, and craftsmen. One stall sold honey from hives kept on a nearby farm; another offered wool blankets woven on a handloom. A musician played a small stringed instrument near the fountain, and children dropped coins into an open case. Between the stalls, neighbors exchanged news about births, repairs, and the price of feed.
16
+
17
+ A community workshop occupied an old shed behind the square. It contained shared tools, a workbench, and a shelf of manuals. People came to repair bicycles, sharpen blades, or build simple furniture. An experienced carpenter supervised the younger members, showing them how to measure twice and cut once. The workshop also organized projects for the town, such as benches for the riverside path and bird boxes for the school garden.
18
+
19
+ As the seasons changed, the town adapted its routines. In spring, crews cleared the irrigation channels and repaired the footbridges. In summer, the square hosted evening concerts and the shops stayed open later. Autumn brought the harvest and a fair with stalls of apples, squash, and preserves. Winter slowed everything down, but the library, the bakery, and the station remained open, small points of light in the long evenings.
20
+
21
+ The people here did not think of their home as extraordinary. They knew its problems: the road flooded in heavy rain, the youngest residents often moved away, and the old buildings required constant care. Yet they also knew its strengths, the habits of cooperation and the patience to keep things working. Each generation added a little to what the previous one had built, and the river continued to flow past the bridge, carrying the same quiet message to anyone who stopped to listen.
22
+ A small workshop at the edge of town repaired agricultural machines. Its owner had learned the trade from his father and kept the old lathe in the corner, though most jobs now used newer equipment. Farmers brought in pumps, seeders, and small engines, often with stories about how each failure had happened. He listened, took notes, and then opened the casing to look for the cause. Some repairs took an hour; others required parts ordered from the city and a wait of several days.
23
+
24
+ The town had a volunteer fire brigade with a single truck and a shed behind the council office. Members trained on weekends, practicing hose drills and checking equipment. In summer, when dry grass covered the hills, they patrolled the roads and reminded residents to clear brush around their houses. Most calls turned out to be small fires or false alarms, but the crew treated every one seriously. Their radios crackled with numbers and place names that only they understood.
25
+
26
+ A footpath connected the school to the library, crossing a narrow stream on a wooden bridge. Children used it every afternoon, sometimes stopping to watch fish in the clear water. Parents had once worried about the bridge's condition, so the council replaced several planks and added a railing. A plaque near the entrance recorded the names of volunteers who had helped with the work. The path was short, but it had become a familiar part of the daily routine.
27
+
28
+ The bakery opened before dawn, when the streets were still dark. Its owner mixed dough in a large wooden trough, shaped loaves by hand, and slid them into a brick oven. The first batch was ready by the time the earliest customers arrived. Regulars bought the same bread every day, while visitors tried pastries filled with fruit or nuts. On holidays, the bakery made small cakes decorated with sugar, and the line stretched past the neighboring shop.
29
+
30
+ In the evenings, a group of residents met at the community hall to practice music. They had no professional training, but they enjoyed playing together. One played the violin, another the accordion, and a third kept time on a small drum. Their repertoire included folk songs, old dance tunes, and a few pieces learned from recordings. Concerts were held in the square during the summer, with chairs borrowed from the school and lights strung between the trees.
31
+
32
+ A weather station on the hill recorded rainfall, temperature, and wind speed. The data was sent to a regional office and also posted on a board near the council building. Farmers checked the board before deciding when to plant or harvest. During a drought, the numbers became a topic of daily conversation, and people compared them with memories of past years. The station was modest, but its records helped the community plan.
33
+
34
+ The river supported more than farms and mills. A small hatchery raised fish for release upstream, and biologists sampled the water to monitor its quality. They tested for oxygen, temperature, and signs of pollution, writing the results in a logbook. When a problem appeared, they traced it to a leaking pipe or an eroded bank and arranged for repairs. Their work rarely attracted attention, but it kept the river healthy for the plants and animals that depended on it.
35
+
36
+ Every year, the town held a festival to mark the end of the harvest. Streets were decorated with paper lanterns, and stalls sold food, crafts, and tools. A parade moved slowly through the center, led by a band and followed by children in costumes. In the evening, people gathered by the river to watch small boats carrying candles. The festival was not elaborate, but it brought together residents who otherwise seldom met.
37
+
38
+ Over time, the town changed. New houses appeared on the edges, and some old shops closed. Young people left for university or work in larger cities, returning on holidays with stories of elsewhere. Yet the core of the place remained: the river, the bridge, the library, and the habit of helping neighbors. Those who stayed believed that a community was built not from grand events but from ordinary days, repeated with care until they became a way of life.
ppl_zh.txt ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 清晨的河面泛着薄雾,石桥的拱影在水里若隐若现。镇上的木匠早早打开铺门,把刨花扫到街角,空气里带着杉木的清香。镇子不大,却有几条保存完好的老街,青石板上留着一代代人的脚印。每年春天,上游的雪水汇入河道,水面涨到石阶的第三层,孩子们便蹲在岸边放纸船,看它们顺着水流打转,最后消失在桥洞的阴影里。
2
+
3
+ 镇北的旧书院曾经是读书人聚集的地方,木窗上还留着褪色的字迹。管理员每周会把藏书搬到院子里晾晒,防止潮气侵蚀纸张。游客偶尔推门进来,安静地翻几页书,再沿着回廊走到后院,看那株据说有两百年的桂树。秋天花开的时候,整条街都能闻到香气,卖糖炒栗子的摊子也会搬到树下。
4
+
5
+ 铁路修通以后,小镇与外界的联系变得紧密。每天有两班慢车经过,车厢里坐着去城里上班的人,也有背着竹篓来赶集的老人。站台不大,只有一盏旧灯和一块手写的时刻表。列车进站时,风把站边的野草吹得东倒西歪,几分钟后一切又恢复平静。有人喜欢这种缓慢的节奏,觉得时间在这里走得更稳。
6
+
7
+ 沿河往下走,能看到一片试验田。农业站的技术员在这里试种新的水稻品种,记录水温、日照和土壤的变化。他们用简单的仪器测量,也把观察写进厚厚的笔记本。丰收季节,田里的颜色从青绿变成金黄,收割机来回穿梭,扬起的谷壳在夕阳里发亮。附近的农户会来帮忙,午饭就在田埂上解决,米饭配咸菜和一碗热汤。
8
+
9
+ 镇上的茶馆开在码头旁边,木桌被磨得光滑发亮。老板每天烧两壶水,一壶泡绿茶,一壶留给自带茶叶的熟客。人们在这里谈生意、下棋、交换消息,偶尔也有外地来的旅行者,摊开地图询问去山里的路。老板总是耐心地指点,顺便讲几段从前的故事,说这条河曾经运过木材和陶器,说码头最热闹的时候停满了船。
10
+
11
+ 傍晚,集市逐渐热闹起来。卖菜的摊主把最后一筐青菜摆上案板,卖鱼的人剖开一条刚捞上来的鲤鱼,刀刃在灯下闪了一下。孩子们围着小吃摊,老人坐在石阶上聊天,狗在桌子底下寻找掉落的食物。天色完全暗下来以后,街灯一盏接一盏亮起,河水反射着温暖的光,远处的山只剩下一道模糊的轮廓。
12
+
13
+ 深夜的河面重新安静,只听见水声和偶尔的犬吠。值班的巡河员沿着堤岸走一圈,检查水位标尺和闸门。他把手电筒的光照向水面,确认没有漂浮的杂物,然后在记录本上写下时间和读数。回到值班室,他泡一杯浓茶,翻开一本旧小说,等下一班巡查的时间到来。
14
+
15
+ 镇上的学校有一间小气象站,学生每天记录气温、湿度和风向。老师教他们读云图,也讲一些关于季风的知识。遇到暴雨,孩子们会轮流守着雨量筒,把数据抄在表格里。虽然设备简单,这些记录却坚持了十多年,成为研究当地气候的一份珍贵资料。
16
+
17
+ 周末的市场旁边,有一位修钟表的老人。他的工作台只有一平方米,摆满了螺丝刀、镊子和各种细小的零件。顾客把停摆的旧钟递给他,他先听一听机芯的声音,再拆开后盖,耐心地清理齿轮。修好以后,他会把钟放在耳边确认走时,然后微笑着交还给主人。
18
+
19
+ 夜色渐深,最后一班公交车驶离站台,尾灯在街角消失。店铺陆续关门,卷帘门落下的声音此起彼伏。河边的路灯照着空荡的长椅,风从水面吹来,带着一点凉意。小镇的一天就这样结束,而明天清晨,石桥上的薄雾还会准时出现。
20
+ 镇东头有一家小面馆,门脸不起眼,却在清晨五点就亮起灯。老板先熬一锅骨汤,再把面团反复揉压,切成粗细均匀的面条。常客大多在附近做工,进门不用开口,老板就知道谁要宽面、谁要细面、谁不要葱。墙上贴着一张手写的价目表,字迹有些褪色,价格却多年没变。逢到下雨,屋檐下会摆两张小桌,客人挤在一起吃面,热气把窗玻璃蒙成一片白色。
21
+
22
+ 面馆旁边是一间旧照相馆。橱窗里摆着黑白合影,照片上的人穿着几十年前的衣服,神情认真。店主如今主要做证件照,也替人修复老照片。他用细小的刷子清理灰尘,再扫描进电脑,一点点补上缺口。有人拿着祖辈的结婚照来,他端详许久,问清楚细节,才动手修补。照片交回去时,顾客常常沉默很久,然后轻声道谢。
23
+
24
+ 镇外的山坡上种着成片的茶树。采茶季节,天刚亮就有人背着竹篮上山,手指在枝叶间快速移动。茶园的负责人会根据天气安排采摘,雨天不采,露水太重也不采。鲜叶送到作坊后,先摊晾,再杀青、揉捻、烘干。整个过程靠经验,也靠记录。老师傅说,同一片茶园,不同年份的茶���道都不一样,那是气候和土壤留下的痕迹。
25
+
26
+ 山脚下有一个小水库,承担着灌溉和防洪的功能。管理员每天查看水位,定期清理拦污栅。夏天暴雨时,他会整夜守在闸房,根据上游来水调整开度。水库边立着一块告示牌,提醒人们不要下水游泳。傍晚,附近居民沿着堤坝散步,看水面映出晚霞,偶尔有白鹭从对岸飞起。
27
+
28
+ 镇卫生院只有几间诊室,却能为居民提供基本的检查和治疗。医生熟悉每一户的情况,知道谁有高血压,谁需要定期复查。遇到需要转诊的病人,他会提前联系城里的医院,写好病历,叮嘱家属带齐材料。药房的柜子按类别摆放,每一种药都标着有效期,管理员每月核对一次。
29
+
30
+ 文化站每周放映一场电影,票价很低,观众多是老人和孩子。放映前,工作人员会把椅子摆整齐,调好音响。片子有时是旧电影,有时是新纪录片,结束后还会留一点时间让大家讨论。有人喜欢看风景片,有人喜欢看历史故事,意见不同时也会争几句,但散场时总是客客气气。
31
+
32
+ 镇上的邮政所负责收发信件和包裹。柜台后面的架子上,分门别类放着寄往各村的邮件。邮递员每天骑着摩托车走山路,遇到雨天就换成步行。他知道哪家老人不会用手机,也知道哪户人家的孩子在外地读书。送到门口时,他总会多问一句身体怎么样,然后再赶往下一家。
33
+
34
+ 这些细碎的日常构成了小镇的秩序。它们不显眼,也不常被写进新闻,却让生活得以延续。有人离开,有人回来,有人选择留下。河水继续流,桥上的行人继续走,店铺按时开门,学校按时上课。日子并不总是顺利,但人们总能找到办法,把问题一件一件解决。
run.sh ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ # MiniCPM5-2B (Q8_0, MXFP8 kernels) on AX8860 (llama.cpp + ggml-axera).
3
+ # ./run.sh "<prompt>" [n] greedy text completion, n tokens (default 512)
4
+ # ./run.sh -c multi-turn chat
5
+ # ./run.sh -s [port] OpenAI-compatible server
6
+ #
7
+ # Override CTX, CTXCP, GGUF or GGML_AXERA_KERNEL_DIR from the environment.
8
+ set -u
9
+ H=$(cd "$(dirname "$0")" && pwd)
10
+ chmod +x "$H"/bin/* 2>/dev/null
11
+ export LD_LIBRARY_PATH=/opt/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
12
+ export GGML_AXERA_KERNEL_DIR=${GGML_AXERA_KERNEL_DIR:-$H/kernels}
13
+ G=${GGUF:-$H/MiniCPM5-2B-Q8_0.gguf}
14
+ M="-m $G -ngl 99"
15
+ CTX=${CTX:-16384}
16
+ CTXCP=${CTXCP:-8}
17
+
18
+ case "${1:-}" in
19
+ -s)
20
+ exec "$H/bin/llama-server" $M -c "$CTX" -b 4096 -ub 4096 -np 1 -ctxcp "$CTXCP" \
21
+ --cache-ram 4096 --jinja --chat-template-file "$H/chat_template.jinja" \
22
+ --reasoning "${REASONING:-auto}" --host 0.0.0.0 --port "${2:-8080}"
23
+ ;;
24
+ -c)
25
+ exec "$H/bin/llama-completion" $M -c "$CTX" -b 4096 -ub 4096 -cnv \
26
+ --jinja --chat-template-file "$H/chat_template.jinja" --reasoning "${REASONING:-auto}"
27
+ ;;
28
+ *)
29
+ exec "$H/bin/llama-completion" $M -c "$CTX" -b 4096 -ub 4096 \
30
+ -p "${1:-The capital of France is}" -n "${2:-512}" --temp 0 -no-cnv
31
+ ;;
32
+ esac