Skip to content

Commit

Permalink
🩹 (Kaggle-LLM-Science-Exam): fix pre-commit complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
clementjumel committed Dec 14, 2023
1 parent df70b63 commit 9a786e6
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
8 changes: 4 additions & 4 deletions lib/kaggle-llm-science-exam/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ readme = "README.md"
version = "0.1.0"

[tool.poetry.dependencies]
polars = "~0.19.15"
scikit-learn = "^1.3.2"
bitsandbytes = "~0.41.2.post2"
datasets = "^2.15.0"
loguru = "~0.7.2"
polars = "~0.19.15"
python = "~3.10"
scikit-learn = "^1.3.2"
torchmetrics = "^1.2.0"
loguru = "~0.7.2"
typer = "~0.9.0"
transformers = "^4.35.2"
typer = "~0.9.0"

[tool.poetry.group.test.dependencies]
pytest = "^7.1.2"
Expand Down
2 changes: 1 addition & 1 deletion lib/kaggle-llm-science-exam/scripts/gpt2.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""File to run the evaluation of an LLM on the task.
When used in Kaggle's notebooks, the following lines must be run beforehand, and the notebook
When used in Kaggle's notebooks, the following lines must be run beforehand, and the notebook
must probably be reset as well:
```
Expand Down
2 changes: 1 addition & 1 deletion lib/kaggle-llm-science-exam/scripts/mistral.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""File to run the evaluation of an LLM on the task.
When used in Kaggle's notebooks, the following lines must be run beforehand, and the notebook
When used in Kaggle's notebooks, the following lines must be run beforehand, and the notebook
must probably be reset as well:
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from transformers import AutoTokenizer, BitsAndBytesConfig, GenerationConfig

try:
from pandas.api.types import is_datetime64tz_dtype
from pandas.api.types import is_datetime64tz_dtype # noqa: F401
except ImportError:
# pandas < 0.19.2
pass
Expand Down
5 changes: 2 additions & 3 deletions lib/kaggle-llm-science-exam/scripts/mistral_rag.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""File to run the evaluation of an LLM on the task.
When used in Kaggle's notebooks, the following lines must be run beforehand, and the notebook
When used in Kaggle's notebooks, the following lines must be run beforehand, and the notebook
must probably be reset as well:
```
Expand All @@ -26,10 +26,9 @@
from torch import Tensor
from torch.utils.data import DataLoader
from transformers import AutoTokenizer, BitsAndBytesConfig, GenerationConfig
from transformers.utils import quantization_config

try:
from pandas.api.types import is_datetime64tz_dtype
from pandas.api.types import is_datetime64tz_dtype # noqa: F401
except ImportError:
# pandas < 0.19.2
pass
Expand Down
2 changes: 1 addition & 1 deletion lib/kaggle-llm-science-exam/scripts/tf-idf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""File to compute dataset augmentation with articles from Wikipedia using TF-IDF.
This script can run on a CPU, as it's made mainly with sklearn, polars and datasets, however it
This script can run on a CPU, as it's made mainly with sklearn, polars and datasets, however it
takes just a bit more than one hour to run on my MacOS CPU (Intel chip).
"""

Expand Down

0 comments on commit 9a786e6

Please sign in to comment.