Skip to content

Conversation

@rasapala
Copy link
Collaborator

🛠 Summary

Check if openvino_detokenizer.xml exists after export.
If it doesn't exist call convert_tokenizer for the model.

🧪 Checklist

  • Unit tests added.
  • The documentation updated.
  • Change follows security best practices.
    ``

@rasapala rasapala requested review from dtrawins and mzegla October 13, 2025 12:19
output = exec_cmd(this->CONVERT_TOKENIZER_CHECK_COMMAND, retCode);
if (retCode != 0) {
SPDLOG_DEBUG("Command output {}", output);
SPDLOG_ERROR("Trying to pull {} from HuggingFace but missing convert_tokenizer. Use the ovms package with convert_tokenizer.", this->sourceModel);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this error log is readable - I mean next step is not very clear to me. Is convert_tokenizer a parameter?

// clang-format off
oss << this->CONVERT_TOKENIZER_EXPORT_COMMAND;
oss << this->sourceModel;
oss << " --with-detokenizer -o ";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in some pipelines there is no detokenizer. was it tested?

@rasapala
Copy link
Collaborator Author

Missing openvino_tokenizers.cli as convert_tokenizer on windows.

@rasapala rasapala changed the title Convert_tokenizr support Convert_tokenizer support Oct 16, 2025
@rasapala
Copy link
Collaborator Author

Need to test demos with this.

@rasapala rasapala merged commit 14cb469 into main Oct 23, 2025
1 check passed
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.

3 participants