Skip to content

Separate, embeddable method comparison space#3303

Merged
githubnemo merged 2 commits into
huggingface:mainfrom
githubnemo:feature/embeddable-method-comparison-space
Jun 8, 2026
Merged

Separate, embeddable method comparison space#3303
githubnemo merged 2 commits into
huggingface:mainfrom
githubnemo:feature/embeddable-method-comparison-space

Conversation

@githubnemo

Copy link
Copy Markdown
Collaborator

PR #3300 drafts the idea of embedding the method comparison results into the respective method pages. This calls for a lighter version of the existing space to limit the needed space. This is what app_embed.py is.

Most of the common processing has moved to the existing and aptly named processing.py.

I think that this is better than having a layout switch in app.py as these apps are meant to be as flat as can be to be readable and maintainable.

PR huggingface#3300 drafts the idea of embedding the method comparison results into the
respective method pages. This calls for a lighter version of the existing space
to limit the needed space. This is what `app_embed.py` is.

Most of the common processing has moved to the existing and aptly named
`processing.py`.

I think that this is better than having a layout switch in `app.py` as
these apps are meant to be as flat as can be to be readable and maintainable.
@githubnemo githubnemo requested a review from BenjaminBossan June 5, 2026 14:23
@githubnemo githubnemo marked this pull request as ready for review June 5, 2026 14:23
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

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 BenjaminBossan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Generally LGTM. I haven't checked every change, as I assume that most stuff was just moved around.

Regarding the pareto plots, I noticed is that the method is not always highlighted, e.g. here:

Image

Is it because it is on the Pareto frontier?

Moreover, e.g. for LoRA, not all LoRA points are highlighted, e.g. here:

Image

It could be the same issue (no highlight if on Pareto frontier) or a different one (rs-LoRA is not considered to be LoRA).

Comment thread method_comparison/app_embed.py Outdated
)


metric_preferences = {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this dict needed? get_metric_preferences should already be doing the job.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

True, removed.

@githubnemo

Copy link
Copy Markdown
Collaborator Author

I assume you tested on https://huggingface.co/spaces/hubnemo/peft-method-comparison-individual - that was running a version before some of the fixes. I've updated the space so you can test there again if you like. Both of these issues are already addressed in the code of the PR.

@githubnemo githubnemo requested a review from BenjaminBossan June 5, 2026 16:46

@BenjaminBossan BenjaminBossan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Got it, thanks. LGTM.

@githubnemo githubnemo merged commit 5be35a6 into huggingface:main Jun 8, 2026
10 of 11 checks passed
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.

3 participants