Skip to content
This repository was archived by the owner on Apr 23, 2026. It is now read-only.

ilab model evaluate command and eval library usage - #1369

Merged
alinaryan merged 35 commits into
instructlab:mainfrom
cdoern:eval
Jun 30, 2024
Merged

ilab model evaluate command and eval library usage#1369
alinaryan merged 35 commits into
instructlab:mainfrom
cdoern:eval

Conversation

@cdoern

@cdoern cdoern commented Jun 14, 2024

Copy link
Copy Markdown
Contributor
  1. added support for ilab model evaluate which allows users to run MMLU Bench MT Bench, MMLU Branch, and MT Branch Benchmarks
  2. Add an _evaluate class to config.yaml so that users can get sane evaluation defaults that they can see and modify. These funnel directly into the evaluation flags as training now does.
    a sample evaluation class looks like:
evaluate:
  branch: null
  mmlu:
    batch_size: 5
    few_shots: 2
  mmlu_branch:
    sdg_path: generated
  model_name: null
  mt:
    judge_model: prometheus-eval/prometheus-8x7b-v2.0
    max_workers: 40
    output_dir: eval_data
  mt_branch:
    taxonomy_path: taxonomy

@mergify mergify Bot added the ci-failure PR has at least one CI failure label Jun 14, 2024
@cdoern

cdoern commented Jun 14, 2024

Copy link
Copy Markdown
Contributor Author

this is a placeholder for now, lmk when the library is somewhere I can access and import (with the actual code)

@nathan-weinberg

Copy link
Copy Markdown
Contributor

@cdoern you can install directory from test.pypy.org for testing if you wish: https://test.pypi.org/project/instructlab-eval

once we have a 0.0.1 release we'll publish that to production PyPI

@mergify mergify Bot added ci-failure PR has at least one CI failure and removed ci-failure PR has at least one CI failure labels Jun 18, 2024
@russellb
russellb self-requested a review June 19, 2024 00:26
Comment thread src/instructlab/model/evaluate.py Outdated
Comment thread src/instructlab/model/evaluate.py Outdated
Comment thread src/instructlab/model/evaluate.py
Comment thread src/instructlab/model/evaluate.py Outdated
@mergify mergify Bot added the needs-rebase This Pull Request needs to be rebased label Jun 20, 2024
@mergify

mergify Bot commented Jun 20, 2024

Copy link
Copy Markdown
Contributor

This pull request has merge conflicts that must be resolved before it can be
merged. @cdoern please rebase it. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot removed the ci-failure PR has at least one CI failure label Jun 23, 2024
@mergify mergify Bot added ci-failure PR has at least one CI failure and removed needs-rebase This Pull Request needs to be rebased ci-failure PR has at least one CI failure labels Jun 23, 2024
Comment thread src/instructlab/model/evaluate.py
Comment thread src/instructlab/model/evaluate.py Outdated
Comment thread src/instructlab/model/evaluate.py
Comment thread src/instructlab/model/evaluate.py Outdated
Comment thread src/instructlab/model/evaluate.py Outdated
Comment thread src/instructlab/model/evaluate.py Outdated
@mergify mergify Bot added ci-failure PR has at least one CI failure and removed ci-failure PR has at least one CI failure labels Jun 25, 2024
Comment thread src/instructlab/configuration.py Outdated
cdoern and others added 17 commits June 29, 2024 09:51
Signed-off-by: Charlie Doern <cdoern@redhat.com>
… model-path

Serving will need to be replaced with library calls once available

Signed-off-by: Dan McPherson <dmcphers@redhat.com>
… base-model-path to allow for _branch comparison

Signed-off-by: Dan McPherson <dmcphers@redhat.com>
in order to avoid conflicts with other entities named model_ you need a model_config

Signed-off-by: Charlie Doern <cdoern@redhat.com>
Signed-off-by: Charlie Doern <cdoern@redhat.com>
Signed-off-by: Dan McPherson <dmcphers@redhat.com>
…s benchmarks

Signed-off-by: Dan McPherson <dmcphers@redhat.com>
Signed-off-by: Dan McPherson <dmcphers@redhat.com>
Signed-off-by: Dan McPherson <dmcphers@redhat.com>
Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
Signed-off-by: Charlie Doern <cdoern@redhat.com>
Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
Signed-off-by: Dan McPherson <dmcphers@redhat.com>
Signed-off-by: Dan McPherson <dmcphers@redhat.com>

@danmcp danmcp left a comment

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.

I am approving with a few notes:

Comment thread src/instructlab/model/evaluate.py
Comment thread src/instructlab/model/evaluate.py

@alinaryan alinaryan left a comment

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.

Thanks for the strong work on this!! Just have a few comments/q's:

Comment thread src/instructlab/configuration.py
Comment thread src/instructlab/configuration.py
Comment thread src/instructlab/configuration.py
Comment thread src/instructlab/model/evaluate.py
Comment thread src/instructlab/model/evaluate.py
Comment thread src/instructlab/model/evaluate.py
Comment thread src/instructlab/model/evaluate.py
@cdoern

cdoern commented Jun 30, 2024

Copy link
Copy Markdown
Contributor Author

made follow up issues!

@cdoern

cdoern commented Jun 30, 2024

Copy link
Copy Markdown
Contributor Author

Given that tomorrow morning (7/1) is a deadline. This PR needs to be merged before then to add some form of evaluation support.

That being said, there is a stale change request on this PR, some pending reviews that haven't come in yet, etc.

We will be dismissing those in favor of deferring to follow up issues but if any of the reviewers have immediate follow up concerns please feel free to reach out!!!!

@russellb

Copy link
Copy Markdown
Contributor

I filed #1540 as a follow-up to get this tested in e2e CI

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

testing Relates to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Epic] RHEL AI backend commands [Epic] CLI Integration (July 15 GA)

8 participants