Skip to content

Commit ce23a69

Browse files
committed
v2
Signed-off-by: nithinraok <[email protected]>
1 parent 019e124 commit ce23a69

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

nemo_asr/run_eval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def download_audio_files(batch):
127127
else:
128128
audio_files = all_data["audio_filepaths"]
129129
start_time = time.time()
130-
with torch.autocast(device_type="cuda", dtype=compute_dtype), torch.inference_mode(), torch.no_grad():
130+
with torch.inference_mode(), torch.no_grad():
131131

132132
if 'canary' in args.model_id and 'v2' not in args.model_id:
133133
pnc = 'nopnc'

nemo_asr/run_eval_ml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def download_audio_files(batch):
146146
print("Running full evaluation...")
147147

148148
start_time = time.time()
149-
with torch.autocast(device_type="cuda", dtype=compute_dtype), torch.inference_mode(), torch.no_grad():
149+
with torch.inference_mode(), torch.no_grad():
150150
# for canary-1b and canary-1b-flash, we need to set pnc='no' for English and for other languages, we need to set pnc='pnc' but for canary-1b-v2 pnc='yes' for all languages
151151
if 'canary' in args.model_id and 'v2' not in args.model_id:
152152
pnc = 'nopnc' if LANGUAGE == "en" else 'pnc'

nemo_asr/run_nemo_ml.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
export PYTHONPATH="..":$PYTHONPATH
88

99
# Configuration
10-
MODEL_ID="nvidia/canary-1b-flash"
10+
MODEL_ID="nvidia/canary-1b-flash"
1111

1212
BATCH_SIZE=64
1313

0 commit comments

Comments
 (0)