Skip to content

make method comparison device agnostic, so it can expand to more accelerators like XPU #2610

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

yao-matrix
Copy link
Contributor

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

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?

@@ -222,7 +222,7 @@ def build_app(df):

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.

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.

2 participants