Commit bcf8e15
Fix UnicodeDecodeError reading model_config.yaml on Windows
build_sortformer opened the extracted NeMo model_config.yaml without an
explicit encoding, so on Windows Python used the cp1252 (charmap) codec and
raised UnicodeDecodeError on UTF-8 bytes in the file. Read it as UTF-8.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Mason Corey <masoncorey@microsoft.com>1 parent 31774ec commit bcf8e15
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
718 | | - | |
| 718 | + | |
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
| |||
0 commit comments