Skip to content

[QEff. Finetuning] Adding TP+DDP support in HF Trainer stack#907

Draft
smedhe wants to merge 23 commits intoquic:ft_experimental_v1from
smedhe:hf_trainer_tp_ddp
Draft

[QEff. Finetuning] Adding TP+DDP support in HF Trainer stack#907
smedhe wants to merge 23 commits intoquic:ft_experimental_v1from
smedhe:hf_trainer_tp_ddp

Conversation

@smedhe
Copy link
Copy Markdown
Contributor

@smedhe smedhe commented Apr 6, 2026

Adding TP+DDP support in the new hf trainer stack. It is still an experimental feature due to transformers and accelerate versions mismatch.
Further TO-DO:
load_in_4_bits flag is not supported in v5.1.0, commented out since it is not used
need to add steps for running tp+ddp in the config.md

smedhe and others added 19 commits March 30, 2026 06:41
- Added a logger which will log onto console and file. This code is
similar to existing QEff. Finetuning logger code.
- Also added dist_utils which serves as utility code when dealing with
distributed training.
- Added logger test cases for sanity checks.

---------

Signed-off-by: Meet Patel <meetkuma@qti.qualcomm.com>
Signed-off-by: Sharvari Medhe <smedhe@qti.qualcomm.com>
Signed-off-by: Ann Kuruvilla <akuruvil@qti.qualcomm.com>
cherry picking PRs- 697,658,667,666,656,652,647,649,645

---------

Signed-off-by: Meet Patel <meetkuma@qti.qualcomm.com>
Signed-off-by: Tanisha Chawada <tchawada@qti.qualcomm.com>
Signed-off-by: Dhiraj Kumar Sah <dhirajku@qti.qualcomm.com>
Signed-off-by: Sharvari Medhe <smedhe@qti.qualcomm.com>
Signed-off-by: Ann Kuruvilla <akuruvil@qti.qualcomm.com>
Signed-off-by: Swati Allabadi <sallabad@qti.qualcomm.com>
Signed-off-by: Ann Kuruvilla <akuruvil@qti.qualcomm.com>
…c#872)

we are only cherry-picking PR-787, 791,813,795, skipping rebasing PR
785, cherry-picking experimental related branches from PR 692,747

---------

Signed-off-by: Swati Allabadi <sallabad@qti.qualcomm.com>
Signed-off-by: Sharvari Medhe <smedhe@qti.qualcomm.com>
Signed-off-by: Tanisha Chawada <tchawada@qti.qualcomm.com>
Signed-off-by: Ann Kuruvilla <akuruvil@qti.qualcomm.com>
Co-authored-by: Ann Kuruvilla <akuruvil@qti.qualcomm.com>
Signed-off-by: Ann Kuruvilla <akuruvil@qti.qualcomm.com>
Signed-off-by: Ann Kuruvilla <akuruvil@qti.qualcomm.com>
Adding config file to support style remix dataset

---------

Signed-off-by: Tanisha Chawada <tchawada@qti.qualcomm.com>
Signed-off-by: Ann Kuruvilla <akuruvil@qti.qualcomm.com>
Signed-off-by: Ann Kuruvilla <akuruvil@qti.qualcomm.com>
Signed-off-by: Ann Kuruvilla <akuruvil@qti.qualcomm.com>
Signed-off-by: Ann Kuruvilla <akuruvil@qti.qualcomm.com>
…ntation (quic#893)

1) Added unit test cases for Pipeline Parallelism
2) Added documentation on how to run these tests
3) Created a constants file

Signed-off-by: Swati Allabadi <sallabad@qti.qualcomm.com>
Co-authored-by: Swati Allabadi <sallabad@qti.qualcomm.com>
Signed-off-by: Ann Kuruvilla <akuruvil@qti.qualcomm.com>
Signed-off-by: Ann Kuruvilla <akuruvil@qti.qualcomm.com>
Signed-off-by: Ann Kuruvilla <akuruvil@qti.qualcomm.com>
Signed-off-by: Ann Kuruvilla <akuruvil@qti.qualcomm.com>
Signed-off-by: Ann Kuruvilla <akuruvil@qti.qualcomm.com>
Signed-off-by: Ann Kuruvilla <akuruvil@qti.qualcomm.com>
Signed-off-by: Ann Kuruvilla <akuruvil@qti.qualcomm.com>
Added testcase to test compare loss and metrics for different sdks to stable sdk

Signed-off-by: Tanisha Chawada <tchawada@qti.qualcomm.com>
Updating PP CLI command as per latest changes in config manager
In future, this command should also be updated if any changes are done
in single SOC CLI command

Signed-off-by: Swati Allabadi <sallabad@qti.qualcomm.com>
Co-authored-by: Swati Allabadi <sallabad@qti.qualcomm.com>
Signed-off-by: Sharvari Medhe <smedhe@qti.qualcomm.com>
Signed-off-by: Sharvari Medhe <smedhe@qti.qualcomm.com>
@smedhe smedhe marked this pull request as draft April 6, 2026 09:20
Signed-off-by: Sharvari Medhe <smedhe@qti.qualcomm.com>

git clone https://github.com/quic/efficient-transformers.git
cd efficient-transformers
git checkout ft_experimental # Can remove this once merged to mainline
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.

ft_v1

Copy link
Copy Markdown
Contributor

@quic-akuruvil quic-akuruvil left a comment

Choose a reason for hiding this comment

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

Add inference post the checkpoints are saved. And for checkpoint saving stick to native HF checkpoints saving. So it is easier to load model, and add tuned peft adapters.

Signed-off-by: Sharvari Medhe <smedhe@qti.qualcomm.com>
@quic-akuruvil quic-akuruvil force-pushed the ft_experimental_v1 branch 2 times, most recently from 7258800 to aff10af Compare April 16, 2026 10:50
smedhe added 2 commits April 16, 2026 16:39
Signed-off-by: Sharvari Medhe <smedhe@qti.qualcomm.com>
Signed-off-by: Sharvari Medhe <smedhe@qti.qualcomm.com>
@quic-akuruvil quic-akuruvil force-pushed the ft_experimental_v1 branch 2 times, most recently from a3a5067 to 69d48ca Compare April 27, 2026 10:40
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