Skip to content

Read the sharded model index as UTF-8 - #20

Open
ranas-mukminov wants to merge 1 commit into
ProjectD-AI:mainfrom
ranas-mukminov:fix/model-index-utf8
Open

ranas-mukminov wants to merge 1 commit into
ProjectD-AI:mainfrom
ranas-mukminov:fix/model-index-utf8

Conversation

@ranas-mukminov

Copy link
Copy Markdown

The inference helper reads the sharded model index JSON with open and no encoding, so loading the index depends on the ambient locale. This change passes encoding="utf-8", matching the encoding the same file already uses when reading the config file. The edited file passes py_compile; no test suite was run here, so CI is the check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant