Skip to content

Commit

Permalink
[trainer] 0.8.20 Add explicit setting eval/train for teacher/student
Browse files Browse the repository at this point in the history
  • Loading branch information
michal-lopuszynski-tcl committed Apr 25, 2024
1 parent 933fe44 commit 6b8fc06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions examples/trainer_vision/run_finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ def main(config_raw: dict[str, Any], output_path: pathlib.Path) -> None:
with open(out_decompose_config_path, "wt") as f:
json.dump(student_decompose_config, f)

student_model.train()
teacher_model.eval()
model = KdClassificationModel(
student_model=student_model,
teacher_model=teacher_model,
Expand Down
2 changes: 1 addition & 1 deletion examples/trainer_vision/version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This is parsed by setup.py, so we need to stick to str -> int parsing
__version__ = "0.8.19"
__version__ = "0.8.20"

_ver_major = int(__version__.split(".")[0])
_ver_minor = int(__version__.split(".")[1])
Expand Down

0 comments on commit 6b8fc06

Please sign in to comment.