Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions scripts/compare_encoder.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.10"
# dependencies = ["torch", "numpy", "safetensors"]
# ///
"""Compare C++ encoder intermediate outputs with PyTorch reference.
Uses same weights from safetensors to build PyTorch reference.
"""
Expand Down
5 changes: 5 additions & 0 deletions scripts/compare_features.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.10"
# dependencies = ["torch", "torchaudio", "numpy"]
# ///
"""Compare C++ and Python mel features with NeMo-compatible preprocessing."""
import torch
import torchaudio
Expand Down
4 changes: 4 additions & 0 deletions scripts/convert_nemo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.10"
# dependencies = ["torch", "safetensors", "packaging", "numpy"]
# ///
"""Convert NeMo Parakeet checkpoints to safetensors for axiom.

Supported models:
Expand Down
5 changes: 5 additions & 0 deletions scripts/debug_encoder.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.10"
# dependencies = ["torch", "torchaudio", "numpy", "safetensors"]
# ///
"""Compare C++ encoder output with PyTorch reference, layer by layer.
Uses safetensors weights directly with PyTorch, no NeMo dependency.
"""
Expand Down
4 changes: 4 additions & 0 deletions scripts/extract_vocab.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.10"
# dependencies = []
# ///
"""Extract SentencePiece vocabulary from a NeMo archive.

Usage:
Expand Down
4 changes: 4 additions & 0 deletions scripts/nemo_inference.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.10"
# dependencies = ["torch", "numpy", "safetensors", "packaging"]
# ///
"""Run NeMo inference for reference comparison."""
import torch
import numpy as np
Expand Down
4 changes: 4 additions & 0 deletions scripts/pytorch_benchmark.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.10"
# dependencies = ["torch", "pyyaml", "nemo_toolkit[asr]"]
# ///
"""Benchmark PyTorch/NeMo inference for comparison with parakeet.cpp."""
import os
import sys
Expand Down