Tiny dummy models
Collection
Randomly initialized tiny models for debugging/testing purpose β’ 244 items β’ Updated β’ 8
How to use yujiepan/voice-isolator-tiny-random with Inworld Voice Isolator:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
This is a randomly initialized tiny model based on inworld/voice-isolator for testing and debugging.
| Feature | Source | This repo |
|---|---|---|
| Checkpoint tensor elements | 122.23M F32 | 2.33M F32 |
| Safetensors weight files | 489.04 MB (2 files) | 9.43 MB (2 files) |
| Dual-path blocks | 7 (T-M-T-M-T-M-T) | 5 (T-M-T-M-T) |
| Token width / attention heads / head dim | 512 / 8 / 64 | 64 / 2 / 32 |
| Mamba state / conv / expand | 16 / 4 / 2 | Same |
| Sample rate / STFT n_fft / hop | 48 kHz / 2048 / 480 (10 ms) | Same |
| Frequency bands | 46 (full-band 0-24 kHz) | Same |
| Exclusive self-attention / axes | true / time | Same |
| Offline chunk / overlap | 8.0 s / 2.0 s | Same |
| Realtime causal / window / lookahead choices | true / 1200 frames / [0, 2, 4] | Same |
| Serialized precision | FP32 (BF16 autocast on CUDA) | Same |
| File path | Size |
|---|---|
| denoiser.safetensors | 4.9MB |
| denoiser_realtime.safetensors | 4.6MB |
Install inworld-voice-isolation (pip install inworld-voice-isolation). Both denoiser.safetensors (offline) and denoiser_realtime.safetensors (causal streaming) embed their architecture config in the safetensors header and load via hf://<repo>/<file> or a local checkpoint path. On CUDA the library defaults to BF16 autocast while keeping STFT/iSTFT and selective scan in FP32.
def run_model(model_id: str) -> None:
from pathlib import Path
import torch
from inworld import voice_isolation
def checkpoint_ref(filename: str) -> str:
local = Path(model_id) / filename
return str(local) if local.is_file() else f"hf://{model_id}/{filename}"
sample_rate = 48000
t = torch.arange(sample_rate, dtype=torch.float32) / sample_rate
wav = 0.2 * torch.sin(2 * torch.pi * 220 * t) + 0.05 * torch.sin(2 * torch.pi * 1760 * t)
offline = voice_isolation.VoiceIsolator(checkpoint_ref("denoiser.safetensors"), device="cuda")
voice = offline.isolate(wav, sample_rate)
print("offline:", tuple(voice.shape), voice.dtype, float(voice.abs().max()))
live = voice_isolation.VoiceIsolator(
checkpoint_ref("denoiser_realtime.safetensors"),
device="cuda",
mode="streaming",
lookahead_frames=2,
)
session = live.stream()
chunks = [session.push(wav[start : start + 960]) for start in range(0, len(wav), 960)]
chunks.append(session.flush())
streamed = torch.cat(chunks)
print("streaming:", tuple(streamed.shape), streamed.dtype, float(streamed.abs().max()))
print(offline.model)
if __name__ == "__main__":
run_model(model_id="tiny-random/voice-isolator")
This repo is generated by DeepSeek-V4.1-Flash.
Base model
inworld/voice-isolator