[MRV2] Also enable MRV2 for Llama and Mistral dense models (#43458)
Signed-off-by: Nick Hill <nickhill123@gmail.com> Signed-off-by: yewentao256 <zhyanwentao@126.com> Co-authored-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
@@ -36,6 +36,7 @@ def evil_forward(self, *args, **kwargs):
|
||||
raise Exception("Simulated illegal memory access on Rank 0!")
|
||||
self.num_calls += 1
|
||||
|
||||
kwargs.setdefault("intermediate_tensors", None) # required for MRV2
|
||||
return self.model(*args, **kwargs)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user