Commit b6346bf
authored
double reduction user-friendly error (#7895)
Currently a numerical order of the param tells nothing to the user of
what param is the problem. This PR fixes that.
before:
```
AssertionError: The parameter 0 has already been reduced. ...
```
after:
```
AssertionError: The parameter model.embed_tokens.weight has already been reduced.
```1 parent d9a4aad commit b6346bf
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1572 | 1572 | | |
1573 | 1573 | | |
1574 | 1574 | | |
1575 | | - | |
| 1575 | + | |
1576 | 1576 | | |
1577 | 1577 | | |
1578 | 1578 | | |
| |||
0 commit comments