Closed KurisuTheAmadeus closed 3 days ago
Hi @KurisuTheAmadeus @TheaperDeng
now we will not directly modify proj_seed
in the for-loop, we will basically fix it through projector_kwargs
and we only modify ensemble_id
to change the randomness by looking at the current checkpoint index.
If this is the case, we can close this issue without additional PRs.
I think currently the issue resolved.
Bug Description
In current version of TrakAttributor, set up a proj_seed will cause no effect on output. This is because before any projector is called, the line
will be executed, and
ckpt_seed
is "fixed" hereregardless of seed chosen.
A reproducible example
Here is a reproducible example that demonstrates this, under the same model
model
, only changing the projection seed will have no effect on result.Proposed method of fixing
This proposed method will result in a trackable series of different projection matrix for a job:
In any loop we 'add the
ckpt_seed
' before projection and remove it immediately after the projection; note that we assume no multi-threading here