Skip to content

Commit a1c610d

Browse files
Remove unnecessary deepcopy in evaluation_tracker (#459)
* Remove unnecessary deepcopy in evaluation_tracker * Fix style
1 parent 988fa94 commit a1c610d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lighteval/logging/evaluation_tracker.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
2222

23-
import copy
2423
import json
2524
import logging
2625
import os
@@ -156,8 +155,7 @@ def save(self) -> None:
156155
date_id = datetime.now().isoformat().replace(":", "-")
157156

158157
# We first prepare data to save
159-
config_general = copy.deepcopy(self.general_config_logger)
160-
config_general = asdict(config_general)
158+
config_general = asdict(self.general_config_logger)
161159
# We remove the config from logging, which contains context/accelerator objects
162160
config_general.pop("config")
163161

0 commit comments

Comments
 (0)