Skip to content

Commit 07cfad7

Browse files
committed
Merge remote-tracking branch 'origin/duplex-stt-rebased' into duplex-stt-rebased-latest
2 parents 9af0bcd + cd15905 commit 07cfad7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

nemo/collections/speechlm2/models/duplex_stt_model.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import random
1717
import tempfile
1818

19+
import soundfile as sf
1920
import torch
2021
import torch.distributed as dist
2122
import torch.nn.functional as F
@@ -176,9 +177,7 @@ def load_pretrained_s2s_model(self, checkpoint_path):
176177
loaded_keys = []
177178
missing_keys = []
178179

179-
with safe_open(
180-
os.path.join(checkpoint_path, "model.safetensors"), framework="pt", device="cpu"
181-
) as f:
180+
with safe_open(os.path.join(checkpoint_path, "model.safetensors"), framework="pt", device="cpu") as f:
182181
available_keys = f.keys()
183182
for key in available_keys:
184183
if key in model_state_dict:

0 commit comments

Comments
 (0)