Document Pocket and MOSS CPU auditions alongside loaded Strata

This commit is contained in:
Mikei386 committed 2026-10-17 22:07:59 +02:00
1 parent 12e1c638a8
commit 963b5e717d
16 files changed
+890

No files matched your search

@@ -0,0 +1,97 @@
# Pocket TTS and MOSS-TTS-Nano CPU auditions — 17 October 2026
Requested: test the two small TTS engines alongside loaded Strata, with CPU
fallback, and compare AT-Helper. No Deck, Hermes, model profile, existing TTS/STT
service, container image, GPU allocation, or default voice changed. No restart.
## Conditions and interpretation
Athena Ryzen 5 5600: Strata IQ3 512K remained loaded in the same GPU process
(PID 1436023 before/after). Available VRAM was 714 MiB on RTX3060 and 510 MiB on
RTX5080; both engines therefore used CPU. This tests coexistence with loaded
Strata, not throughput during a simultaneous inference stress test.
AT-Helper: Xeon X3450, no AVX; CPU only, RX470 unused. Four Torch/ONNX threads
and CPUQuota=400% on each host. Separate transient systemd test units, Athena
MemoryMax=6G, Helper MemoryMax=4G, both MemorySwapMax=0. Existing services kept
running. Host filesystem test root on each: `/opt/athena-small-tts-tests-20261017`.
The same synthetic German text is included in result JSON. Two generations
per engine/host, one process, model reused. `load_seconds` starts before imports
and ends when model is ready. Pocket preset loading is separate
`reference_seconds`; synthesis timings include producing all streaming chunks.
Pocket is stochastic/unseeded, so audio lengths differ. MOSS uses seed42 and
the official fixed sampler, max750 frames, streaming codec enabled; generation
includes reference processing and WAV writing. No MOSS first-audio latency was
measured. RTF=generation_seconds/audio_seconds; below1 means faster than real time.
Pocket language is explicitly `german`, official `juergen` preset. Attempting
Anna cloning returned the official gated-weight error: acceptance at
https://huggingface.co/kyutai/pocket-tts and authenticated download required.
The public non-cloning German model/preset works without authentication. No
gating bypass, token extraction, or silent English-model substitution.
MOSS uses the existing private Anna reference, internally trimmed to6s. The
private reference is neither committed nor delivered as a generated sample.
Voices therefore differ between engines; this is not a controlled voice-quality
ranking.
Sources: https://github.com/kyutai-labs/pocket-tts and
https://github.com/OpenMOSS/MOSS-TTS-Nano. Pinned source commits in `sources.json`.
Weights and ONNX codec files are captured by exact HF revision metadata and
SHA256 in host manifests. No model weights, reference audio or credentials in Git.
## Reproduce on native Debian
Prerequisites: Python3.13, python3-venv, working HTTPS/CA certificates, network
access to official PyPI, PyTorch CPU index and public HF model repositories.
No CUDA, Docker, Deck-container libraries or production venv required.
1. Create a private test directory and `python3 -m venv venv` there.
2. Fetch each public source archive at the commit in `sources.json`, preserving
`pocket-tts-<commit>` and `MOSS-TTS-Nano-<commit>` directory names.
3. `venv/bin/pip install torch==2.7.0 torchaudio==2.7.0 --index-url https://download.pytorch.org/whl/cpu`
4. `venv/bin/pip install ./pocket-tts-<commit> soundfile onnxruntime transformers==4.57.1`
Exact resolved package versions are in each manifest. MOSS's ONNX entrypoint
still imports Torch/Torchaudio for reference processing. Its optional WeText
Chinese normalization is explicitly disabled via the official API flag for
this German, already-spelled-out input; source code is unchanged.
5. Copy `bench.py`, `manifest.py` into the test root. Restore an authorized
private6s PCM WAV as `reference.wav` for MOSS. Pocket uses its public preset.
6. `venv/bin/python bench.py pocket --prepare` and `... bench.py moss --prepare`
download/prepare models. Downloads are excluded from reported cached loading
comparisons. Recover exact files using HF revisions/paths/checksums in manifests.
7. Sequentially `venv/bin/python bench.py pocket`, then `... bench.py moss`, under
the resource limits above. Never overlap engines in the comparison.
8. `venv/bin/python manifest.py`; `venv/bin/pip check` must pass.
The first exploratory installation resolved Torch2.14.1/Torchaudio2.11.0.
Pocket worked, but MOSS reference loading requested TorchCodec. Corrected to
the MOSS project's explicit Torch2.7.0/Torchaudio2.7.0 dependency versions;
reran both engines on both hosts for a consistent final comparison. No library
monkey patch, source edit, extra codec workaround or production package change.
Generated WAVs are retained in the test root; local delivery copies and MP3s
under workspace `work/small-tts-20261017/{athena,helper}/`. MP3s encoded and fully
decoded with local FFmpeg before delivery. Existing local Parakeet Redux STT
checks are retained alongside numerical results; these are an intelligibility
check, not a listening score or proof of voice similarity.
These are optional experiments, not an installed Deck endpoint or production
voice change. Updates mean creating another isolated pinned test environment.
Completed transient units require no autostart and leave no resident TTS worker.
Public models are recoverable by revision/checksum. Private reference audio stays
in the existing encrypted voice backup scope; no full native host restore tested.
## Measured results
|Host / engine|Cached process + model load|Generate run1 / run2|Audio run1 / run2|RTF run1 / run2|Peak RSS|
|---|---:|---:|---:|---:|---:|
|athena / pocket|3.08s|4.71s / 4.78s|10.00s / 9.84s|0.471 / 0.485|1000MiB|
|athena / moss|4.61s|18.78s / 16.73s|12.32s / 12.32s|1.524 / 1.358|2354MiB|
|helper / pocket|5.64s|8.03s / 7.80s|9.20s / 9.12s|0.872 / 0.856|1003MiB|
|helper / moss|10.29s|45.43s / 45.42s|12.32s / 12.32s|3.688 / 3.687|2404MiB|
Pocket first streamed chunk: Athena0.095/0.133s, Helper0.347/0.323s after synthesis start (model already loaded). Pocket preset load ~0.002s. Helper MOSS initial21.28s model load included downloads; cached loading10.29s was measured separately and is shown above.
STT: Athena Pocket retains the requested words (punctuation/number formatting varies). Helper Pocket returned “testen mir” / “deinen Rechner”. MOSS on both hosts returned “Maiko” and “Kasruhr” for Michael/Karlsruhe. These may reflect synthesis or STT errors; listen to the delivered samples. Neither engine is assigned a subjective quality score.
Both hosts downloaded identical model file content, verified by relative-path/size/SHA256 maps (directory enumeration order differs). Both final pip-checks passed. All own final benchmark and cached-load units finished/inactive. Strata PID1436023 remained loaded. Test environments/models remain available for later experiments, with no new persistent/autostart service.
@@ -0,0 +1,271 @@
{
"python": "3.13.5",
"packages": [
"annotated-doc==0.0.5",
"annotated-types==0.8.0",
"anyio==4.15.1",
"certifi==2026.7.22",
"cffi==2.1.1",
"charset-normalizer==3.5.2",
"click==8.5.0",
"einops==0.8.2",
"fastapi==0.143.3",
"filelock==3.32.3",
"flatbuffers==25.12.19",
"fsspec==2026.7.0",
"h11==0.16.0",
"hf-xet==1.7.0",
"huggingface_hub==0.36.2",
"idna==3.20",
"Jinja2==3.1.6",
"markdown-it-py==4.2.0",
"MarkupSafe==3.0.3",
"mdurl==0.1.2",
"mpmath==1.3.0",
"networkx==3.6.1",
"numpy==2.5.4",
"onnxruntime==1.31.0",
"opentelemetry-api==1.45.1",
"packaging==26.3",
"pocket-tts @ file:///opt/athena-small-tts-tests-20261017/pocket-tts-fbea645333cd5c64e72688e0a96e54e69bbb9602",
"protobuf==7.36.2",
"pycparser==3.11",
"pydantic==2.14.1",
"pydantic_core==2.50.1",
"Pygments==2.21.0",
"python-multipart==0.0.32",
"PyYAML==6.0.3",
"regex==2026.9.29",
"requests==2.34.2",
"rich==15.0.0",
"safetensors==0.8.0",
"scipy==1.18.1",
"sentencepiece==0.2.2",
"setuptools==78.1.0",
"shellingham==1.5.4",
"soundfile==0.14.0",
"starlette==1.8.0",
"sympy==1.14.0",
"tokenizers==0.22.2",
"torch==2.7.0+cpu",
"torchaudio==2.7.0+cpu",
"tqdm==4.70.1",
"transformers==4.57.1",
"typer==0.27.3",
"typing-inspection==0.4.4",
"typing_extensions==4.16.0",
"urllib3==2.8.0",
"uvicorn==0.54.0"
],
"files": [
{
"path": "hf-cache/hub/models--kyutai--pocket-tts-without-voice-cloning/snapshots/1e08e6a23401048648a9fdcfde2f89348215c2a7/languages/german/model.safetensors",
"bytes": 219029196,
"sha256": "9fe42605604832349e3f495177bde56b77ae8fee73b2ed4b63236092ccde7621"
},
{
"path": "hf-cache/hub/models--kyutai--pocket-tts-without-voice-cloning/snapshots/575d14372df89a4534bcb989870a34e77544b09f/languages/german/embeddings/juergen.safetensors",
"bytes": 6096696,
"sha256": "65104a25b2aa797c50b2cee555cb75deb6abba10169168b95857227a054126d1"
},
{
"path": "hf-cache/hub/models--kyutai--pocket-tts-without-voice-cloning/snapshots/4e1e0a3e611c51c0b4ed8174fc10f32a54644303/languages/german/tokenizer.json",
"bytes": 245966,
"sha256": "2d77849811e3d1b6ae80e5b11b203f57e1847901104d8a0573b34f46f8dddb53"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/moss_tts_global_shared.data",
"bytes": 440813568,
"sha256": "bce8312c3df6a44545302cae229b61054fe0672e0b252ba59cba47adeed831dc"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/moss_tts_prefill.onnx",
"bytes": 283305,
"sha256": "d56126dcd0574c2f15d98fc6b35eda68d0386b5bd9c5e38e28548d6f2ea8f3db"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/moss_tts_local_decoder.onnx",
"bytes": 49231,
"sha256": "51aa754301b38550a5f9adda0ad93bd3dc95819afb511e6dcabf4a90b345a454"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/tokenizer.model",
"bytes": 470897,
"sha256": "c353ee1479b536bf414c1b247f5542b6607fb8ae91320e5af1781fee200fddff"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/browser_poc_manifest.json",
"bytes": 503354,
"sha256": "097d80e993dc29f0bae427590b4f77084a161cb578b50d82c29f455d5faa9eee"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/moss_tts_local_fixed_sampled_frame.onnx",
"bytes": 471262,
"sha256": "40cdb00efc171c450cf91468e01429caa41b0252222cd308e978f58fe354afa8"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/tts_browser_onnx_meta.json",
"bytes": 4487,
"sha256": "3edf25232dcd0af3d061c837e9a968a39e2f8592e06777d740503c4f2244f95c"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/moss_tts_local_cached_step.onnx",
"bytes": 53685,
"sha256": "aa9035fefc1c138a951a8bcfc0374fb03a25f1ece67f7f7f53bce349b84a1dd5"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/moss_tts_local_shared.data",
"bytes": 229678080,
"sha256": "bae7782032c0fb12490ab42afe009f87ae6c75a0f0596fc7b5c08e4d5ee93916"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/moss_tts_decode_step.onnx",
"bytes": 291483,
"sha256": "698cbc2fc1c2feca16e5895614ed52bbb32ded10f236c076f477b2e69abf32d8"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/moss_audio_tokenizer_encode.onnx",
"bytes": 815775,
"sha256": "eadea4a645abdcf98714c7aead122ee2ce7da6e080f9f80b977cd1ca8e19473a"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/moss_audio_tokenizer_encode.data",
"bytes": 44507136,
"sha256": "aa751265b2bab2887eac224484546b194875aa7494b607115439b3dc6b228a2c"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/codec_browser_onnx_meta.json",
"bytes": 17036,
"sha256": "3e291c883bb7d11ff2fe8e964e3e495519760358859f35c951254c7741592731"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/moss_audio_tokenizer_decode_shared.data",
"bytes": 44198912,
"sha256": "e69d52e0f4e84ca27850557ee54face46632d3a5a16c89bd246c7c408466dcad"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/moss_audio_tokenizer_decode_step.onnx",
"bytes": 351400,
"sha256": "9527c86a29e1837edec1f74db57d5eeaadb3a715af3382703566460afed25855"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/moss_audio_tokenizer_decode_full.onnx",
"bytes": 681902,
"sha256": "0fbbafe3fd4afa2a019af5c5ced204af6e2d1db044fa40f021525d2aee95b4ac"
}
],
"hf_metadata": [
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/.cache/huggingface/download/moss_audio_tokenizer_encode.data.metadata",
"metadata": [
"ceff0d0749bfb3fa2d61149794ec6feef0d1e1ae",
"aa751265b2bab2887eac224484546b194875aa7494b607115439b3dc6b228a2c"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/.cache/huggingface/download/codec_browser_onnx_meta.json.metadata",
"metadata": [
"ceff0d0749bfb3fa2d61149794ec6feef0d1e1ae",
"886953a56489516b847b7c1c953bde063eb78faa"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/.cache/huggingface/download/moss_audio_tokenizer_decode_full.onnx.metadata",
"metadata": [
"ceff0d0749bfb3fa2d61149794ec6feef0d1e1ae",
"0fbbafe3fd4afa2a019af5c5ced204af6e2d1db044fa40f021525d2aee95b4ac"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/.cache/huggingface/download/moss_audio_tokenizer_decode_shared.data.metadata",
"metadata": [
"ceff0d0749bfb3fa2d61149794ec6feef0d1e1ae",
"e69d52e0f4e84ca27850557ee54face46632d3a5a16c89bd246c7c408466dcad"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/.cache/huggingface/download/moss_audio_tokenizer_encode.onnx.metadata",
"metadata": [
"ceff0d0749bfb3fa2d61149794ec6feef0d1e1ae",
"eadea4a645abdcf98714c7aead122ee2ce7da6e080f9f80b977cd1ca8e19473a"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/.cache/huggingface/download/moss_audio_tokenizer_decode_step.onnx.metadata",
"metadata": [
"ceff0d0749bfb3fa2d61149794ec6feef0d1e1ae",
"9527c86a29e1837edec1f74db57d5eeaadb3a715af3382703566460afed25855"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/.cache/huggingface/download/moss_tts_prefill.onnx.metadata",
"metadata": [
"f52645cb467506d8e18e746ddd59482685b74e58",
"d56126dcd0574c2f15d98fc6b35eda68d0386b5bd9c5e38e28548d6f2ea8f3db"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/.cache/huggingface/download/tokenizer.model.metadata",
"metadata": [
"f52645cb467506d8e18e746ddd59482685b74e58",
"c353ee1479b536bf414c1b247f5542b6607fb8ae91320e5af1781fee200fddff"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/.cache/huggingface/download/moss_tts_local_fixed_sampled_frame.onnx.metadata",
"metadata": [
"f52645cb467506d8e18e746ddd59482685b74e58",
"40cdb00efc171c450cf91468e01429caa41b0252222cd308e978f58fe354afa8"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/.cache/huggingface/download/tts_browser_onnx_meta.json.metadata",
"metadata": [
"f52645cb467506d8e18e746ddd59482685b74e58",
"883597607ce139b2c4871468396af2c088ed2fe0"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/.cache/huggingface/download/moss_tts_global_shared.data.metadata",
"metadata": [
"f52645cb467506d8e18e746ddd59482685b74e58",
"bce8312c3df6a44545302cae229b61054fe0672e0b252ba59cba47adeed831dc"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/.cache/huggingface/download/moss_tts_local_cached_step.onnx.metadata",
"metadata": [
"f52645cb467506d8e18e746ddd59482685b74e58",
"aa9035fefc1c138a951a8bcfc0374fb03a25f1ece67f7f7f53bce349b84a1dd5"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/.cache/huggingface/download/moss_tts_local_shared.data.metadata",
"metadata": [
"f52645cb467506d8e18e746ddd59482685b74e58",
"bae7782032c0fb12490ab42afe009f87ae6c75a0f0596fc7b5c08e4d5ee93916"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/.cache/huggingface/download/moss_tts_decode_step.onnx.metadata",
"metadata": [
"f52645cb467506d8e18e746ddd59482685b74e58",
"698cbc2fc1c2feca16e5895614ed52bbb32ded10f236c076f477b2e69abf32d8"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/.cache/huggingface/download/moss_tts_local_decoder.onnx.metadata",
"metadata": [
"f52645cb467506d8e18e746ddd59482685b74e58",
"51aa754301b38550a5f9adda0ad93bd3dc95819afb511e6dcabf4a90b345a454"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/.cache/huggingface/download/browser_poc_manifest.json.metadata",
"metadata": [
"f52645cb467506d8e18e746ddd59482685b74e58",
"8a04b980c3b9ea2f56747650ea255efe421ada38"
]
}
]
}
@@ -0,0 +1,3 @@
{
"text": "Hallo Maiko. Heute testen wir die Sprachausgabe auf deinem Rechner. Dein Zug nach Kasruhr fährt um 5.21. Welche Stimme gefällt dir am besten?"
}
@@ -0,0 +1,25 @@
{
"model": "moss",
"device": "cpu",
"threads": 4,
"text": "Hallo Michael. Heute testen wir die Sprachausgabe auf deinem Rechner. Dein Zug nach Karlsruhe f\u00e4hrt um f\u00fcnf Uhr einundzwanzig. Welche Stimme gef\u00e4llt dir am besten?",
"runs": [
{
"seconds": 18.778215043013915,
"audio_seconds": 12.32,
"rtf": 1.5242057664784021,
"first_chunk_seconds": null,
"file": "moss-1.wav"
},
{
"seconds": 16.734402744012186,
"audio_seconds": 12.32,
"rtf": 1.3583119110399502,
"first_chunk_seconds": null,
"file": "moss-2.wav"
}
],
"load_seconds": 4.612550534016918,
"peak_rss_mib": 2353.75,
"success": true
}
@@ -0,0 +1,3 @@
{
"text": "Hallo Michael, heute testen wir die Sprachausgabe auf deinem Rechner. Dein Zug nach Karlsruhe fährt um 5 Uhr 21. Welche Stimme gefällt dir am besten?"
}
@@ -0,0 +1,27 @@
{
"model": "pocket",
"device": "cpu",
"threads": 4,
"text": "Hallo Michael. Heute testen wir die Sprachausgabe auf deinem Rechner. Dein Zug nach Karlsruhe f\u00e4hrt um f\u00fcnf Uhr einundzwanzig. Welche Stimme gef\u00e4llt dir am besten?",
"runs": [
{
"seconds": 4.710208511998644,
"audio_seconds": 10.0,
"rtf": 0.4710208511998644,
"first_chunk_seconds": 0.09544877600274049,
"file": "pocket-1.wav"
},
{
"seconds": 4.775741007004399,
"audio_seconds": 9.84,
"rtf": 0.48533953323215434,
"first_chunk_seconds": 0.133064910012763,
"file": "pocket-2.wav"
}
],
"load_seconds": 3.08466231400962,
"voice": "juergen (official German preset; cloning requires gated weights)",
"reference_seconds": 0.001683798007434234,
"peak_rss_mib": 999.53125,
"success": true
}
@@ -0,0 +1,59 @@
import os, sys, time, json, resource, pathlib, traceback
ROOT = pathlib.Path(__file__).resolve().parent
os.environ['HF_HOME'] = str(ROOT / 'hf-cache')
os.environ['HF_HUB_DISABLE_TELEMETRY'] = '1'
os.environ['HF_HUB_DISABLE_IMPLICIT_TOKEN'] = '1'
os.environ['OMP_NUM_THREADS'] = '4'
os.environ['MKL_NUM_THREADS'] = '4'
kind = sys.argv[1]
prepare = '--prepare' in sys.argv
text = 'Hallo Michael. Heute testen wir die Sprachausgabe auf deinem Rechner. Dein Zug nach Karlsruhe fährt um fünf Uhr einundzwanzig. Welche Stimme gefällt dir am besten?'
results = {'model': kind, 'device': 'cpu', 'threads': 4, 'text': text, 'runs': []}
start = time.perf_counter()
try:
import numpy as np
import torch
import soundfile as sf
if kind == 'pocket':
from pocket_tts import TTSModel
torch.set_num_threads(4)
model = TTSModel.load_model(language='german')
results['load_seconds'] = time.perf_counter() - start
start = time.perf_counter()
state = model.get_state_for_audio_prompt('juergen')
results['voice'] = 'juergen (official German preset; cloning requires gated weights)'
results['reference_seconds'] = time.perf_counter() - start
else:
sys.path.insert(0, str(next(ROOT.glob('MOSS-TTS-Nano-*'))))
from onnx_tts_runtime import OnnxTtsRuntime
torch.set_num_threads(4)
model = OnnxTtsRuntime(thread_count=4, execution_provider='cpu', max_new_frames=750)
results['load_seconds'] = time.perf_counter() - start
if not prepare:
for i in range(2):
start = time.perf_counter()
out = ROOT / f'{kind}-{i+1}.wav'
if kind == 'pocket':
chunks, first = [], None
for chunk in model.generate_audio_stream(state, text):
if first is None: first = time.perf_counter() - start
chunks.append(chunk)
audio = torch.cat(chunks, dim=-1).detach().cpu().numpy().squeeze()
elapsed = time.perf_counter() - start
sf.write(out, audio, model.sample_rate)
duration = audio.shape[-1] / model.sample_rate
else:
r = model.synthesize(text=text, prompt_audio_path=ROOT/'reference.wav', output_audio_path=out, streaming=True, enable_wetext=False, seed=42, max_new_frames=750)
elapsed = time.perf_counter() - start
duration = sf.info(out).duration
first = None
results['runs'].append({'seconds': elapsed, 'audio_seconds': duration, 'rtf': elapsed/duration, 'first_chunk_seconds': first, 'file': out.name})
(ROOT / f'{kind}-results.json').write_text(json.dumps(results, indent=2))
results['peak_rss_mib'] = resource.getrusage(resource.RUSAGE_SELF).ru_maxrss / 1024
results['success'] = True
except Exception as e:
results['success'] = False
results['error'] = str(e)
traceback.print_exc()
(ROOT / f'{kind}-{"prepare" if prepare else "results"}.json').write_text(json.dumps(results, indent=2))
print(json.dumps(results, indent=2))
@@ -0,0 +1,37 @@
[
{
"host": "athena",
"file": "moss-2.mp3",
"bytes": 184388,
"sha256": "74459aa481f145da8b9f7005ba6290be98b78d8e517b49a987be1a276e6d8cbb",
"full_ffmpeg_decode": "passed"
},
{
"host": "athena",
"file": "moss-1.mp3",
"bytes": 184388,
"sha256": "74459aa481f145da8b9f7005ba6290be98b78d8e517b49a987be1a276e6d8cbb",
"full_ffmpeg_decode": "passed"
},
{
"host": "athena",
"file": "pocket-2.mp3",
"bytes": 91364,
"sha256": "9f247ab2dcf7555e731d8eb8c37d9ce649082f92b196be2d997df47cf80dcfbe",
"full_ffmpeg_decode": "passed"
},
{
"host": "helper",
"file": "moss-2.mp3",
"bytes": 184412,
"sha256": "65f1fc110768bb3ca16b398aca843d58f857ab36c338ed4ce311a421f7e204bb",
"full_ffmpeg_decode": "passed"
},
{
"host": "helper",
"file": "pocket-2.mp3",
"bytes": 86420,
"sha256": "b4dbe86a966f49fc78d6730f027b67ba2a2ed8dba0ac4b32e95109630892036b",
"full_ffmpeg_decode": "passed"
}
]
@@ -0,0 +1,271 @@
{
"python": "3.13.5",
"packages": [
"annotated-doc==0.0.5",
"annotated-types==0.8.0",
"anyio==4.15.1",
"certifi==2026.7.22",
"cffi==2.1.1",
"charset-normalizer==3.5.2",
"click==8.5.0",
"einops==0.8.2",
"fastapi==0.143.3",
"filelock==3.32.3",
"flatbuffers==25.12.19",
"fsspec==2026.7.0",
"h11==0.16.0",
"hf-xet==1.7.0",
"huggingface_hub==0.36.2",
"idna==3.20",
"Jinja2==3.1.6",
"markdown-it-py==4.2.0",
"MarkupSafe==3.0.3",
"mdurl==0.1.2",
"mpmath==1.3.0",
"networkx==3.6.1",
"numpy==2.5.4",
"onnxruntime==1.31.0",
"opentelemetry-api==1.45.1",
"packaging==26.3",
"pocket-tts @ file:///opt/athena-small-tts-tests-20261017/pocket-tts-fbea645333cd5c64e72688e0a96e54e69bbb9602",
"protobuf==7.36.2",
"pycparser==3.11",
"pydantic==2.14.1",
"pydantic_core==2.50.1",
"Pygments==2.21.0",
"python-multipart==0.0.32",
"PyYAML==6.0.3",
"regex==2026.9.29",
"requests==2.34.2",
"rich==15.0.0",
"safetensors==0.8.0",
"scipy==1.18.1",
"sentencepiece==0.2.2",
"setuptools==78.1.0",
"shellingham==1.5.4",
"soundfile==0.14.0",
"starlette==1.8.0",
"sympy==1.14.0",
"tokenizers==0.22.2",
"torch==2.7.0+cpu",
"torchaudio==2.7.0+cpu",
"tqdm==4.70.1",
"transformers==4.57.1",
"typer==0.27.3",
"typing-inspection==0.4.4",
"typing_extensions==4.16.0",
"urllib3==2.8.0",
"uvicorn==0.54.0"
],
"files": [
{
"path": "hf-cache/hub/models--kyutai--pocket-tts-without-voice-cloning/snapshots/575d14372df89a4534bcb989870a34e77544b09f/languages/german/embeddings/juergen.safetensors",
"bytes": 6096696,
"sha256": "65104a25b2aa797c50b2cee555cb75deb6abba10169168b95857227a054126d1"
},
{
"path": "hf-cache/hub/models--kyutai--pocket-tts-without-voice-cloning/snapshots/1e08e6a23401048648a9fdcfde2f89348215c2a7/languages/german/model.safetensors",
"bytes": 219029196,
"sha256": "9fe42605604832349e3f495177bde56b77ae8fee73b2ed4b63236092ccde7621"
},
{
"path": "hf-cache/hub/models--kyutai--pocket-tts-without-voice-cloning/snapshots/4e1e0a3e611c51c0b4ed8174fc10f32a54644303/languages/german/tokenizer.json",
"bytes": 245966,
"sha256": "2d77849811e3d1b6ae80e5b11b203f57e1847901104d8a0573b34f46f8dddb53"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/moss_audio_tokenizer_encode.onnx",
"bytes": 815775,
"sha256": "eadea4a645abdcf98714c7aead122ee2ce7da6e080f9f80b977cd1ca8e19473a"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/moss_audio_tokenizer_encode.data",
"bytes": 44507136,
"sha256": "aa751265b2bab2887eac224484546b194875aa7494b607115439b3dc6b228a2c"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/moss_audio_tokenizer_decode_step.onnx",
"bytes": 351400,
"sha256": "9527c86a29e1837edec1f74db57d5eeaadb3a715af3382703566460afed25855"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/codec_browser_onnx_meta.json",
"bytes": 17036,
"sha256": "3e291c883bb7d11ff2fe8e964e3e495519760358859f35c951254c7741592731"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/moss_audio_tokenizer_decode_shared.data",
"bytes": 44198912,
"sha256": "e69d52e0f4e84ca27850557ee54face46632d3a5a16c89bd246c7c408466dcad"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/moss_audio_tokenizer_decode_full.onnx",
"bytes": 681902,
"sha256": "0fbbafe3fd4afa2a019af5c5ced204af6e2d1db044fa40f021525d2aee95b4ac"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/moss_tts_local_fixed_sampled_frame.onnx",
"bytes": 471262,
"sha256": "40cdb00efc171c450cf91468e01429caa41b0252222cd308e978f58fe354afa8"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/moss_tts_local_decoder.onnx",
"bytes": 49231,
"sha256": "51aa754301b38550a5f9adda0ad93bd3dc95819afb511e6dcabf4a90b345a454"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/browser_poc_manifest.json",
"bytes": 503354,
"sha256": "097d80e993dc29f0bae427590b4f77084a161cb578b50d82c29f455d5faa9eee"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/tts_browser_onnx_meta.json",
"bytes": 4487,
"sha256": "3edf25232dcd0af3d061c837e9a968a39e2f8592e06777d740503c4f2244f95c"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/tokenizer.model",
"bytes": 470897,
"sha256": "c353ee1479b536bf414c1b247f5542b6607fb8ae91320e5af1781fee200fddff"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/moss_tts_decode_step.onnx",
"bytes": 291483,
"sha256": "698cbc2fc1c2feca16e5895614ed52bbb32ded10f236c076f477b2e69abf32d8"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/moss_tts_prefill.onnx",
"bytes": 283305,
"sha256": "d56126dcd0574c2f15d98fc6b35eda68d0386b5bd9c5e38e28548d6f2ea8f3db"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/moss_tts_local_shared.data",
"bytes": 229678080,
"sha256": "bae7782032c0fb12490ab42afe009f87ae6c75a0f0596fc7b5c08e4d5ee93916"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/moss_tts_local_cached_step.onnx",
"bytes": 53685,
"sha256": "aa9035fefc1c138a951a8bcfc0374fb03a25f1ece67f7f7f53bce349b84a1dd5"
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/moss_tts_global_shared.data",
"bytes": 440813568,
"sha256": "bce8312c3df6a44545302cae229b61054fe0672e0b252ba59cba47adeed831dc"
}
],
"hf_metadata": [
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/.cache/huggingface/download/tokenizer.model.metadata",
"metadata": [
"f52645cb467506d8e18e746ddd59482685b74e58",
"c353ee1479b536bf414c1b247f5542b6607fb8ae91320e5af1781fee200fddff"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/.cache/huggingface/download/tts_browser_onnx_meta.json.metadata",
"metadata": [
"f52645cb467506d8e18e746ddd59482685b74e58",
"883597607ce139b2c4871468396af2c088ed2fe0"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/.cache/huggingface/download/moss_tts_decode_step.onnx.metadata",
"metadata": [
"f52645cb467506d8e18e746ddd59482685b74e58",
"698cbc2fc1c2feca16e5895614ed52bbb32ded10f236c076f477b2e69abf32d8"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/.cache/huggingface/download/moss_tts_local_fixed_sampled_frame.onnx.metadata",
"metadata": [
"f52645cb467506d8e18e746ddd59482685b74e58",
"40cdb00efc171c450cf91468e01429caa41b0252222cd308e978f58fe354afa8"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/.cache/huggingface/download/moss_tts_local_shared.data.metadata",
"metadata": [
"f52645cb467506d8e18e746ddd59482685b74e58",
"bae7782032c0fb12490ab42afe009f87ae6c75a0f0596fc7b5c08e4d5ee93916"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/.cache/huggingface/download/moss_tts_prefill.onnx.metadata",
"metadata": [
"f52645cb467506d8e18e746ddd59482685b74e58",
"d56126dcd0574c2f15d98fc6b35eda68d0386b5bd9c5e38e28548d6f2ea8f3db"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/.cache/huggingface/download/moss_tts_local_cached_step.onnx.metadata",
"metadata": [
"f52645cb467506d8e18e746ddd59482685b74e58",
"aa9035fefc1c138a951a8bcfc0374fb03a25f1ece67f7f7f53bce349b84a1dd5"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/.cache/huggingface/download/moss_tts_global_shared.data.metadata",
"metadata": [
"f52645cb467506d8e18e746ddd59482685b74e58",
"bce8312c3df6a44545302cae229b61054fe0672e0b252ba59cba47adeed831dc"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/.cache/huggingface/download/browser_poc_manifest.json.metadata",
"metadata": [
"f52645cb467506d8e18e746ddd59482685b74e58",
"8a04b980c3b9ea2f56747650ea255efe421ada38"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-TTS-Nano-100M-ONNX/.cache/huggingface/download/moss_tts_local_decoder.onnx.metadata",
"metadata": [
"f52645cb467506d8e18e746ddd59482685b74e58",
"51aa754301b38550a5f9adda0ad93bd3dc95819afb511e6dcabf4a90b345a454"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/.cache/huggingface/download/moss_audio_tokenizer_decode_shared.data.metadata",
"metadata": [
"ceff0d0749bfb3fa2d61149794ec6feef0d1e1ae",
"e69d52e0f4e84ca27850557ee54face46632d3a5a16c89bd246c7c408466dcad"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/.cache/huggingface/download/moss_audio_tokenizer_encode.onnx.metadata",
"metadata": [
"ceff0d0749bfb3fa2d61149794ec6feef0d1e1ae",
"eadea4a645abdcf98714c7aead122ee2ce7da6e080f9f80b977cd1ca8e19473a"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/.cache/huggingface/download/moss_audio_tokenizer_decode_full.onnx.metadata",
"metadata": [
"ceff0d0749bfb3fa2d61149794ec6feef0d1e1ae",
"0fbbafe3fd4afa2a019af5c5ced204af6e2d1db044fa40f021525d2aee95b4ac"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/.cache/huggingface/download/codec_browser_onnx_meta.json.metadata",
"metadata": [
"ceff0d0749bfb3fa2d61149794ec6feef0d1e1ae",
"886953a56489516b847b7c1c953bde063eb78faa"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/.cache/huggingface/download/moss_audio_tokenizer_decode_step.onnx.metadata",
"metadata": [
"ceff0d0749bfb3fa2d61149794ec6feef0d1e1ae",
"9527c86a29e1837edec1f74db57d5eeaadb3a715af3382703566460afed25855"
]
},
{
"path": "MOSS-TTS-Nano-8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb/models/MOSS-Audio-Tokenizer-Nano-ONNX/.cache/huggingface/download/moss_audio_tokenizer_encode.data.metadata",
"metadata": [
"ceff0d0749bfb3fa2d61149794ec6feef0d1e1ae",
"aa751265b2bab2887eac224484546b194875aa7494b607115439b3dc6b228a2c"
]
}
]
}
@@ -0,0 +1,3 @@
{
"text": "Hallo Maiko. Heute testen wir die Sprachausgabe auf deinem Rechner. Dein Zug nach Kasruhr fährt um 5.21. Welche Stimme gefällt dir am besten?"
}
@@ -0,0 +1,10 @@
{
"model": "moss",
"device": "cpu",
"threads": 4,
"text": "Hallo Michael. Heute testen wir die Sprachausgabe auf deinem Rechner. Dein Zug nach Karlsruhe f\u00e4hrt um f\u00fcnf Uhr einundzwanzig. Welche Stimme gef\u00e4llt dir am besten?",
"runs": [],
"load_seconds": 10.288471473148093,
"peak_rss_mib": 1445.234375,
"success": true
}
@@ -0,0 +1,25 @@
{
"model": "moss",
"device": "cpu",
"threads": 4,
"text": "Hallo Michael. Heute testen wir die Sprachausgabe auf deinem Rechner. Dein Zug nach Karlsruhe f\u00e4hrt um f\u00fcnf Uhr einundzwanzig. Welche Stimme gef\u00e4llt dir am besten?",
"runs": [
{
"seconds": 45.433289255946875,
"audio_seconds": 12.32,
"rtf": 3.6877669850606227,
"first_chunk_seconds": null,
"file": "moss-1.wav"
},
{
"seconds": 45.417684683110565,
"audio_seconds": 12.32,
"rtf": 3.686500380122611,
"first_chunk_seconds": null,
"file": "moss-2.wav"
}
],
"load_seconds": 21.27674777409993,
"peak_rss_mib": 2404.46484375,
"success": true
}
@@ -0,0 +1,3 @@
{
"text": "Hallo Michael, heute testen mir die Sprachausgabe auf deinen Rechner. Dein Zug nach Karlsruhe fährt um 5 Uhr 21. Welche Stimme gefällt dir am besten?"
}
@@ -0,0 +1,27 @@
{
"model": "pocket",
"device": "cpu",
"threads": 4,
"text": "Hallo Michael. Heute testen wir die Sprachausgabe auf deinem Rechner. Dein Zug nach Karlsruhe f\u00e4hrt um f\u00fcnf Uhr einundzwanzig. Welche Stimme gef\u00e4llt dir am besten?",
"runs": [
{
"seconds": 8.025136353913695,
"audio_seconds": 9.2,
"rtf": 0.8722974297732278,
"first_chunk_seconds": 0.3472249158658087,
"file": "pocket-1.wav"
},
{
"seconds": 7.802382365101948,
"audio_seconds": 9.12,
"rtf": 0.8555243821383716,
"first_chunk_seconds": 0.32267619110643864,
"file": "pocket-2.wav"
}
],
"load_seconds": 5.643119988963008,
"voice": "juergen (official German preset; cloning requires gated weights)",
"reference_seconds": 0.0017063349951058626,
"peak_rss_mib": 1003.35546875,
"success": true
}
@@ -0,0 +1,19 @@
import pathlib,hashlib,json,subprocess,platform
r=pathlib.Path(__file__).resolve().parent
paths=list((r/'hf-cache'/'hub').glob('models--*/snapshots/*/**/*'))
moss=next(r.glob('MOSS-TTS-Nano-*'))
paths+=list((moss/'models').rglob('*'))
files=[]
for p in paths:
if not p.is_file() or '.cache' in p.parts or p.suffix not in {'.onnx','.data','.json','.safetensors','.model','.yaml'}: continue
h=hashlib.sha256()
with p.open('rb') as f:
for b in iter(lambda:f.read(1024*1024),b''): h.update(b)
files.append({'path':str(p.relative_to(r)), 'bytes':p.stat().st_size, 'sha256':h.hexdigest()})
metadata=[]
for p in (moss/'models').rglob('*.metadata'):
if '/.cache/huggingface/download/' in str(p):
metadata.append({'path':str(p.relative_to(r)), 'metadata':p.read_text().splitlines()[:2]})
d={'python':platform.python_version(),'packages':subprocess.check_output([str(r/'venv/bin/pip'),'freeze'],text=True).splitlines(), 'files':files,'hf_metadata':metadata}
(r/'manifest.json').write_text(json.dumps(d,indent=2))
print('Manifest:',len(files),'public model files;',len(metadata),'HF metadata records')
@@ -0,0 +1,10 @@
{
"pocket": {
"repo": "kyutai-labs/pocket-tts",
"commit": "fbea645333cd5c64e72688e0a96e54e69bbb9602"
},
"moss": {
"repo": "OpenMOSS/MOSS-TTS-Nano",
"commit": "8b7bcc9341b3b4ef3a3a58ba1338a7d85ff133eb"
}
}