Views
No views yet
xasr-official-onnx-contextgraph-ab-v118766| 归档 | 平台 | 说明 |
|---|---|---|
xasr-official-onnx-contextgraph-ab-v1-linux-x86_64-py312.tar.zst | Linux x86_64 | 生产 18766 同版本,支持 Docker |
xasr-official-onnx-contextgraph-ab-v1-macos-arm64-py312.tar.zst | macOS arm64(Apple Silicon) | 同版本平台变体,仅 wheelhouse 换成 macOS arm64 wheel;要求 macOS 14 (Sonoma)+ 与原生 arm64 Python 3.12,不含 Dockerfile |
xasr-official-onnx-contextgraph-ab-v1-windows-amd64-py312.tar.zst | Windows x86_64 (amd64) | 同版本平台变体,仅 wheelhouse 换成 Windows amd64 wheel;要求 Windows 10 1809 / Server 2019+ 与 64 位 Python 3.12,用 start.bat 启动,不含 Dockerfile |
wheelhouse/ 不同。boost_mode=pre + score 默认 4)基础上修复英文热词构图缺陷并重标 score 刻度:boost_mode=pre 且 score 为 8 的请求现在会被 API 拒绝。boost_mode=post 保留 v1.1 行为,覆写范围仍为 1–16。API.md 与 VALIDATION.md(v1.3.0 章节含完整根因、刻度扫描依据与已知边界)。三个归档各有 sidecar .sha256,下载后先校验:1sha256sum -c xasr-official-onnx-contextgraph-ab-v1-<platform>-py312.tar.zst.sha256
2zstd -dc xasr-official-onnx-contextgraph-ab-v1-<platform>-py312.tar.zst | tar -xtokens.txt;AGENT.md,其中固定了模型文件匹配、性能口径、生产数据治理和修改后的重打包门禁。python3 verify_package.pypackage verification passed。不要混用不同 chunk 目录中的 encoder、decoder、joiner 或 tokens。brew install python@3.12),不要在 Rosetta x86_64 Python 下安装。1python3.12 -m venv .venv
2. .venv/bin/activate
3python -m pip install --no-index --find-links wheelhouse -r requirements.txt
4./start.shXASR_HOST=0.0.0.0 XASR_PORT=18766 ./start.shcurl --noproxy '*' http://127.0.0.1:18766/api/health1{
2 "service_version": "xasr-official-onnx-contextgraph-ab-v1",
3 "runtime": "onnxruntime + kaldi-native-fbank",
4 "plain_decoder": "official greedy_search",
5 "encoder_shared_between_lanes": true
6}1docker build -t xasr-hotword:v1 .
2docker run --rm -p 18766:18766 xasr-hotword:v1python:3.12-slim。仅 Linux x86_64 归档含 Dockerfile;macOS / Windows 归档的 wheelhouse 无法在 Linux 容器内安装,请原生启动。API.md。最小 WAV 客户端:1python examples/ws_wav_client.py \
2 --url http://127.0.0.1:18766/ws \
3 --wav /path/to/16k-mono-pcm16.wav \
4 --hotword 模思智能 \
5 --hotword 阶跃星辰 \
6 --hotword 智谱latency_ms=480:默认平衡档;boost_mode=pre、hotwords_score=4(v1.3.0 默认);max_active_paths=8;boost_mode=post 为 v1.1 兼容模式(建议 8,覆写上限 16,不要全局 10/12)。"模思智能:6" 或 {"text": "模思智能", "score": 6}。热词表存在互为近音的词时,把关键热词覆写到 6 可避免被近音词抢占(验收依据见包内 VALIDATION.md)。EDGE_DEPLOYMENT_BENCHMARK.md。其中 GPU 数字是移植预算估算,不是当前包实测;可直接部署的平台是 Linux x86_64 CPU、macOS arm64 CPU 与 Windows amd64 CPU。以上 RTF/内存数字在 Linux x86_64 上实测,Apple Silicon 与 Windows 请用 tools/benchmark_xasr_delivery_runtime.py 复测(Windows 上 benchmark 的内存字段返回 null,请用任务管理器观察)。1assets/base_model/deployment/models/ 四档官方 ONNX 与 tokens
2tools/xasr_onnx_contextgraph_ab_demo.py 正式服务
3tools/benchmark_xasr_delivery_runtime.py CPU/内存/长音频复现基准
4tools/xasr_official_demo.py HTTP/WS 公共协议与页面
5vendor/icefall/icefall/context_graph.py fine-grained ContextGraph
6vendor/X-ASR/.../bpe_punc.model 标点词表 SentencePiece
7examples/ws_wav_client.py 后端调用示例
8requirements.txt / wheelhouse/ 固定依赖与离线 wheels
9MANIFEST.sha256 / verify_package.py 文件完整性校验
10AGENT.md 后端维护与代理接手约束runs/xasr_hotword_demo/user_cases/。后端需要为该目录配置持久卷、容量限制和数据保留策略;如涉及生产隐私,请按业务规范加访问控制或关闭外部采集。