From adf1031fde673b056f0e3e2322362537846bab7f Mon Sep 17 00:00:00 2001 From: Thomas Wolf Date: Fri, 9 Feb 2024 11:18:50 +0000 Subject: [PATCH] update package --- MANIFEST.in | 1 + pyproject.toml | 2 +- run_evals_accelerate.py | 4 ++++ src/lighteval/__init__.py | 4 ++++ 4 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 00000000..1d657c3f --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include src/lighteval/tasks/tasks_table.jsonl diff --git a/pyproject.toml b/pyproject.toml index 98b0da90..ef9dd427 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,7 @@ where = ["src"] [project] name = "lighteval" -version = "0.2.dev0" +version = "0.1.1.dev0" authors = [ { name="Clémentine Fourrier", email="clementine@huggingface.com" }, { name="Nathan Habib", email="nathan.habib@huggingface.com" }, diff --git a/run_evals_accelerate.py b/run_evals_accelerate.py index 0dfc658e..123154cd 100644 --- a/run_evals_accelerate.py +++ b/run_evals_accelerate.py @@ -1,3 +1,7 @@ +""" Example run command: +accelerate config +accelerate launch run_evals_accelerate.py --tasks="lighteval|hellaswag|5|1" --output_dir "/scratch/evals" --model_args "pretrained=gpt2" +""" import argparse from lighteval.main_accelerate import CACHE_DIR, main diff --git a/src/lighteval/__init__.py b/src/lighteval/__init__.py index e69de29b..676e646f 100644 --- a/src/lighteval/__init__.py +++ b/src/lighteval/__init__.py @@ -0,0 +1,4 @@ +import importlib.metadata + + +__version__ = importlib.metadata.version(__package__ or __name__)