Skip to content

21jun/kanary_prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kanary Prompt

Lightweight package that registers the Kanary prompt formatter for NeMo/Canary2 pipelines.

Install from Git

pip install git+https://github.com/21jun/kanary_prompt.git

Local development install

pip install -e .

Usage

import nemo.collections.asr as nemo_asr
from kanary_prompt import kanary # by importing kanary, it will automatically register kanary prompt formatter to nemo lib.
import json
import tempfile
import soundfile as sf

# Initialize ASR model
asr_model = nemo_asr.models.ASRModel.from_pretrained("lee1jun/kanary-1b-20260119")

The formatter plugs into NeMo's prompt registry so you can reference "kanary" anywhere NeMo expects a prompt format name. Dependencies (torch, lhotse, nemo_toolkit) should already be present in your environment; install any GPU-specific variants per the PyTorch/NeMo docs.

Build a wheel (optional)

python -m build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published