Skip to content

[QEff. Finetune]: Enabled FT CI tests. #420

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

Merged
merged 9 commits into from
Jul 1, 2025

Conversation

quic-meetkuma
Copy link
Contributor

  • Enabled CI tests for Finetuning.
  • Updated Jenkins file to install torch_qaic as it is required during FT tests.
  • Added finetune as a new pytest flag and updated other existing tests not to trigger for this flag.

@@ -25,6 +25,7 @@ pipeline {
pip install junitparser pytest-xdist &&
pip install librosa==0.10.2 soundfile==0.13.1 && #packages needed to load example for whisper testing
pip install --extra-index-url https://download.pytorch.org/whl/cpu timm==1.0.14 torchvision==0.19.1+cpu einops==0.8.1 && #packages to load VLMs
pip install /opt/qti-aic/integrations/torch_qaic/py310/torch_qaic-0.1.0-cp310-cp310-linux_x86_64.whl && # For finetuning tests
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this replace the torch that is getting installed on line 27?
If yes, we should install this package only at the finetuning tests stage.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, it won't update existing pytorch installation. The torch_qaic is the add-on for qaic backend.

Copy link
Contributor

Choose a reason for hiding this comment

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

Did e2e CI run pass post this change?

Copy link
Contributor

Choose a reason for hiding this comment

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

But most of qeff users won't have this package installed.
We should reflect the exact env that is going to be used by customers.
I understand it should not affect anything, but why should we deviate from golden standard?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Did e2e CI run pass post this change?
Yes, it ran.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But most of qeff users won't have this package installed. We should reflect the exact env that is going to be used by customers. I understand it should not affect anything, but why should we deviate from golden standard?

Thanks for pointing it out. We will have subsequent PRs for FT testcases. We will try to take care this in it by having a new stage before FT test cases.

@quic-meetkuma quic-meetkuma changed the title Enabled FT CI tests. [QEff. Finetune]: Enabled FT CI tests. Jun 27, 2025
@quic-hemagnih
Copy link
Contributor

Are we good to merge this code? Anything pending on this?

Please reply to @ochougul comments

@quic-hemagnih quic-hemagnih merged commit 6c64d35 into quic:main Jul 1, 2025
4 checks passed
@@ -9,7 +9,7 @@


def get_preprocessed_samsum(dataset_config, tokenizer, split, context_length=None):
dataset = datasets.load_dataset("Samsung/samsum", split=split, trust_remote_code=True)
dataset = datasets.load_dataset("knkarthick/samsum", split=split, trust_remote_code=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this approved dataset?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will be removed in #482

@@ -25,6 +25,7 @@ pipeline {
pip install junitparser pytest-xdist &&
pip install librosa==0.10.2 soundfile==0.13.1 && #packages needed to load example for whisper testing
pip install --extra-index-url https://download.pytorch.org/whl/cpu timm==1.0.14 torchvision==0.19.1+cpu einops==0.8.1 && #packages to load VLMs
pip install /opt/qti-aic/integrations/torch_qaic/py310/torch_qaic-0.1.0-cp310-cp310-linux_x86_64.whl && # For finetuning tests
Copy link
Contributor

Choose a reason for hiding this comment

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

Did e2e CI run pass post this change?

@quic-hemagnih
Copy link
Contributor

Hi Meet - Lets do following -

  1. Create a separate enviornment variable for Finetunning tests.
  2. Activate the env variable and run all the FT UTs and then once done
  3. Gracefully exit the env
    This way we will be able to overcome all the version mismatches or any custom env changes required for FT in future also.

Thanks
Hem

@quic-meetkuma
Copy link
Contributor Author

Thanks, Hem.
This will be done in subsequent PR.

qcdipankar pushed a commit to qcdipankar/efficient-transformers that referenced this pull request Jul 2, 2025
- Enabled CI tests for Finetuning. 
- Updated Jenkins file to install torch_qaic as it is required during FT
tests.
- Added finetune as a new pytest flag and updated other existing tests
not to trigger for this flag.

---------

Signed-off-by: meetkuma <[email protected]>
Co-authored-by: Meet Patel <[email protected]>
qcdipankar pushed a commit to qcdipankar/efficient-transformers that referenced this pull request Jul 2, 2025
- Enabled CI tests for Finetuning. 
- Updated Jenkins file to install torch_qaic as it is required during FT
tests.
- Added finetune as a new pytest flag and updated other existing tests
not to trigger for this flag.

---------

Signed-off-by: meetkuma <[email protected]>
Co-authored-by: Meet Patel <[email protected]>
qcdipankar pushed a commit to qcdipankar/efficient-transformers that referenced this pull request Jul 2, 2025
- Enabled CI tests for Finetuning. 
- Updated Jenkins file to install torch_qaic as it is required during FT
tests.
- Added finetune as a new pytest flag and updated other existing tests
not to trigger for this flag.

---------

Signed-off-by: meetkuma <[email protected]>
Co-authored-by: Meet Patel <[email protected]>
quic-swatia pushed a commit to quic-swatia/efficient-transformers that referenced this pull request Jul 8, 2025
- Enabled CI tests for Finetuning. 
- Updated Jenkins file to install torch_qaic as it is required during FT
tests.
- Added finetune as a new pytest flag and updated other existing tests
not to trigger for this flag.

---------

Signed-off-by: meetkuma <[email protected]>
Co-authored-by: Meet Patel <[email protected]>
quic-amitraj pushed a commit that referenced this pull request Jul 10, 2025
- Enabled CI tests for Finetuning.
- Updated Jenkins file to install torch_qaic as it is required during FT
tests.
- Added finetune as a new pytest flag and updated other existing tests
not to trigger for this flag.

---------

Signed-off-by: meetkuma <[email protected]>
Co-authored-by: Meet Patel <[email protected]>
Signed-off-by: Amit Raj <[email protected]>
quic-amitraj pushed a commit that referenced this pull request Jul 10, 2025
- Enabled CI tests for Finetuning.
- Updated Jenkins file to install torch_qaic as it is required during FT
tests.
- Added finetune as a new pytest flag and updated other existing tests
not to trigger for this flag.

---------

Signed-off-by: meetkuma <[email protected]>
Co-authored-by: Meet Patel <[email protected]>
Signed-off-by: Amit Raj <[email protected]>
quic-amitraj pushed a commit that referenced this pull request Jul 10, 2025
- Enabled CI tests for Finetuning. 
- Updated Jenkins file to install torch_qaic as it is required during FT
tests.
- Added finetune as a new pytest flag and updated other existing tests
not to trigger for this flag.

---------

Signed-off-by: meetkuma <[email protected]>
Co-authored-by: Meet Patel <[email protected]>
quic-dhirajku pushed a commit to quic-dhirajku/efficient-transformers that referenced this pull request Aug 4, 2025
- Enabled CI tests for Finetuning. 
- Updated Jenkins file to install torch_qaic as it is required during FT
tests.
- Added finetune as a new pytest flag and updated other existing tests
not to trigger for this flag.

---------

Signed-off-by: meetkuma <[email protected]>
Co-authored-by: Meet Patel <[email protected]>
quic-dhirajku pushed a commit to quic-dhirajku/efficient-transformers that referenced this pull request Aug 4, 2025
- Enabled CI tests for Finetuning.
- Updated Jenkins file to install torch_qaic as it is required during FT
tests.
- Added finetune as a new pytest flag and updated other existing tests
not to trigger for this flag.

---------

Signed-off-by: meetkuma <[email protected]>
Co-authored-by: Meet Patel <[email protected]>
Signed-off-by: Dhiraj Kumar Sah <[email protected]>
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.

4 participants