TEMF + wavJEPA-FiLM — 325M, 100k updates
An experimental speech restoration model trained with the TEMF objective and frozen wavJEPA-Nat conditioning. This release preserves the 100,000 completed optimizer update checkpoint. Use EMA weights for the listening results below.
The restoration network has 325,497,126 parameters. The bundled frozen conditioner contains another 200,205,824 tensor elements; these are not included in the 325M name. Input and output are 16 kHz mono. Inference supports NFE 1, 5, 20 and other positive sampling budgets, using a direct mean-velocity predictor. No GAN or RE-USE model is used.
Files
model.safetensors: EMA restoration weights and the frozen wavJEPA-Nat encoder.config.json: architecture, spectral settings, checkpoint recipe and provenance.checkpoints/update-100000.ckpt: the original full training checkpoint, including raw network weights, EMA, optimizer and Lightning loop state.inference.py,restore.py,src/,configs/: loading, sampling and source files.wavjepa/: pinned upstream encoder configuration and Python source.evaluation.json,validation.json,SHA256SUMS: measured results and verification.
The original checkpoint SHA-256 is
315e35ca4d295775e8d2c7595b6109c3f6c932561dad6f92044e0b9e739fe13c.
The full checkpoint uses PyTorch serialization and should only be loaded from a trusted
source. The inference path loads the exported Safetensors weights instead.
Restore audio
Download this repository, then install its dependencies (Python 3.11 or 3.12):
hf download bytemonkprofile1/temf-wavjepa-film-325m-100k --exclude "checkpoints/*" --local-dir temf-100k
cd temf-100k
pip install -e . safetensors
python restore.py input.wav restored.wav --nfe 5 --device cuda
Use --device mps on a compatible Mac, or --device cpu. Convert input to 16 kHz mono
before running. Output is a floating-point WAV with no automatic loudness normalization.
The encoder's pinned custom Python source is bundled and is loaded with Transformers'
trust_remote_code=True; review it before use. No separate encoder-weight download is
needed. This is a custom PyTorch loader, not a Transformers pipeline() model.
The packaged inference path was checked on Apple MPS against the previously tested
100k checkpoint. Validation details are in validation.json. Short clips were tested;
this release does not provide a streaming or long-recording chunking implementation.
Two fixed listening checks
Standard STOI was computed against the aligned clean reference before playback gain. Both are four-second synthetic examples, using EMA weights and CPU noise seed 1510001.
| Example | Damaged input | NFE 1 | NFE 5 | NFE 20 |
|---|---|---|---|---|
| Very noisy speech | 0.343 | 0.388 | 0.405 | 0.410 |
| Severe crackling | 0.539 | 0.697 | 0.719 | 0.721 |
These two clips are not an aggregate held-out benchmark. They do not establish general quality, superiority over another model, or reliable recovery of missing words. Very damaged speech remains difficult. More sampling steps or training updates do not guarantee better results.
Training and resuming
The run used full TEMF training, forward-mode JVP, effective batch 8 with microbatch 4, and a TEMF schedule parameterized for 200,000 updates. The checkpoint is therefore a 100k point within that schedule, not a schedule rescaled to finish at 100k. The production data mixture changed to 50% standard / 50% hard synthetic degradation after the saved boundary at update 22,975. Training was subsequently stopped by the owner.
To download the full training checkpoint separately:
hf download bytemonkprofile1/temf-wavjepa-film-325m-100k checkpoints/update-100000.ckpt --local-dir temf-100k
The full checkpoint preserves the stored optimizer, EMA and loop state; the datasets
and machine environment are not distributed here. Its manifest and backup paths belong
to the original machine and must be supplied or deliberately remapped. Exact sample-order
and RNG continuity on resume has not been verified for this release. Fetch the pinned TEMF training source using
python -m src.upstream.fetch before constructing the training objective.
Source and credits
- Project: quangng2000/temf-wavjepa-film.
- TEMF: authors' implementation.
- Backbone: SGMSE.
- Frozen conditioner: wavJEPA-Nat.
This is an independent audio adaptation, not an official TEMF or wavJEPA release.
The bundled source preserves upstream notices. See NOTICES.md for licensing scope.
Please cite the project using CITATION.cff, along with the underlying research.