Instructions to use aaimn/aai-asr-nano-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- NeMo
How to use aaimn/aai-asr-nano-v1 with NeMo:
import nemo.collections.asr as nemo_asr asr_model = nemo_asr.models.ASRModel.from_pretrained("aaimn/aai-asr-nano-v1") transcriptions = asr_model.transcribe(["file.wav"]) - Notebooks
- Google Colab
- Kaggle
AAI ASR Nano v1
Mongolian speech recognition from Applied AI Mongolia NGO.
AAI ASR Nano v1 is a compact, approximately 37-million-parameter acoustic model that transcribes Mongolian speech into normalized Cyrillic text. It is released as part of Applied AI Mongolia NGO’s Mongolian speech research series, supporting research, teaching, and student-led language technology projects.
Private-test result: 13.28% word error rate and 5.34% character error rate across 19,484 utterances. These are acoustic-model results with greedy CTC decoding. The optional companion KenLM model is evaluated separately below.
Research release. Free non-commercial research and student/educational use; commercial use requires a separate written license. See License.
Model at a glance
| Property | Value |
|---|---|
| Release identifier | aai-asr-nano-v1 |
| Publisher | Applied AI Mongolia NGO |
| Primary language / writing system | Mongolian / Cyrillic |
| Architecture | Citrinet-512 convolutional encoder with a CTC head |
| Parameters | 36,994,321, approximately 37M |
| Audio input | Mono waveform, 16,000 Hz |
| Tokenizer | 1,024 SentencePiece BPE tokens plus the CTC blank |
| Weight format | NVIDIA NeMo .nemo archive |
| Output | Normalized lowercase text; companion formatting model restores punctuation/case |
| Release version | 1.0.0 |
The Nano designation is the AAI family name for this compact acoustic release; the architecture and parameter count above describe its actual size.
Quick start
For private access, use a Hugging Face account with repository access and set HF_TOKEN in your environment.
The examples use Python with PyTorch and NVIDIA NeMo. Install a PyTorch build appropriate for your CPU/GPU first, then the repository requirements. The tested environment uses PyTorch 2.8.0 and NeMo 2.5.3.
Install the Hub client with python -m pip install huggingface_hub, then download the repository:
from huggingface_hub import snapshot_download
folder = snapshot_download(
repo_id="aaimn/aai-asr-nano-v1",
local_dir="aai-asr-nano-v1",
)
From the directory containing the downloaded repository, install its dependencies. The examples were tested with Python 3.12.
python -m pip install -r aai-asr-nano-v1/requirements.txt
Transcribe with NeMo:
import torch
from nemo.collections.asr.models import EncDecCTCModelBPE
model = EncDecCTCModelBPE.restore_from(
"aai-asr-nano-v1/model.nemo",
map_location=torch.device("cpu"), # use "cuda" when available
).eval()
model.preprocessor.featurizer.dither = 0.0
model.cfg.validation_ds = {"use_start_end_token": False} # NeMo transcribe metadata
with torch.inference_mode():
result = model.transcribe(
["recording.wav"], batch_size=1, num_workers=0, verbose=False,
channel_selector="average",
)
print(result[0].text if hasattr(result[0], "text") else result[0])
Or use the included CLI:
python aai-asr-nano-v1/infer.py recording.wav --device cpu
For reproducible application input, supply mono 16 kHz speech. NeMo's file loader can resample supported recordings, but live PCM must already match the configured sample rate. Split long recordings into bounded utterances to control memory.
Evaluation
Full private speech test
| Decoder | Utterances | WER ↓ | CER ↓ |
|---|---|---|---|
| Greedy CTC | 19,484 | 13.28% | 5.34% |
The checkpoint was selected using validation performance. The test set was reserved for evaluation. Scoring uses Unicode NFC normalization, lowercase text, punctuation replaced with spaces, and collapsed whitespace. WER is (substitutions + deletions + insertions) / reference words; CER is the corresponding character-level metric. WER is not a calibrated confidence score or 100 − accuracy.
Companion LM: matched private-test subset
A fresh comparison uses this ASR release and fixed, previously validation-selected KenLM parameters on the same 512 test utterances:
| Decoder | WER ↓ | CER ↓ |
|---|---|---|
| Greedy CTC | 12.81% | 5.04% |
| AAI 4-gram KenLM beam search | 11.30% | 4.68% |
This is an 11.77% relative WER reduction on that subset. The 512-utterance result is not a full-test LM score and must not replace the 19,484-utterance acoustic result. Both decoders consume identical float32 acoustic logits. The comparison excludes VAD, hotword boosting, punctuation, and diarization. See the KenLM release for its complete protocol and streaming results.
Uniform speaker-disjointness and independent human verification are not established across the private collection; these results should not be interpreted as a speaker-independent public benchmark. These are privately measured results, not a public leaderboard or independently reproduced benchmark. Dataset identities and individual examples are withheld. Aggregate metrics are in metrics.json.
Buffered streaming
streaming.py provides StreamingSession and maintains CTC state across arriving PCM chunks. Reapply eval() after transcribe() because NeMo 2.5.3 switches the encoder and decoder submodules back to training mode.
import sys
import soundfile as sf
sys.path.insert(0, "aai-asr-nano-v1")
from streaming import StreamingSession
session = StreamingSession(model.eval())
with sf.SoundFile("recording.wav") as audio:
if audio.samplerate != 16000 or audio.channels != 1:
raise ValueError("Expected mono 16 kHz audio")
for chunk in audio.blocks(blocksize=session.chunk_samples, dtype="float32"):
session.feed(chunk)
print(session.finalize())
The default configuration uses 640 ms chunks, 2.56 seconds of left context, and 640 ms of right context. Nominal audio buffering is about 1.28 seconds before compute, networking, and endpointing overhead. This is buffered inference with a non-causal acoustic model; streaming WER can differ from full-context WER. A production service can add speech detection, utterance endpointing, word boosting, and a final full-context pass.
Combine ASR, KenLM, and PunctCap
Install the Hub client with python -m pip install huggingface_hub if needed.
Download all three repositories side by side and install their requirements into
the same environment. Use a mono 16 kHz recording.wav in the parent directory.
from huggingface_hub import snapshot_download
for name in ("aai-asr-nano-v1", "aai-kenlm-mn-4gram-v1", "aai-punctcap-mn-v1"):
snapshot_download(f"aaimn/{name}", local_dir=name)
python -m pip install -r aai-kenlm-mn-4gram-v1/requirements-benchmark.txt \
-r aai-asr-nano-v1/requirements.txt -r aai-punctcap-mn-v1/requirements.txt
import json
import sys
from pathlib import Path
import soundfile as sf
import torch
from nemo.collections.asr.models import EncDecCTCModelBPE
asr_dir = Path("aai-asr-nano-v1")
lm_dir = Path("aai-kenlm-mn-4gram-v1")
punct_dir = Path("aai-punctcap-mn-v1")
sys.path[:0] = [str(lm_dir), str(punct_dir)]
from aai_punctcap import PunctuationModel, restore
from lm_decoder import DecoderConfig, KenLMDecoder
device = torch.device("cpu") # or "cuda"
asr = EncDecCTCModelBPE.restore_from(
str(asr_dir / "model.nemo"), map_location=device,
).eval()
asr.preprocessor.featurizer.dither = 0.0
preset = DecoderConfig(**json.loads((lm_dir / "offline_decoder.json").read_text()))
decoder = KenLMDecoder(asr, lm_dir / "model.kenlm", config=preset)
formatter, tokenizer, _ = PunctuationModel.load(punct_dir, device=device)
pcm, rate = sf.read("recording.wav", dtype="float32")
if rate != 16000 or pcm.ndim != 1 or not pcm.size:
raise ValueError("Expected a non-empty mono 16 kHz recording")
with torch.inference_mode():
log_probs, lengths, _ = asr(
input_signal=torch.from_numpy(pcm).unsqueeze(0).to(device),
input_signal_length=torch.tensor([len(pcm)], device=device),
)
frames = log_probs[0, :int(lengths[0])].float().cpu().numpy()
session = decoder.session()
session.append_logits(frames)
transcript = session.finalize()
print(transcript)
print(restore(transcript, formatter, tokenizer))
For buffered streaming, load streaming_decoder.json in place of the offline
preset and pass beam_decoder=decoder.session() when constructing a
StreamingSession. Format the text returned by finalize() once per utterance.
Evaluate on your own data
Create a JSONL manifest containing audio_filepath and your reference text, then run:
python aai-asr-nano-v1/evaluate.py --manifest your_test.jsonl \
--output your_metrics.json --device cpu
The helper writes aggregate WER/CER only. Keep evaluation separate from training and use a validation split for decoder tuning. Private data used for the published numbers is not included, so those exact numbers cannot be reproduced from this repository alone.
Intended use and limitations
Useful starting points include Mongolian speech research, transcription experiments, educational assistants, accessibility prototypes, and student projects. Commercial deployments require separate permission under the release license.
- Rare names, technical vocabulary, accents, code switching, noise, and distant microphones can affect recognition.
- Overlapping speakers need a separate diarization/separation strategy; the acoustic model returns one text hypothesis.
- Silence handling and word timestamps are application-level pipeline concerns, not confidence guarantees from the checkpoint.
- Punctuation, capitalization, number verbalization, and inverse text normalization should be evaluated as separate processing stages.
- No claim is made of state-of-the-art performance, complete dialect coverage, or a guaranteed latency/accuracy level on new recordings.
Release files
model.nemo contains inference-ready weights, configuration, and tokenizer assets. tokenizer.model, tokenizer.vocab, and vocab.txt are also available separately. model_config.yaml is sanitized for inference; private training paths are removed. infer.py, evaluate.py, streaming.py, and normalize.py provide readable application helpers. SHA256SUMS identifies the exact release files.
AAI Mongolian speech family
| Release | Role |
|---|---|
| AAI ASR Nano v1 | Mongolian speech → normalized text |
| AAI KenLM MN 4-gram v1 | Word-level CTC beam rescoring |
| AAI PunctCap MN v1 | Punctuation, capitalization, and acronym casing |
License and commercial use
Free for non-commercial research, teaching, academic study, and student projects. Commercial use requires a separate written license from Applied AI Mongolia NGO. Read LICENSE.md for the complete AAI Research and Education License 1.0, including redistribution and attribution requirements. Request commercial licensing through this repository's Discussions tab; no commercial permission is implied by downloading the files.
This is a research release with downloadable weights under the AAI Research and Education License 1.0. Upstream components retain their original licenses and independent permissions; see Third-party notices.
Third-party notices
AAI's custom license covers only rights in AAI's own contributions and adaptations. It does not relicense or restrict independently licensed third-party materials. Dependencies are installed separately and retain their original terms.
- NVIDIA NeMo: Apache-2.0, https://github.com/NVIDIA/NeMo .
- PyTorch: BSD-style license, https://github.com/pytorch/pytorch/blob/main/LICENSE .
- Hugging Face Transformers: Apache-2.0, https://github.com/huggingface/transformers/blob/main/LICENSE .
- SentencePiece: Apache-2.0, https://github.com/google/sentencepiece/blob/master/LICENSE .
- KenLM runtime: LGPL-2.1-or-later, with exceptions documented upstream, https://github.com/kpu/kenlm/blob/master/LICENSE . The trained language-model data is distinct from the KenLM software; this release does not distribute KenLM runtime binaries.
- pyctcdecode: Apache-2.0, https://github.com/kensho-technologies/pyctcdecode/blob/main/LICENSE .
- marisa-trie: MIT, https://github.com/pytries/marisa-trie/blob/master/LICENSE .
The Apache-2.0 text is provided under licenses/APACHE-2.0.txt. The KenLM LGPL-2.1 text is provided under licenses/KENLM-LGPL-2.1.txt. Dependencies not used by a particular repository need not be installed.
ASR initialization
The acoustic model adapts NVIDIA’s pretrained Citrinet-512 checkpoint, https://huggingface.co/nvidia/stt_en_citrinet_512_ls , released under CC-BY-4.0: https://creativecommons.org/licenses/by/4.0/ . Attribution: NVIDIA. AAI replaced the output vocabulary/tokenizer and fine-tuned the acoustic parameters for Mongolian. AAI also provides inference helpers and release documentation. These modifications do not change the upstream licensor’s independent permissions.
Attribution and citation
This acoustic model adapts NVIDIA’s pretrained Citrinet-512 model; the upstream CC-BY-4.0 attribution and license remain applicable to the upstream material. NeMo and SentencePiece retain their own licenses. Full notices and links are in Third-party notices.
@misc{aai2026asrnano,
author = {Applied AI Mongolia NGO},
title = {AAI ASR Nano v1},
year = {2026},
url = {https://huggingface.co/aaimn/aai-asr-nano-v1}
}
- Downloads last month
- 83
