-
Notifications
You must be signed in to change notification settings - Fork 284
Update conversion instructions #2287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you plan to add export with python API for other pipelines?
Ok, I can add them in this PR |
# Conflicts: # samples/python/speech_generation/README.md
7711e25
to
fa51774
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds alternative Python code examples for exporting models and tokenizers using the Optimum library across several sample folders, and fixes some code block delimiters.
- Introduced Python snippets for model and tokenizer export in six sample READMEs
- Added closing fences around shell snippets to fix formatting
- Removed an unused import in the RAG sample
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
samples/python/whisper_speech_recognition/README.md | Added Python export snippet using OVModelForSpeechSeq2Seq |
samples/python/visual_language_chat/README.md | Added Python export snippet using OVModelForVisualCausalLM |
samples/python/text_generation/README.md | Added Python export snippet using OVModelForCausalLM |
samples/python/speech_generation/README.md | Added Python export snippet using OVModelForTextToSpeechSeq2Seq |
samples/python/rag/README.md | Added Python export snippet using OVModelForFeatureExtraction and removed import argparse |
samples/python/image_generation/README.md | Added Python export snippet using OVPipelineForText2Image |
Comments suppressed due to low confidence (1)
samples/python/rag/README.md:47
- The snippet now uses
model_dir
without showing how it’s defined or parsed; consider re-addingimport argparse
and including the argument parsing or explicitly definingmodel_dir
for clarity.
```python
Providing alternative, python way for model conversion