Skip to content

[ci] Avoid downloading model on collection test cases#4118

Open
AlexanderDokuchaev wants to merge 2 commits into
openvinotoolkit:developfrom
AlexanderDokuchaev:ad/ft23
Open

[ci] Avoid downloading model on collection test cases#4118
AlexanderDokuchaev wants to merge 2 commits into
openvinotoolkit:developfrom
AlexanderDokuchaev:ad/ft23

Conversation

@AlexanderDokuchaev

Copy link
Copy Markdown
Collaborator

Changes

Update test test_generate_text_data_usage to load model inside test body

Reason for changes

Loading model on collection test cases

Related tickets

Tests

@AlexanderDokuchaev AlexanderDokuchaev requested a review from a team as a code owner June 29, 2026 07:10
Copilot AI review requested due to automatic review settings June 29, 2026 07:10
@github-actions github-actions Bot added the NNCF PT Pull requests that updates NNCF PyTorch label Jun 29, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the Torch dataset generator tests to avoid downloading Hugging Face models/tokenizers during pytest test collection by deferring model/tokenizer loading into the test body.

Changes:

  • Refactors test_generate_text_data_usage to parametrize by booleans and instantiate model/tokenizer inside the test.
  • Replaces the previous try/except validation with pytest.raises(...) for clearer error expectations.
  • Adds stable parametrization IDs for easier debugging of failing cases.

Comment thread tests/torch/test_dataset_generators.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NNCF PT Pull requests that updates NNCF PyTorch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants