Skip to content
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

redo logging #415

Merged
merged 39 commits into from
Dec 5, 2024
Merged

redo logging #415

merged 39 commits into from
Dec 5, 2024

Conversation

NathanHB
Copy link
Member

@NathanHB NathanHB commented Nov 29, 2024

decent logging

  • revamped the logging with a config modifyng every loggers used in lighteval
  • made accelerate a default requirement
  • fixed some documentation

@NathanHB
Copy link
Member Author

Screenshot 2024-11-29 at 19 37 31

@clefourrier
Copy link
Member

clefourrier commented Nov 29, 2024

hm ok for me but i'd like to have kinda "where we're at" info - maybe a new "[STEP]" tag?
[STEP] Loading model
[STEP] Starting eval

  • or putting these in all caps
    [INFO] --- LOADING MODEL ---

@clefourrier
Copy link
Member

but no strong opinion

@NathanHB
Copy link
Member Author

NathanHB commented Dec 2, 2024

hm ok for me but i'd like to have kinda "where we're at" info - maybe a new "[STEP]" tag? [STEP] Loading model [STEP] Starting eval

  • or putting these in all caps
    [INFO] --- LOADING MODEL ---

Added

Screenshot 2024-12-02 at 13 11 10

Copy link
Member

@clefourrier clefourrier left a comment

Choose a reason for hiding this comment

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

lgtm, ty!!! :)
good job, it's much cleaner

@@ -575,7 +584,7 @@ def compute(self, golds: list[str], predictions: list[str], **kwargs) -> dict:
dict: Scores over the current sample's items.
"""
if self.bert_scorer is None:
hlog_warn("The first metric computation step might be a bit longer as we need to download the model.")
logger.info("The first metric computation step might be a bit longer as we need to download the model.")
Copy link
Member

Choose a reason for hiding this comment

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

Why not warning?

@clefourrier
Copy link
Member

Wil you rebase it on main?

@NathanHB
Copy link
Member Author

NathanHB commented Dec 2, 2024

No I will merge it into the CLI refacto (this will create a big PR But easy to manage as the are separated I think). Doing this because I wanted a clean demo to show

@clefourrier
Copy link
Member

Ok, then:

  1. finish the CLI refacto and ping me on it so I review
  2. once good, merge this one
  3. merge on main the CLI and this one

@clefourrier
Copy link
Member

At the moment, this one is based on your closed source PR, can you rebase it to main?

@NathanHB
Copy link
Member Author

NathanHB commented Dec 3, 2024

mhh this PR is based on the refacto CLI, you mean rebase the cli refacto to main ?

@clefourrier
Copy link
Member

Yep!

@HuggingFaceDocBuilderDev
Copy link
Collaborator

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.

@NathanHB NathanHB changed the base branch from nathan-refacto-cli to main December 4, 2024 13:20
@NathanHB NathanHB requested a review from clefourrier December 4, 2024 14:17
src/lighteval/pipeline.py Outdated Show resolved Hide resolved
@@ -25,7 +25,6 @@ appropriate extras group.

| extra name | description |
|--------------|---------------------------------------------------------------------------|
| accelerate | To use accelerate for model and data parallelism with transformers models |
Copy link
Member

Choose a reason for hiding this comment

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

We'll want to offer a no parallelism option I think

Copy link
Member Author

Choose a reason for hiding this comment

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

not sure what you mean, parallelism is not enabled by default, we have to set model_parallel=True

Copy link
Member

Choose a reason for hiding this comment

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

Using accelerate is mandatory to launch lighteval, but we might want a setup with no DP/MP/PP of any kind, without gpu use

@NathanHB NathanHB merged commit 1fb7968 into main Dec 5, 2024
3 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