159 Commits
Author SHA1 Message Date
b954108c9b Feat/plugin filter metric registration (#4014)
* feat(registry): runtime plugin registration for model backends

Add a discovery layer so external packages can contribute model backends to
lm-eval without editing its source, and have them behave exactly like upstream
backends. The Registry class already supported EntryPoint placeholders, but
nothing ever scanned installed distributions for them.

Two mechanisms:
- Entry points: packages declaring an `lm_eval.models` entry point are
  discovered automatically (lazy, zero-config) when a model name is resolved.
- Explicit import: `--plugins mod` / `LM_EVAL_PLUGINS` env / `simple_evaluate(plugins=...)`
  import named modules so their `@register_*` decorators run, for local or
  unpublished components.

Also fixes Registry collision handling to upgrade an EntryPoint placeholder to
its decorated class (the natural case where a plugin declares both an entry
point and `@register_model`), guarding EntryPoint.__eq__ which raises on
mismatched types.

Co-Authored-By: Claude <[email protected]>

* feat(registry): plugin discovery for filters, metrics, and aggregations

Extend the entry-point plugin mechanism (added for models) to the other
Registry-backed components. External packages can now contribute:
- filters via the `lm_eval.filters` entry-point group
- metrics via `lm_eval.metrics`
- aggregations via `lm_eval.aggregations`

get_filter/get_metric/get_aggregation discover installed entry points lazily.
Because @register_metric populates the higher_is_better and metric-aggregation
registries as a decorator side effect, is_higher_better and get_metric_aggregation
now force discovery + materialization of the named metric so plugin metrics carry
their metadata even when those getters are called standalone.

Generalize the Registry placeholder→concrete upgrade to any object with
module/name (functions, not just classes), so metric/aggregation plugins that
declare both an entry point and a decorator upgrade cleanly instead of colliding.

Co-Authored-By: Claude <[email protected]>

* remove plugins from `simple_evaluate`

* fix tests

* fix docs

* add to news

---------

Co-authored-by: Baber Abbasi <[email protected]>
2026-09-01 18:51:28 +05:00
Thiago CrepaldiandClaude 69c005f265 feat(registry): runtime plugin registration for model backends (#4013)
* feat(registry): runtime plugin registration for model backends

Add a discovery layer so external packages can contribute model backends to
lm-eval without editing its source, and have them behave exactly like upstream
backends. The Registry class already supported EntryPoint placeholders, but
nothing ever scanned installed distributions for them.

Two mechanisms:
- Entry points: packages declaring an `lm_eval.models` entry point are
  discovered automatically (lazy, zero-config) when a model name is resolved.
- Explicit import: `--plugins mod` / `LM_EVAL_PLUGINS` env / `simple_evaluate(plugins=...)`
  import named modules so their `@register_*` decorators run, for local or
  unpublished components.

Also fixes Registry collision handling to upgrade an EntryPoint placeholder to
its decorated class (the natural case where a plugin declares both an entry
point and `@register_model`), guarding EntryPoint.__eq__ which raises on
mismatched types.

Co-Authored-By: Claude <[email protected]>

* Address review: drop plugin env var, fix dead except and EntryPoint extras

- Remove LM_EVAL_PLUGINS env var from simple_evaluate: importing third-party
  code via an env var is a security risk and makes the function depend on
  hidden env state. --plugins / --config already cover the use case.
- load_plugins: lazy registration validates nothing, so the try/except could
  never fire. Move real error handling to the actual failure site
  (_materialise_placeholder / EntryPoint.load) so a broken plugin logs the
  offending name and aborts on access.
- Registry collision handling: use EntryPoint.module/.attr instead of .value
  so entry points declared with extras (e.g. "my_pkg:MyLM [gpu]") upgrade
  correctly instead of comparing against the bracketed value.

Co-Authored-By: Claude <[email protected]>

* style: satisfy ruff 0.16.3 in touched files (registry, evaluator)

The pre-commit ruff pin was bumped to 0.16.3 on main, which lints whole
changed files. registry.py and evaluator.py carried pre-existing preview-rule
violations that only surface now that this PR touches them:

- move Callable import into TYPE_CHECKING block (TC003)
- sort __all__ (RUF022)
- bare `raise` instead of `raise e` in get_filter (TRY201)
- `float` instead of `int | float` for simple_evaluate limit (PYI041)
- noqa: BLE001 on intentional defensive Exception catches

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>
2026-09-01 14:33:29 +05:00
b0195a94f4 feat(models): add cross-platform onnxruntime-genai backend + refactor winml (#3960)
* feat(models): add cross-platform onnxruntime-genai backend + refactor winml

Add a cross-platform `onnxruntime-genai` backend that runs ONNX LLMs exported
by the ONNX Runtime GenAI Model Builder on CPU/CUDA/DirectML/WebGPU/AMD-NPU via
the `og.Config` provider API. All lm-eval logic (single-pass log-likelihood,
multiple-choice, rolling perplexity, generation) lives in
`ONNXRuntimeGenAILM(TemplateLM)`, following the `OptimumLM(HFLM)` single-file
subclass precedent.

Refactor `winml` into a thin `WindowsML(ONNXRuntimeGenAILM)` subclass that
overrides only execution-provider selection, inheriting the shared scoring
core. This removes the previous winml quality debt: the per-token
teacher-forcing loop (now a single `get_output("logits")` pass), the direct
`loglikelihood` override that bypassed `TemplateLM` token handling, and the
silent `(0.0, False)`-on-exception path that corrupted scores.

Add a shared parametrized test suite (unit tests for the scoring math with a
fake `_forward_logits`, plus CPU smoke tests over hellaswag/wikitext/gsm8k
using a tiny Model Builder fixture), packaging extra, and docs. The test is
added to the CI `--ignore` list since the ONNX runtimes are not installed in CI.

Part of QUARK-606 Phase 1. The raw `onnxruntime` backend, cross-backend parity
CI, OpenAI-compatible server, and Quark migration are follow-up stages.

Co-Authored-By: Claude <[email protected]>

* docs: keep model_guide subclassing tip generic

Trim the subclassing note to the pre-existing OptimumLM example instead of
documenting the onnxruntime-genai backend internals, which belong in the
backend's own docstrings/README rather than the general model-authoring guide.

Co-Authored-By: Claude <[email protected]>

* test: split winml tests into their own module

Move winml-specific coverage (registration, subclass relationship, non-Windows
CPU fallback) into tests/models/test_winml.py, leaving test_onnxruntime_genai.py
focused on the genai backend and its scoring math. Keeps each backend's tests
self-contained and adds the new file to the CI ignore list.

Co-Authored-By: Claude <[email protected]>

* fix(onnxruntime-genai): honor genai_config.json providers by default

execution_provider now defaults to None, meaning "use the providers the export
declares in genai_config.json" — og.Config(model_dir) seeds its provider list
from that file, and _select_ep no longer calls clear_providers() unless the
user explicitly asks for a provider. Previously the "cpu" default cleared the
list and appended nothing, silently downgrading a CUDA/DML/NPU export to CPU.
Pass execution_provider=cpu to force CPU, or a provider name to override.

winml pins its historical max_length/max_gen_toks (4096) so existing runs are
numerically unchanged, while the cross-platform backend keeps model-aware
defaults (context_length from the config; max_gen_toks=256).

Add regression tests for the three _select_ep branches and winml's defaults.

Co-Authored-By: Claude <[email protected]>

* pacify pre-commmit

---------

Co-authored-by: Claude <[email protected]>
Co-authored-by: Baber Abbasi <[email protected]>
2026-08-21 17:20:42 +05:00
buduoqiu 1323ffe16f fix(api): support think_end_token for chat completions (#3959) 2026-08-20 21:02:09 +05:00
c1c4bea377 [fix] Disallow enable_thinking with output_type: multiple_choice tasks / loglikelihood tasks; raise error in case think_end_token is not provided with enable_thinking=True (#3675)
* Add think_end_token and enable_thinking validation - auto split dev branch

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* precisions and doc

* cleanup and test

* fix(huggingface): enable_thinking never set

---------

Co-authored-by: Claude Opus 4.6 <[email protected]>
Co-authored-by: Baber Abbasi <[email protected]>
2026-04-09 01:06:44 +05:00
Baber Abbasi c9772b90a8 hotfix: fewshot_config not applied to fewshot docs; move TaskConfig (#3461)
* move TaskConfig; fix fewshot_config

* add chat_template to dummy

* update docs; update tests
2025-12-12 22:31:55 +05:00
Baber Abbasi b315ef3b05 refactor: Cli (#3440)
modular subcommands (run/ls/validate), YAML config support (--config), new EvaluatorConfig dataclass.
2025-12-02 19:39:16 +05:00
fxmarty-amdandBaber a7da456830 Rename the conflicting environment variable LOGLEVEL to LM_EVAL_LOG_LEVEL (#3418)
* fix log level env variable name

* change to `LMEVAL_LOG_LEVEL`

---------

Co-authored-by: Baber <[email protected]>
2025-11-27 02:20:38 +05:00
Ramiro R. C.andBaber 56def33dc5 Custom request headers | trust_remote_code param fix (#3069)
* added headers and custom model name | fixed bug with trust_remote_code param

* linting

* removed custom model name | changed headers override

* add `header` to base TemplateAPI

* nit

---------

Co-authored-by: Baber <[email protected]>
2025-07-18 15:22:39 +05:00
Baber Abbasi f93001db6c delete neuralmagic models (#3112) 2025-07-06 07:11:40 +05:00
Baber Abbasi 147e9d616a [longbench] fix metric calculation (#2983)
* use all answers

* use middle truncation

* maybe fix classification score

* strip classification preds

* [vllm] remove stop tokens post-hoc

* strip all preds

* pacify pre-commit

* start on truncation utility

* add to readme

* add a footgun doc

* fix newline in yaml templates

* do not strip code_sim preds!

* fix pre-commit config

* fix instruction warning

* add not to longbench readme
2025-06-08 12:13:30 +05:00
Baber Abbasi 3cb721486c move warning (#2857) 2025-03-28 18:58:17 +05:00
Kiersten Stokes 7158f4f4ab Add Markdown linter (#2818)
* Add markdown linter to pre-commit hooks

* Reformat existing markdown (excluding lm_eval/tasks/*.md)
2025-03-20 06:23:27 +05:00
Baber Abbasi 80a1007596 Add loncxt tasks (#2629)
suport for longcontext (and other synthetic tasks)
* add ruler
* add longbench
* pass `metadata` to TaskConfig
2025-03-18 23:27:55 +05:00
Baber Abbasi 14b0bd2695 fix doc: generate_until only outputs the generated text! (#2755) 2025-03-03 22:33:12 +05:00
Lintang SutawikaandBaber 1ba35e623b Logging (#2203)
* changed source of eval_logger

* allow eval_logger to be set from args

* removed verbosity arg from non-main methods

* fix logging

* pre-commit

* set verbosity in eval logger

* replace utils.eval_logger

* fix logging in main

* add logging to docs

* add logging message

* nit

* add logging to docs

* refactor setup_logging to utils

---------

Co-authored-by: Baber <[email protected]>
2025-02-21 06:23:59 +05:00
Kiersten Stokes ef6f524349 Update remaining references to assistant_prefill to gen_prefix (#2683) 2025-02-14 15:49:26 +05:00
omahs 8fe3435a21 Fix typos (#2679)
* fix typo

* fix typos

* fix typos
2025-02-07 22:01:26 +05:00
Baber Abbasi 703fbffd6f assistant prefill (#2615)
* add assistant prefix

* add arc_challenge from llama

* nit

* nit

* nit

* add assistant prefix

* add mmlu_llama

* nit

* nit

* Revert "nit"

This reverts commit 6a97f83562.

* fix regex bug

* add assistant_prefix to vllm

* add `Question:`

* add mmlu_pro

* add fewshot assistant_prefix

* use `assistant_prefill`

* typehints

* nits

* nits

* add to docs

* add readme
2025-01-16 04:09:18 +05:00
Sabrina J. Mielke b86aa2131f Wandb step handling bugfix and feature (#2580) 2024-12-20 21:40:53 +00:00
Baber Abbasi 8de772f93b add warning to readme (#2568)
* make warning prominent

* make warning prominent
2024-12-14 18:08:20 +05:00
Trawinski, DariuszandBaber 9632b343a3 avoid timeout errors with high concurrency in api_model (#2307)
* avoid timeout errors with high concurrency in api_model

* style

* add timeout

* add docs

---------

Co-authored-by: Baber <[email protected]>
2024-12-04 01:13:14 +05:00
77c811ead5 Fix chat template; fix leaderboard math (#2475)
* batch commit

* :Revert "batch commit"

This reverts commit d859d1ca3b.

* batch commit

* checkout from main

* checkout from main

* checkout from main

* checkout from main

* checkout from main

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* Chat template fix (#7)

* cleanup

* cleanup

* cleanup

* linting

* fix tests

* add ifeval install to new_task CI

* Revert "add ifeval install to new_task CI"

This reverts commit 1d19449bb7fbfa05d51e7cd20950475eae533bf1.

* adds leaderboard tasks (#1)

* adds leaderboard tasks

* Delete lm_eval/tasks/leaderboard/leaderboard_chat_template.yaml

* add readme

* Delete lm_eval/tasks/leaderboard/mmlu_pro/mmlu_pro_chat_template.yaml

* modify readme

* fix bbh task

* fix bbh salient task

* modify the readme

* Delete lm_eval/tasks/leaderboard/ifeval/README.md

* Delete lm_eval/tasks/leaderboard/math/README.md

* add leaderboard to the tasks repertory

* add anouncment about new leaderbaord tasks

* linting

* Update README.md

Co-authored-by: Hailey Schoelkopf <[email protected]>

* installs ifeval dependency in new_task github workflow

---------

Co-authored-by: Nathan Habib <[email protected]>
Co-authored-by: Hailey Schoelkopf <[email protected]>

* fix math parser

* fix math parser

* fix version

* add warning about chat template

---------

Co-authored-by: Nathan Habib <[email protected]>
Co-authored-by: Nathan Habib <[email protected]>
Co-authored-by: Nathan Habib <[email protected]>
Co-authored-by: Hailey Schoelkopf <[email protected]>
Co-authored-by: Nathan Habib <[email protected]>
2024-11-11 22:01:08 +05:00
Sypherd 0b8358eca1 Add real process_docs example (#2456) 2024-11-05 18:22:57 +05:00
Samuel Monson 57272b63b4 Add verify_certificate argument to local-completion (#2440) 2024-10-30 19:42:01 +05:00
3740a5d25b Add multiple chat template (#2129)
* multiple chat template support

* help doc update

* add transformers link to docstring

* model args update

* comment update

* statement simplification

* simplified chat_template property

* docs update

* removed template arg from HFLM class

* interface doc update

* model guide update

* interface doc update

* reuse apply_chat_template variable

* model guide refactor

* interface doc update

* removed old definition

* last nits

* last nits

* last nits

* better wording

* last nits

* Remove unnecessary Optional

* Apply suggestions from code review

Co-authored-by: Hailey Schoelkopf <[email protected]>

* return variable rename

---------

Co-authored-by: Clémentine Fourrier <[email protected]>
Co-authored-by: Hailey Schoelkopf <[email protected]>
2024-08-20 11:33:32 -04:00
Baber AbbasiandHailey Schoelkopf b70af4f514 bugfix and docs for API (#2139)
* encoding bugfix

* encoding bugfix

* overload logliklehood rather than loglikehood_tokens

* add custom tokenizer

* add docs

* Update API_guide.md

fix link; add note

* Update API_guide.md

typo

* pre-commit

* add link in readme

* nit

* nit

* nit

* Update API_guide.md

nits

* Update API_guide.md

* Update API_guide.md

* Update API_guide.md

* Update API_guide.md

* Update README.md

* Update docs/API_guide.md

* Update docs/API_guide.md

* Update API_guide.md

---------

Co-authored-by: Hailey Schoelkopf <[email protected]>
2024-07-29 14:20:46 -04:00
Nathan Weinberg 8f8e7f6e40 fix: broken discord link in CONTRIBUTING.md (#2114)
Signed-off-by: Nathan Weinberg <[email protected]>
2024-07-18 16:49:13 -04:00
Nathan Weinberg 1adab703e9 docs: align local test command to match CI (#2100)
Also add 'test_logs/' to .gitignore

Signed-off-by: Nathan Weinberg <[email protected]>
2024-07-15 11:39:10 -04:00
Nathan Weinberg a7a2923fc3 docs: remove trailing sentence from contribution doc (#2098)
Signed-off-by: Nathan Weinberg <[email protected]>
2024-07-13 17:22:03 -04:00
Nathan Habib 563f797189 Allow gating EvaluationTracker HF Hub results; customizability (#2051)
* batch commit

* :Revert "batch commit"

This reverts commit d859d1ca3b.

* batch commit

* checkout from main

* checkout from main

* checkout from main

* checkout from main

* checkout from main

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup eval results

* cleanup

* add check for gated repo

* fix jsonline issue

* fix

* add try catch when gating the details repo

* add doc

* adds back hub_repo_name

* readds hub repo name
2024-07-08 15:56:22 -04:00
Elron Bandelandhaileyschoelkopf ad80f55548 Easier unitxt tasks loading and removal of unitxt library dependancy (#1933)
* Updated unitxt loading

Signed-off-by: Elron Bandel <[email protected]>

* Revert change to general Readme

Signed-off-by: Elron Bandel <[email protected]>

* Adjust fda,squadv2,squad_completion and swde to work accept config in the constructor

Signed-off-by: Elron Bandel <[email protected]>

* Fix scrolls

Signed-off-by: elronbandel <[email protected]>

* Update documentation

Signed-off-by: elronbandel <[email protected]>

* Enforce backward compatability

Signed-off-by: elronbandel <[email protected]>

* Format unitxt class

Signed-off-by: elronbandel <[email protected]>

---------

Signed-off-by: Elron Bandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Co-authored-by: haileyschoelkopf <[email protected]>
2024-07-08 12:44:41 -04:00
517aadc4d0 Group agg rework (#1741)
* add greoup_config arg

* add a group config that allows disabling table for group score and group aggregate in general

* fixed size configuration

* adjust config

* add group config

* adjust mmlu to use group_config

* fixed args input in aggregate_subtask_metrics

* fixed issues related to printing alias of group and updated yaml

* update all mmlu variants to include group_config

* edit format

* modify mmlu tasks

* adjust group to also be a configurable group

* add configurable group

* simplify get_task_list

* adjust group scoring with using ConfigurableGroup

* adjust args

* update mmlu

* update mmlu

* update to work with new group and task configuration

* readd group_agg

* readd files

* move prepare_print_tasks to evaluator_utils

* sort set to False by default, fix predict_only arg

* add version for groups

* reversed task list

* update additional condition when loading a group in a group yaml

* update truthfulqa

* add description regarding tags replacing group

* replace group to tag

* fixed conditional statement

* remove warning

* update loading of task group and newly added tags

* reformat with pre-commit

* fixed info log

* update

* fix bug

* fix bug

* use task id to differentiate tasks

* convert all groups to configurable groups

* use task_id

* reformat

* add task_id for python tasks as well

* add task_id for python tasks as well

* add task_id for python tasks as well

* revert truthfulqa

* revert mmlu tasks

* new mmlu config

* new group config parameter `tag_to_task`

* Update truthfulqa_mc2.yaml

* reformate

* add _process_group_config

* adjust task_id

* add get_subtask_list function to get proper subtask list

* group config to_dict update

* remove tag check

* update mmlu

* fix config passing issues

* add test yaml

* format fix

* add documentation

* corner case for single tag being called

* fix indentation

* formatting

* update all mmlu variants

* Update docs/task_guide.md

Co-authored-by: Hailey Schoelkopf <[email protected]>

* remove group_alias

* Update docs/task_guide.md

Co-authored-by: Hailey Schoelkopf <[email protected]>

* remove version for metadata

* Update docs/task_guide.md

Co-authored-by: Hailey Schoelkopf <[email protected]>

* update mmlu/

* removed " " in make_table

* change how aggregate_metric is loaded

* change how aggregate_metric is loaded

* update aggregate_metric arg

* update format

* update format

* some docs fixes

* add groups for agieval, aexams, aclue

* add more explicit aggregation groups

* add more groupings / tags distinctions

* add more groupings

* more groupings

* add many explicit group configs

* add many explicit group configs

* add more explicit group configs

* add more explicit group configs

* add more error msgs, agg_metric -> agg_metric_list

* some docs updates

* update task_id to be updateable and uses group:task format

* make KMMLU a tag for now

* update docs

* don't duplicate task names

* fix merge conflicts?

* giving this a try

* clean up diff

* switch mmlu variants over to using

* don't use to-be-deprecated group: config field in overview notebook

* Python tasks which subclass ConfigurableTask now run

* update mmlu

* pre-commit format

* fixed sorting for multi-level printing

* move group api to separate file

* fix bbh aggregation filter usage

* track api/group.py

* adjust group and tags loading

* make explicit group configs for leaderboard and other newer tasks

* fix arabicmmlu

* update

* change arabicmmlu template name???

* update group alias

* fix printing bugs

* check table printing is correct ; update tests

* use mmlu_stem to have a group included in print tests

---------

Co-authored-by: Hailey Schoelkopf <[email protected]>
Co-authored-by: haileyschoelkopf <[email protected]>
2024-07-08 11:12:35 -04:00
johnwee1andHailey Schoelkopf 6e49b1f691 Update interface.md (#1982)
* Update interface.md

update interface to remove link to really outdated commit of evaluator.py

* switch to relative referencing?

* Update interface.md

---------

Co-authored-by: Hailey Schoelkopf <[email protected]>
2024-06-25 13:49:08 -04:00
Sadra Barikbin 6f434934eb Update interface.md (#1955) 2024-06-12 12:03:16 +07:00
070d31df4e Add chat template (#1873)
* initial chat template

* tokenizer attribute check

* variable rename

* interface update

* system instruction

* system inst default update

* fewshot as multiturn

* typing update

* indent update

* added comments

* Adding a fewshot in a more readable way

* linting

* Moved apply chat template to LM

* multiturn alternation fix

* cache key update

* apply chat template method fix

* add system prompt hash to cache_key

* tokenizer name property for cache_key

* property name fix

* linting backward compatibility fix

* docs and errors update

* add documentation on adding chat template compatibility to model_guide

* fewshot as multiturn check fix

* saving system inst and chat template in results

* eval tracker update

* docs update

* Apply suggestions from code review

Co-authored-by: Hailey Schoelkopf <[email protected]>

---------

Co-authored-by: haileyschoelkopf <[email protected]>
Co-authored-by: Clémentine Fourrier <[email protected]>
Co-authored-by: Hailey Schoelkopf <[email protected]>
2024-06-03 12:40:12 -04:00
3e500e9d4c Complete task list from pr 1727 (#1901)
* added tasks and task family descriptors

* continue work on task list w/ links; slightly reorganize README

* Apply suggestions from code review

* Rename file so that it'll preview in Github when viewing lm_eval/tasks folder

* Update new_task_guide.md

* Update README.md

* run linter

* Add language column to task table; Add missing tasks to task table; fix nq_open and storycloze READMEs

* fix typo

* Apply suggestions from code review

Co-authored-by: Hailey Schoelkopf <[email protected]>

* apply format

---------

Co-authored-by: Harish Vadaparty <[email protected]>
Co-authored-by: Hailey Schoelkopf <[email protected]>
Co-authored-by: haileyschoelkopf <[email protected]>
2024-06-03 09:57:45 -04:00
Clémentine FourrierandHailey Schoelkopf 4902aaaf1f Making hardcoded few shots compatible with the chat template mechanism (#1895)
* init test 1

* fix

* this format seems to be working - need to update all other tasks with the new format

* bbh with few shot format

* fix fewshot bbh

* add mmlu flan cot

* samples of cot

* kmmlu

* fix gsm8k

* update keys for mmlu

* minerva math

* bbh

* fix

* fix samples

* small fixes to templates

* last prompt format change

* fixing prompt

* fixed minerva math format

* rm accidental commited file

* added doc for few shot samples

* Update lm_eval/loggers/evaluation_tracker.py

* Update lm_eval/loggers/evaluation_tracker.py

* Update docs/new_task_guide.md

Co-authored-by: Hailey Schoelkopf <[email protected]>

* added check in sampler per code review

* added the system from a function, plus an example in minerva math

* style

* Apply suggestions from code review

Co-authored-by: Hailey Schoelkopf <[email protected]>

* fix unit tests 1

* forcing use of test split

---------

Co-authored-by: Hailey Schoelkopf <[email protected]>
2024-05-31 12:01:17 -04:00
f4f59251ca Add dataset card when pushing to HF hub (#1898)
* dataset card initial

* few fixes

* adds groups for math, mmlu, gpqa

* added summary agrs

* moved sanitize_list to utils

* readme update

* recreate metadata moved

* multiple model support

* results latest split fix

* readme update and small refactor

* fix grouping

* add comments

* added pathlib

* corrected pathlib approach

* check whether to create a metadata card

* convert posix paths to str

* default hf org from token

* hf token value error

* Add logs after successful upload

* logging updates

* dataset card example in the readme

---------

Co-authored-by: Nathan Habib <[email protected]>
Co-authored-by: Alina Lozovskaia <[email protected]>
2024-05-31 10:17:01 -04:00
DongGeon Lee b5afe2299e Fix outdated links to the latest links in docs (#1876) 2024-05-24 09:51:03 +07:00
Zafir Stojanovski cb22e5028a fixed docs typos (#1863) 2024-05-21 16:56:17 +07:00
LSinev a9eaaf46f1 Fix links in README guiding to another branch (#1838) 2024-05-14 14:35:56 +07:00
KonradSzafer b24ac4b8eb interface doc update (#1807) 2024-05-13 23:21:54 +07:00
aditya thomas d32ce5cf11 Update flag --hf_hub_log_args in interface documentation (#1806)
* update interface documentation with flag --hf_hub_logs_arg

* update interface documentation with flag --hf_hub_logs_arg 2
2024-05-08 09:05:19 -04:00
aditya thomas 66cf07ef1e Update --tasks list option in interface documentation (#1792) 2024-05-06 14:49:44 -04:00
Nikita Lozhnikov f64e72f565 Add filter registry decorator (#1750)
* Add register_filter decorator

* Add register_filter docs
2024-04-26 11:20:54 -04:00
Hailey Schoelkopf 5627e81979 Cleanup for v0.4.2 release (#1573)
* Update interface.md

* fix: make caching reqs always work with accelerate launch

* remove stale task migration checklist

* remove deprecation warnings

* make informative TypeErrors for get_task_dict

* bump version metadata

* fix num_fewshot printing bug

* add fewshot value to cache key
2024-03-18 11:45:27 +07:00
3bdf25ec00 Support jinja templating for task descriptions (#1553)
* Support jinja templating for "description"

* Update task_guide.md

* Update lm_eval/api/task.py

* fix format?

* whitespace errors

* fix whitespace

* fix bad variable reference

---------

Co-authored-by: Hailey Schoelkopf <[email protected]>
Co-authored-by: haileyschoelkopf <[email protected]>
2024-03-10 16:07:27 -04:00
Sungho ParkandHailey Schoelkopf 9e6e240229 Update installation commands in openai_completions.py and contributing document and, update wandb_args description (#1536)
* Update openai completions and docs/CONTRIBUTING.md

* Update wandb args description

* Update docs/interface.md

---------

Co-authored-by: Hailey Schoelkopf <[email protected]>
2024-03-06 15:58:07 -05:00
LSinevandHailey Schoelkopf 4ee1b386e9 Cleanup and fixes (Task, Instance, and a little bit of *evaluate) (#1533)
* Remove unused `decontamination_ngrams_path` and all mentions (still no alternative path provided)

* Fix improper import of LM and usage of evaluator in one of scripts

* update type hints in instance and task api

* raising errors in task.py instead of asserts

* Fix warnings from ruff

* raising errors in __main__.py instead of asserts

* raising errors in tasks/__init__.py instead of asserts

* raising errors in evaluator.py instead of asserts

* evaluator: update type hints and remove unused variables in code

* Update lm_eval/__main__.py

Co-authored-by: Hailey Schoelkopf <[email protected]>

* Update lm_eval/__main__.py

Co-authored-by: Hailey Schoelkopf <[email protected]>

* Update lm_eval/api/task.py

Co-authored-by: Hailey Schoelkopf <[email protected]>

* Update lm_eval/api/task.py

Co-authored-by: Hailey Schoelkopf <[email protected]>

* Update lm_eval/api/task.py

Co-authored-by: Hailey Schoelkopf <[email protected]>

* Update lm_eval/evaluator.py

Co-authored-by: Hailey Schoelkopf <[email protected]>

* pre-commit induced fixes

---------

Co-authored-by: Hailey Schoelkopf <[email protected]>
2024-03-06 13:09:33 -05:00