Skip to content

Conversation

adrianboguszewski
Copy link
Contributor

@adrianboguszewski adrianboguszewski commented May 28, 2025

Providing alternative, python way for model conversion

@github-actions github-actions bot added the category: Image generation samples GenAI Image generation samples label May 28, 2025
Copy link
Collaborator

@as-suvorov as-suvorov left a 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?

@adrianboguszewski
Copy link
Contributor Author

Do you plan to add export with python API for other pipelines?

Ok, I can add them in this PR

@adrianboguszewski adrianboguszewski force-pushed the adrianboguszewski-patch-1 branch from 7711e25 to fa51774 Compare June 2, 2025 13:18
@Wovchena Wovchena requested a review from Copilot June 18, 2025 16:21
Copy link
Contributor

@Copilot Copilot AI left a 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-adding import argparse and including the argument parsing or explicitly defining model_dir for clarity.
```python

@Wovchena Wovchena merged commit 3f0d6ab into master Jun 23, 2025
35 of 42 checks passed
@adrianboguszewski adrianboguszewski deleted the adrianboguszewski-patch-1 branch June 23, 2025 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Image generation samples GenAI Image generation samples category: LLM samples GenAI LLM samples category: RAG samples RAG samples category: VLM samples GenAI VLM samples category: Whisper samples GenAI Whisper samples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants