TRAIS-Lab / dattri

`dattri` is a PyTorch library for developing, benchmarking, and deploying efficient data attribution algorithms.
https://trais-lab.github.io/dattri/
MIT License
28 stars 8 forks source link

[dattri.model_utils] implement retrain_lds #48

Closed jiaqima closed 4 months ago

jiaqima commented 4 months ago

Description

This PR implemented retrain_lds.

1. Motivation and Context

Implement retrain_lds to prepare retrained models for LDS metric calculation. This PR is based on #21. PR #21 got a bit too messy to comment and edit. This PR implements the retraining part. A subsequent PR will implement the metric.

Also see #9 for the initial design.

2. Summary of the change

3. What tests have been added/updated for the change?

TheaperDeng commented 4 months ago

others LGTM