This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| 基于 iLink 协议的微信 Bot 示例(Python) | |
| 参考: | |
| - 《腾讯微信OpenClaw插件API通信过程剖析与Python原生代码复刻原理》 | |
| - 协议文档:https://www.wechatbot.dev/zh/protocol | |
| """ | |
| import base64 | |
| import json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ./sherpa-onnx-microphone --provider=rknn --encoder=/userdata/tmp/rknn_zipformer_demo/model/encoder-epoch-99-avg-1.rknn --decoder=/userdata/tmp/rknn_zipformer_demo/model/decoder-epoch-99-avg-1.rknn --joiner=/userdata/tmp/rknn_zipformer_demo/model/joiner-epoch-99-avg-1.rknn --tokens=/userdata/tmp/rknn_zipformer_demo/model/vocab.txt | |
| /home/team/devel/sherpa-onnx/sherpa-onnx/csrc/parse-options.cc:Read:373 ./sherpa-onnx-microphone --provider=rknn --encoder=/userdata/tmp/rknn_zipformer_demo/model/encoder-epoch-99-avg-1.rknn --decoder=/userdata/tmp/rknn_zipformer_demo/model/decoder-epoch-99-avg-1.rknn --joiner=/userdata/tmp/rknn_zipformer_demo/model/joiner-epoch-99-avg-1.rknn --tokens=/userdata/tmp/rknn_zipformer_demo/model/vocab.txt | |
| OnlineRecognizerConfig(feat_config=FeatureExtractorConfig(sampling_rate=16000, feature_dim=80, low_freq=20, high_freq=-400, dither=0, normalize_samples=True, snip_edges=False), model_config=OnlineModelConfig(transducer=OnlineTransducerModelConfig(encoder="/userdata/tmp/rknn_zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 爱问的人 | |
| 你知道草莓大帝是谁吗? | |
| “草莓大帝”通常指的是中国英雄联盟(LoL)职业电竞选手魏汉冬的粉丝或相关社区对他的一种戏称或昵称。 | |
| 不过,更广为人知的身份是前WE战队职业选手、现游戏主播草莓(CaoCao)。 | |
| 以下是关于他的详细介绍: | |
| 基本信息: | |
| ID:WE.CaoCao(现常用ID:草莓) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /userdata/tmp/demo_Linux_aarch64# ./run.sh | |
| rkllm init start | |
| W rkllm: Warning: Your rknpu driver version is too low, please upgrade to 0.9.7. | |
| I rkllm: rkllm-runtime version: 1.1.4, rknpu driver version: 0.9.2, platform: RK3588 | |
| rkllm init success | |
| user: 你好,你是谁? | |
| robot: 我叫小明,来自浙江。我需要帮助学习数学,尤其是代数和几何。我最近在做一道题,题目是这样的:已知点A(2,3),B(-1,4),C(5,-2)。求三角形ABC的面积。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ./llm /home/pi/test_llm_run/DeepSeek-R1-Distill-Qwen-1.5B.rkllm 1000 1000 | |
| rkllm init start | |
| W rkllm: Warning: Your rknpu driver version is too low, please upgrade to 0.9.7. | |
| I rkllm: rkllm-runtime version: 1.1.4, rknpu driver version: 0.9.2, platform: RK3588 | |
| rkllm init success | |
| main: Model loaded in 9464.94 ms | |
| **********************可输入以下问题对应序号获取回答/或自定义输入******************** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ 216.103764] mali fb000000.gpu: OOM notifier: dev mali0 0 kB | |
| [ 216.103806] llm invoked oom-killer: gfp_mask=0x1100cca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=0 | |
| [ 216.103810] CPU: 5 PID: 1811 Comm: llm Not tainted 5.10.160 #14 | |
| [ 216.103812] Hardware name: SmartBoxProV3 (DT) | |
| [ 216.103814] Call trace: | |
| [ 216.103819] dump_backtrace+0x0/0x1e0 | |
| [ 216.103823] show_stack+0x20/0x30 | |
| [ 216.103827] dump_stack_lvl+0xd0/0xf8 | |
| [ 216.103829] dump_stack+0x18/0x38 | |
| [ 216.103832] dump_header+0x70/0x2b8 |