Run this model with HF Jobs
Run nvidia/canary-1b-v2 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/nvidia/canary-1b-v2. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/nvidia/canary-1b-v2 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use nvidia/canary-1b-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- NeMo
How to use nvidia/canary-1b-v2 with NeMo:
import nemo.collections.asr as nemo_asr asr_model = nemo_asr.models.ASRModel.from_pretrained("nvidia/canary-1b-v2") transcriptions = asr_model.transcribe(["file.wav"]) - Notebooks
- Google Colab
- Kaggle
Clarification on the tokenizer: Concatenated tokenizer or Aggregate tokenizer?
Hi there,
Quick question about a little technical detail.
I noticed the previous monolingual english versions, used a concatenated tokenizer of size 1024 per language, where you could add new languages.
However I note the multilingual v2 states: "It uses a unified SentencePiece Tokenizer [5] with a vocabulary of 16,384 tokens, optimized across all 25 supported languages"
That to me sounds like the tokenizer was created via aggregating all 25 supported languages? is that correct or am I way off base with that assumption?
Cheers,
Lee
Single unified tokenizer for all languages, not concatenated.
Hi @nithinraok ,
I wonder where can I find unified tokenizer model which used in canary-1b-v2 to continue finetune ?
inside nemo file.tar -xvf canary-1b-v2.nemo
"cc5d48e83aad4be48aa9fa264b727c4b_tokenizer.model"
Thanks so much for confirming!
I have to say, I found this a bit confusing at first. In the original concatenated tokenizer paper (https://aclanthology.org/2023.calcs-1.7/), the authors compare a "concatenated tokenizer" with an "agg (aggregate) tokenizer", and they define that agg tokenizer the same way as what's called a "unified tokenizer."
But then in the NeMo codebase, the concatenated tokenizer is actually referred to as the "aggregated tokenizer" with type 'agg'!
It's a bit of a naming puzzle, but I appreciate you helping clear it up! ๐