Commit a80f30b
Fix CE patch and add layernorm support for InternVL (#921)
## Summary
Fix CE patch and add layernorm support for InternVL.
Related issue: #920
## Testing Done
- Hardware Type: A100
- [ ] run `make test` to ensure correctness
- [x] run `make checkstyle` to ensure code style
- [x] run `make test-convergence` to ensure convergence
```
(9 durations < 0.005s hidden. Use -vv to show these durations.)
================================================================================================================= short test summary info =================================================================================================================
FAILED test/convergence/fp32/test_mini_models_multimodal.py::test_mini_model_multimodal[mini_llava-32-0.0001-dtype1-1e-08-1e-05-0.005-1e-05-0.005-1e-05] - TypeError: 'NoneType' object is not subscriptable
================================================================================================== 1 failed, 7 passed, 11 warnings in 147.93s (0:02:27) ===================================================================================================
sys:1: DeprecationWarning: builtin type swigvarlink has no __module__ attribute
make: *** [Makefile:32: test-convergence] Error 1
```
llava crash, can't guess why(maybe my transformers version matter)
---------
Co-authored-by: Steven Shimizu <[email protected]>1 parent 606ca4e commit a80f30b
File tree
3 files changed
+77
-34
lines changed- src/liger_kernel/transformers
- test
- transformers
3 files changed
+77
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2038 | 2038 | | |
2039 | 2039 | | |
2040 | 2040 | | |
| 2041 | + | |
2041 | 2042 | | |
2042 | 2043 | | |
2043 | 2044 | | |
| |||
2048 | 2049 | | |
2049 | 2050 | | |
2050 | 2051 | | |
2051 | | - | |
2052 | 2052 | | |
2053 | 2053 | | |
2054 | 2054 | | |
2055 | 2055 | | |
2056 | 2056 | | |
2057 | 2057 | | |
2058 | | - | |
| 2058 | + | |
2059 | 2059 | | |
2060 | 2060 | | |
2061 | 2061 | | |
2062 | 2062 | | |
2063 | 2063 | | |
2064 | 2064 | | |
| 2065 | + | |
2065 | 2066 | | |
2066 | 2067 | | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
2067 | 2073 | | |
| 2074 | + | |
2068 | 2075 | | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
2069 | 2080 | | |
2070 | 2081 | | |
2071 | | - | |
2072 | | - | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
| 2086 | + | |
2073 | 2087 | | |
2074 | 2088 | | |
2075 | 2089 | | |
2076 | 2090 | | |
2077 | 2091 | | |
2078 | 2092 | | |
2079 | | - | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
2080 | 2105 | | |
2081 | | - | |
2082 | 2106 | | |
2083 | 2107 | | |
2084 | 2108 | | |
| |||
2091 | 2115 | | |
2092 | 2116 | | |
2093 | 2117 | | |
2094 | | - | |
| 2118 | + | |
2095 | 2119 | | |
2096 | 2120 | | |
2097 | 2121 | | |
2098 | 2122 | | |
2099 | | - | |
2100 | | - | |
2101 | | - | |
2102 | | - | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
2103 | 2131 | | |
2104 | | - | |
2105 | | - | |
2106 | | - | |
2107 | | - | |
2108 | | - | |
2109 | | - | |
2110 | | - | |
2111 | | - | |
2112 | | - | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
2113 | 2145 | | |
2114 | 2146 | | |
2115 | 2147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1637 | 1637 | | |
1638 | 1638 | | |
1639 | 1639 | | |
1640 | | - | |
1641 | | - | |
1642 | | - | |
1643 | | - | |
1644 | | - | |
1645 | | - | |
1646 | | - | |
1647 | | - | |
1648 | | - | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
1649 | 1656 | | |
1650 | | - | |
1651 | | - | |
1652 | | - | |
1653 | | - | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
1654 | 1661 | | |
| 1662 | + | |
| 1663 | + | |
1655 | 1664 | | |
1656 | 1665 | | |
1657 | 1666 | | |
| |||
1692 | 1701 | | |
1693 | 1702 | | |
1694 | 1703 | | |
1695 | | - | |
| 1704 | + | |
1696 | 1705 | | |
1697 | 1706 | | |
1698 | 1707 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
| 588 | + | |
588 | 589 | | |
589 | 590 | | |
590 | 591 | | |
591 | 592 | | |
| 593 | + | |
592 | 594 | | |
593 | 595 | | |
594 | 596 | | |
| |||
0 commit comments