Skip to content

Commit

Permalink
fix(training): stable GPU usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Hzfinfdu committed Jul 30, 2024
1 parent a4e1c90 commit 0d333e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lm_saes/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def sample_feature_activations_runner(cfg: LanguageModelSAEAnalysisConfig):
sae = parallelize_module(sae, device_mesh=sae.device_mesh["tp"], parallelize_plan=plan) # type: ignore
sae.parallelize_plan = plan

sae.decoder.weight = None
sae.decoder.weight = None # type: ignore[assignment]
torch.cuda.empty_cache()


Expand Down

0 comments on commit 0d333e1

Please sign in to comment.