Files
Athena-Deck/deploy/vevo2-test/README.md
T

8.0 KiB
Raw Blame History

Isolated Vevo2 FM listening test (not a Deck integration)

Official source: https://github.com/open-mmlab/Amphion Source revision: 26f6883110181f1dbfe95c70a7c7dbaf4de5f42a. Public model: https://huggingface.co/RMSnow/Vevo2 Model revision: 2674843cbaa50aa89ee7ccaf5bb15d6ccf46c6c8. Only FM, content-style tokenizer, vocoder and official Whisper-medium encoder are needed. No AR/Qwen text generator. No source/weights modifications. The assets.json records sizes and SHA256 of the actual public assets. Upstream code retains its own MIT notices; preserve model metadata/licences when rebuilding.

Tested runtime and native prerequisites

Tested Python3.12.3, Torch/Torchaudio2.9.1+cu128 and Torchvision0.24.1+cu128; complete resolved Python package versions are in requirements.lock. Native Debian needs an explicitly provisioned compatible Python3.12 interpreter, its venv/pip, build-essential for PyWorld, FFmpeg and libsndfile1. These are not assumed to come from a different model or running container. For GPU execution, also provision a CUDA12.8-compatible NVIDIA driver; no host/driver change is performed by these scripts. For CPU tests no GPU or CUDA device is required. No systemd daemon or network endpoint is added: this is a foreground batch job. Fresh native-host installation/restore has not been accepted.

Set the explicit native test state root and user. As that unprivileged user:

export VEVO2_TEST_ROOT=/var/lib/vevo2-test
export AMPHION_REVISION=26f6883110181f1dbfe95c70a7c7dbaf4de5f42a
export VEVO2_REVISION=2674843cbaa50aa89ee7ccaf5bb15d6ccf46c6c8
# First create the root owned by that user, mode0700; copy the scripts there.
CUDA_VISIBLE_DEVICES='' python3.12 "$VEVO2_TEST_ROOT/prepare.py"

prepare.py creates its own venv and downloads pinned sources/checkpoints; GPU is hidden throughout preparation. It now includes the three extra imports PyWorld, Torchmetrics and ruamel.yaml which the short upstream Vevo2 requirements file omitted but the official module imports. The original first preparation was completed by resume.py; a fresh preparation includes them directly. No patch to vendor code. For rebuilding the exact accepted dependency set, install the three Torch packages from the official cu128 index first, then the committed lock using that index as an extra index; run python -m pip check. The initial bootstrap package list is a resolver recipe; the committed lock records what the test actually used.

Provide just two private WAVs under $VEVO2_TEST_ROOT/inputs: source.wav (short spoken performance) and anna-reference.wav (target voice, 8s in the test). The names are test filenames, not hard-coded speaker models. Keep source under30s; this wrapper does not offer long-form chunking. Recording and microphone capture are not part of this standalone experiment.

CUDA_VISIBLE_DEVICES='' "$VEVO2_TEST_ROOT/python/bin/python" \
  "$VEVO2_TEST_ROOT/run_test.py" --cpu
# Alternatively, only after the GPU is free and no production work is active:
CUDA_VISIBLE_DEVICES=<chosen-GPU-UUID> "$VEVO2_TEST_ROOT/python/bin/python" \
  "$VEVO2_TEST_ROOT/run_test.py"
CUDA_VISIBLE_DEVICES='' "$VEVO2_TEST_ROOT/python/bin/python" \
  "$VEVO2_TEST_ROOT/analyse.py"

The GPU branch requires10GiB free as a conservative admission check, not a measured peak. It has not been accepted by the CPU-only test. Do not stop production models/requests without the normal Deck idle check/model-unload flow.

Inference and limitations

Two32-step FM passes, same seed20261019: use_pitch_shift=False versusTrue. Official median-F0 adjustment is applied to source chromagram features before content-style tokenization and neural synthesis; only those features are shifted. No Rubber Band/post-output pitch processing. Waveform writing uses soundfile PCM16 with the same−25dBFS RMS normalization as the official save_audio, avoiding Torchaudio's optional TorchCodec dependency. This changes serialization, not model inference. Private recordings/results remain local; inference is offline.

Important upstream behavior: shifts are rounded to semitones; shifts beyond±12 are reduced modulo12 (not clamped). Very large male-to-female differences may therefore not match the target register. The tested input yielded+12. Duration and words are not guaranteed bit-exact; listen and compare content before integration. Known public issues include pronunciation errors (#490) and unreproduced examples (#484). Those reports are not proof every mode is broken.

Isolation, persistence, cleanup and restore

Athena test root /data/experiments/vevo2-20261019, owned65534,0700. Temporary CPU preparation containers use2CPU/8GiB/no swap; offline test2CPU/12GiB/no swap, no network/GPU, only that root mounted. Runtime base is the existing Deck image athena-deck-standalone:0a107ae83542e4c5, immutable image ID recorded in acceptance. It supplies only the explicitly listed Python/system prerequisites; its live Deck state, credentials, Docker socket and other models are not mounted. No ports, production profiles, API publication, restart flags or services changed. Temporary containers are removed after successful completion; this one test root holds all persistent test state. No permanent second speech server.

The existing Anna voice is copied specifically for this authorized local test, then normalized to8s PCM; original streaming WAV header had an unknown length. No original voice changed. Inputs, generated WAVs and private logs do not belong in Git. They are not automatically included in Deck backup, since this is an external experiment. The original saved Anna is covered by the existing Deck voice backup. Keep private test outputs locally/encrypted if desired. Rebuild venv from lock rather than copying between OS/interpreter versions. Check public asset hashes against this manifest after reconstructing them. To undo this test, remove only its stopped containers and its own root after saving wanted results; Deck/Humaneness need no rollback because they were not modified.

Bounded text-conditioned FM follow-up

The default FM model produced large ASR text differences in the first test. One additional official checkpoint is tested: acoustic_modeling/fm_emilia101k_singnet7k_repa_text. prepare_text.py downloads only that checkpoint and the standard tokenizer for microsoft/Phi-3.5-mini-instruct (no Phi LLM weights). Its exact tokenizer revision is recorded in text-versions.json. The original official config names that tokenizer without a revision; only this isolated cache's refs/main points to the pinned downloaded snapshot for offline use. No vendor config/source modification. This checkpoint's whisper_stats.pt is resolved relative to the checkpoint directory, so the runner sets that CWD. The initial attempt with the source directory as CWD failed before inference; only the runner working directory was corrected.

Provide private private-text.json with source and reference strings matching the two WAVs. The controlled test uses the local CPU-STT transcripts; neither transcripts nor audio are committed. Execute preparation online and the actual run_text_test.py --cpu offline under the same resource limits. The official FM pipeline receives both original audio and the text as additional conditioning. This is not an ASR→TTS replacement: content-style audio tokens and reference mel features still drive conversion. Recognition errors in the supplied text can still contaminate results. No claim that this fixes the known pronunciation issue.

Text variant acceptance failed: after resolving the checkpoint-relative stats path, current upstream code2mel calls fmt_model.text_cond_emb, but the pinned FlowMatchingTransformer has no such attribute. No architecture/config patch applied. run_text_test.py is retained as a reproduction, not a working feature. Do not deploy the text branch from this recipe as supported production behavior. The base FM passes ran on CPU but produced large ASR word differences; see the maintenance acceptance report before repeating or integrating this model.