这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@yao-matrix
Copy link
Contributor

@BenjaminBossan @githubnemo , #2606 corrupted while rebasing, so I opened another PR here. Pls help review, thx very much.

accelerators like XPU

Signed-off-by: YAO Matrix <matrix.yao@intel.com>
Copy link
Member

@BenjaminBossan BenjaminBossan left a comment

Choose a reason for hiding this comment

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

Generally, the PR LGTM. I tested running an experiment, the logs look correct and the app is working as expected. I wonder if we can find better names than "accelerator_memory_reserved_avg", as "accelerator" is quite a mouthful, but I can live with it.

@yao-matrix can you confirm that the script runs successfully on XPU? Could you perhaps run a LoRA experiment and share the result log in a comment?

with gr.Row():
x_default = (
"cuda_memory_max" if "cuda_memory_max" in metric_preferences else list(metric_preferences.keys())[0]
"accelerator_memory_max" if "accelerator_memory_max" in metric_preferences else list(metric_preferences.keys())[0]
Copy link
Member

Choose a reason for hiding this comment

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

Could you please add line breaks (or run ruff format app.py)?

Copy link
Contributor Author

@yao-matrix yao-matrix Jun 26, 2025

Choose a reason for hiding this comment

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

done with ruff format, thx.

Signed-off-by: YAO Matrix <matrix.yao@intel.com>
@BenjaminBossan
Copy link
Member

@yao-matrix Could you please merge with/rebase on the latest main again?

@yao-matrix
Copy link
Contributor Author

Generally, the PR LGTM. I tested running an experiment, the logs look correct and the app is working as expected. I wonder if we can find better names than "accelerator_memory_reserved_avg", as "accelerator" is quite a mouthful, but I can live with it.

@yao-matrix can you confirm that the script runs successfully on XPU? Could you perhaps run a LoRA experiment and share the result log in a comment?

yes, the script runs successfully on XPU. I lost my dev env during weekends(since it's shared machine), pls allow me some time to find another env and get the result log.

@yao-matrix
Copy link
Contributor Author

@yao-matrix Could you please merge with/rebase on the latest main again?

seems done.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@BenjaminBossan
Copy link
Member

@yao-matrix it seems like the merge was not with the latest version of PEFT main, could you please fetch it and try again?

@yao-matrix
Copy link
Contributor Author

done, thx @BenjaminBossan

@BenjaminBossan
Copy link
Member

failing tests are caused by latest transformers release, please ignore

@BenjaminBossan
Copy link
Member

The issue should be fixed, could you please merge/rebase again @yao-matrix 🙏

@yao-matrix
Copy link
Contributor Author

done, thx, @BenjaminBossan

Copy link
Member

@BenjaminBossan BenjaminBossan left a comment

Choose a reason for hiding this comment

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

Sorry for the delay. The PR LGTM, thanks.

@githubnemo I think it's good to merge, anything you'd like to add?

@BenjaminBossan
Copy link
Member

ping @githubnemo

Copy link
Collaborator

@githubnemo githubnemo left a comment

Choose a reason for hiding this comment

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

LGTM

@githubnemo githubnemo merged commit f650b08 into huggingface:main Jul 22, 2025
32 of 40 checks passed
BenjaminBossan pushed a commit to BenjaminBossan/peft that referenced this pull request Jul 28, 2025
…lerators like XPU (huggingface#2610)

make method comparision device agnostic, so it can expand to more
accelerators like XPU

---------

Signed-off-by: YAO Matrix <matrix.yao@intel.com>
@yao-matrix yao-matrix deleted the method-comp-xpu branch July 28, 2025 15:37
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