Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/fusion-model-coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ parents and roles come exclusively from `model.module_plan()`; matching a name,
shape, or inheritance chain does not grant eligibility.

The checked-in [qualification inventory](../tests/module_tree/fixtures/fusable_models.json)
accounts for all **208 registered model types**: **102 qualified** and **106 not
accounts for all **210 registered model types**: **102 qualified** and **108 not
qualified for the current executor**. Qualified means the real tiny native
model resolves the declared parents and the planner admits them. It does not
mean every layer or quantization setting is compatible. In particular, expert
Expand Down Expand Up @@ -245,6 +245,7 @@ layout alone does not authorize it.
| `gpt_pangu` | `PanguAlphaQModel` | Custom/remote implementation: no installed native config; executor has not been qualified. |
| `grinmoe` | `GrinMoeQModel` | Custom/remote implementation: no installed native config; executor has not been qualified. |
| `hymba` | `HymbaQModel` | No separate, non-expert QKV or gate/up role group in the declared module tree. |
| `inkling2_loop` | `Inkling2LoopQModel` | Clean-room Inkling2Loop implementation: the native module tree is not qualified for the fused qkv/gate_up executor. |
| `instella` | `InstellaQModel` | Custom/remote implementation: no installed native config; executor has not been qualified. |
| `intern_s2_preview` | `InternS2PreviewQModel` | Custom/remote implementation: no installed native config; executor has not been qualified. |
| `internlm` | `InternLMQModel` | Custom/remote implementation: no installed native config; executor has not been qualified. |
Expand Down
1 change: 1 addition & 0 deletions docs/supported-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ The table mirrors every explicit registration in `gptqmodel.models.auto.MODEL_MA
| HY-V3 | `hy_v3` |
| Hymba | `hymba` |
| Inkling | `inkling_mm_model` |
| Inkling 2 Mini | `inkling2_loop` |
| Instella | `instella` |
| Intern S1 / S2 Preview | `interns1`, `intern_s2_preview` |
| InternLM 1 / 2 / 2.5 | `internlm`, `internlm2` |
Expand Down
3 changes: 3 additions & 0 deletions gptqmodel/looper/module_preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ def _get_number_of_rows_and_cols(layer: torch.nn.Module) -> tuple[int, int]:
if isinstance(layer, transformers.Conv1D):
return layer.weight.shape[1], layer.weight.shape[0]

if getattr(layer, "_packed_source_linear", False):
return layer.out_features, layer.in_features

return layer.weight.shape[0], math.prod(layer.weight.shape[1:])


Expand Down
2 changes: 2 additions & 0 deletions gptqmodel/models/auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
from .definitions.hymba import HymbaQModel # noqa: E402
from .definitions.instella import InstellaQModel # noqa: E402
from .definitions.inkling import InklingMMQModel # noqa: E402
from .definitions.inkling2_loop import Inkling2LoopQModel # noqa: E402
from .definitions.internlm import InternLMQModel # noqa: E402
from .definitions.internlm2 import InternLM2QModel # noqa: E402
from .definitions.intern_s2_preview import InternS2PreviewQModel # noqa: E402
Expand Down Expand Up @@ -437,6 +438,7 @@
"telechat": TeleChat2QModel,
"instella": InstellaQModel,
"inkling_mm_model": InklingMMQModel,
"inkling2_loop": Inkling2LoopQModel,
"mimo": MimoQModel,
"mimo_v2": MimoV2QModel,
"mimo_v2_flash": MimoV2FlashQModel,
Expand Down
1 change: 1 addition & 0 deletions gptqmodel/models/definitions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
from .hymba import HymbaQModel
from .instella import InstellaQModel
from .inkling import InklingMMQModel
from .inkling2_loop import Inkling2LoopQModel
from .internlm import InternLMQModel
from .internlm2 import InternLM2QModel
from .intern_s2_preview import InternS2PreviewQModel
Expand Down
Loading