Automatic Speech Recognition
Transformers
PyTorch
Safetensors
Russian
gigaam-ctc
asr
gigaam
stt
ctc
audio
speech
custom_code
Instructions to use Den4ikAI/gigaam-ctc-whisperx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Den4ikAI/gigaam-ctc-whisperx with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="Den4ikAI/gigaam-ctc-whisperx", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Den4ikAI/gigaam-ctc-whisperx", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from Den4ikAI/gigaam-ctc-whisperx: direct link, hf CLI and curl.
- Browser
- Download file 2.1 kB
-
https://huggingface.co/Den4ikAI/gigaam-ctc-whisperx/resolve/main/README.md
- Command line
-
hf download hf://Den4ikAI/gigaam-ctc-whisperx/README.md
-
curl -L -o README.md https://huggingface.co/Den4ikAI/gigaam-ctc-whisperx/resolve/main/README.md
2.1 kB
metadata
license: mit
language:
- ru
pipeline_tag: automatic-speech-recognition
library_name: transformers
tags:
- asr
- gigaam
- stt
- ru
- ctc
- audio
- speech
GigaAM-v2-CTC 🤗 Hugging Face transformers
- original git https://github.com/salute-developers/GigaAM
Russian ASR model GigaAM-v2-CTC.
Model info
This is an original GigaAM-v2-CTC with transformers library interface.
File gigaam_transformers.py contains model, feature extractor and tokenizer classes with usual transformers methods. Model can be initialized with transformers auto classes (see an example below).
Installation
my lib versions:
torch2.5.1torchaudio2.5.1transformers4.49.0accelerate1.5.2
Usage
Usage is same as other transformers ASR models.
from transformers import AutoModel, AutoProcessor
import torch
import torchaudio
# load audio
wav, sr = torchaudio.load("audio.wav")
# resample if necessary
wav = torchaudio.functional.resample(wav, sr, 16000)
# load model and processor
processor = AutoProcessor.from_pretrained("waveletdeboshir/gigaam-ctc", trust_remote_code=True)
model = AutoModel.from_pretrained("waveletdeboshir/gigaam-ctc", trust_remote_code=True)
model.eval()
input_features = processor(wav[0], sampling_rate=16000, return_tensors="pt")
# predict
with torch.no_grad():
logits = model(**input_features).logits
# greedy decoding
greedy_ids = logits.argmax(dim=-1)
# decode token ids to text
transcription = processor.batch_decode(greedy_ids)[0]