Skip to content

Commit 956e3a4

Browse files
committed
small fixes
1 parent 036cde1 commit 956e3a4

2 files changed

Lines changed: 3 additions & 16 deletions

File tree

lean_dojo_v2/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
11

22
__version__ = "1.0.0"
33
__author__ = "LeanDojo-v2 Contributors"
4-
5-
# Import main components for easy access
6-
from .agent import BaseAgent, HFAgent, LeanAgent
7-
from .prover import BaseProver, ExternalProver, HFProver, RetrievalProver
8-
9-
__all__ = [
10-
"BaseAgent",
11-
"HFAgent",
12-
"LeanAgent",
13-
"BaseProver",
14-
"HFProver",
15-
"RetrievalProver",
16-
"ExternalProver",
17-
]

lean_dojo_v2/lean_progress/train_steps_model.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ def _tokenize(batch):
7373
truncation=True,
7474
max_length=max_length,
7575
)
76-
encoded["labels"] = batch["steps_remaining"]
76+
# encoded["labels"] = batch["steps_remaining"]
77+
encoded["labels"] = [float(x) for x in batch["steps_remaining"]]
7778
return encoded
7879

7980
return _tokenize
@@ -122,7 +123,7 @@ def main() -> None:
122123
per_device_eval_batch_size=args.batch_size,
123124
num_train_epochs=args.epochs,
124125
weight_decay=0.01,
125-
evaluation_strategy="epoch",
126+
eval_strategy="epoch",
126127
save_strategy="epoch",
127128
load_best_model_at_end=True,
128129
metric_for_best_model="mse",

0 commit comments

Comments
 (0)