- 31 Jan, 2024 1 commit
-
-
Hailey Schoelkopf authored
* don't override do_sample if no value for it is passed * Update gen_kwargs override condition * Update huggingface.py * Update huggingface.py * run linters * silence an erroneous warning
-
- 28 Jan, 2024 1 commit
-
-
LSinev authored
* raise Exception, not a string Additional info https://peps.python.org/pep-0352/#exception-hierarchy-changes https://docs.python.org/3.8/tutorial/errors.html#raising-exceptions * Apply PEP8 recommendation to prefer isinstance "Object type comparisons should always use isinstance() instead of comparing types directly" https://peps.python.org/pep-0008/ * Remove dangerous default mutable values in arguments https://pylint.readthedocs.io/en/stable/user_guide/messages/warning/dangerous-default-value.html * Format logging messages with fstring (not with format) Additional info https://pylint.readthedocs.io/en/stable/user_guide/messages/warning/logging-format-interpolation.html There are also discussions about the speed of formatting while logging or some unintended code executions https://github.com/pylint-dev/pylint/issues/2395 https://stackoverflow.com/a/54368109 but at least one format (fstring one) will be used throughout the project * Specify utf-8 encoding for `open` explicitly If not specified, it may be supposed differently in different environments, OSes, and Python versions. See https://peps.python.org/pep-0597/ https://docs.python.org/3.11/library/locale.html#locale.getencoding https://docs.python.org/3.10/library/os.html#utf8-mode https://pylint.readthedocs.io/en/stable/user_guide/messages/warning/unspecified-encoding.html Helps also if some code from English language tasks is taken as inspiration for tasks in non-English languages. * Use inline-ignoring comments to pass pre-commit instead of identity process https://flake8.pycqa.org/en/3.0.1/user/ignoring-errors.html#in-line-ignoring-errors https://www.flake8rules.com/rules/F841.html flake8 comments are supported by ruff: https://docs.astral.sh/ruff/linter/#error-suppression
-
- 26 Jan, 2024 1 commit
-
-
NoushNabi authored
* added intel optimum * added intel optimum in readme * modified intel optimum * modified intel optimum * modified intel optimum * modified install optimum * modified path of IR file * added openvino_device * added openvino_device2 * changed optimum-causal to openvino-causal * Update README.md * Update README.md * remove `lm_eval.base` import * update openvino-causal -> openvino ; pass device through super().__init__() * Update README.md * Add optimum to tests dependencies * apply pre-commit * fix so tests pass --------- Co-authored-by:
Hailey Schoelkopf <65563625+haileyschoelkopf@users.noreply.github.com> Co-authored-by:
haileyschoelkopf <hailey@eleuther.ai>
-
- 15 Jan, 2024 1 commit
-
-
Hailey Schoelkopf authored
* add WIP device_map overrides * update handling outside of accelerate launcher * change .to(device) log to debug level * run linter
-
- 11 Jan, 2024 1 commit
-
-
Hailey Schoelkopf authored
* fix incorrect lookback protections * bump generate_until task versions
-
- 27 Dec, 2023 1 commit
-
-
Jaewoo Yang authored
-
- 23 Dec, 2023 1 commit
-
-
Baber Abbasi authored
* refactor dataloader * cleanup + add docs * change arg * renamed Collator and added testing * parametrized test for Collator * appease pre-commit * added edge case batch 0 (no batching) * fix typos --------- Co-authored-by:Hailey Schoelkopf <65563625+haileyschoelkopf@users.noreply.github.com>
-
- 22 Dec, 2023 1 commit
-
-
- 20 Dec, 2023 1 commit
-
-
Baber Abbasi authored
* add ruff and isort. remove black and flake8 * remove unnecessary dependencies * remove dependency from table * change order * ran ruff * check 3.9 * exclude evaluator * update CI workflow * use ruff config in pyproject.toml * test * add isort rules to ruff * sort imports * import `make_table` * try stages for no-commit-to-branch * turn on mypy for pre-commit * test * test * test * change no-commit-to-branch to default * nits * fixed dependency
-
- 19 Dec, 2023 2 commits
-
-
Pasquale Minervini authored
* self.device in huggingface.py line 210 In huggingface.py line 210, self.device is str and does not have a "type" attribute * Update huggingface.py This handles both the case where `self.device` is a `torch.device` and a string * Update huggingface.py --------- Co-authored-by:Hailey Schoelkopf <65563625+haileyschoelkopf@users.noreply.github.com>
-
Hailey Schoelkopf authored
-
- 15 Dec, 2023 1 commit
-
-
Baber Abbasi authored
-
- 14 Dec, 2023 1 commit
-
-
Hailey Schoelkopf authored
* modularize HFLM code * pass through extra kwargs to AutoModel.from_pretrained call * remove explicit model_kwargs * rename gptq -> autogptq * fix tokenizer pad token errors * ensure model always respects device_map and autogptq's selected devices * add a _get_config helper fn
-
- 29 Nov, 2023 1 commit
-
-
baberabb authored
-
- 26 Nov, 2023 1 commit
-
-
haileyschoelkopf authored
-
- 21 Nov, 2023 1 commit
-
-
haileyschoelkopf authored
-
- 20 Nov, 2023 1 commit
-
-
baberabb authored
-
- 17 Nov, 2023 1 commit
-
-
lintangsutawika authored
-
- 10 Nov, 2023 1 commit
-
-
lintangsutawika authored
-
- 02 Nov, 2023 1 commit
-
-
haileyschoelkopf authored
-
- 01 Nov, 2023 1 commit
-
-
haileyschoelkopf authored
-
- 19 Oct, 2023 1 commit
-
-
lintangsutawika authored
-
- 17 Oct, 2023 1 commit
-
-
lintangsutawika authored
-
- 13 Oct, 2023 1 commit
-
-
Jason Krone authored
in hugging face model loglikelihood_tokens and greedy_util functions when batch-size is set to auto
-
- 11 Oct, 2023 3 commits
-
-
Zhiwei Zhuang authored
-
Zhiwei Zhuang authored
-
Zhiwei Zhuang authored
-
- 21 Sep, 2023 1 commit
-
-
Chris authored
-
- 13 Sep, 2023 1 commit
-
-
baberabb authored
-
- 05 Sep, 2023 2 commits
-
-
lintangsutawika authored
-
lintangsutawika authored
-
- 04 Sep, 2023 2 commits
-
-
Hailey Schoelkopf authored
-
lintangsutawika authored
-
- 26 Aug, 2023 1 commit
-
-
Benjamin Fattori authored
-
- 25 Aug, 2023 2 commits
-
-
Ethan Smith authored
This adds a bunch of simple annotations suggested by https://github.com/JelleZijlstra/autotyping.
-
lintangsutawika authored
-
- 22 Aug, 2023 1 commit
-
-
lintangsutawika authored
-
- 11 Aug, 2023 1 commit
-
-
Hailey Schoelkopf authored
-
- 10 Aug, 2023 1 commit
-
-
Til Jasper Ullrich authored
-
- 07 Aug, 2023 1 commit
-
-
lintangsutawika authored
-