File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616"""
1717
1818import os
19- import types
20- import unittest
21-
2219import pytest
2320import torch
2421import torch .nn as nn
25-
22+ import types
23+ import unittest
2624from gptqmodel .models .base import BaseQModel
2725from gptqmodel .quantization import QuantizeConfig
2826
@@ -210,6 +208,7 @@ class FakeGPTQModel:
210208 move_input_capture_example = BaseQModel .move_input_capture_example
211209 prepare_layer_replay_kwargs = BaseQModel .prepare_layer_replay_kwargs
212210 run_input_capture = BaseQModel .run_input_capture
211+ _sanitize_input_ids_for_embeddings = BaseQModel ._sanitize_input_ids_for_embeddings
213212
214213 def __init__ (self ):
215214 self .quantize_config = types .SimpleNamespace (
@@ -355,6 +354,7 @@ class FakeGPTQModel:
355354 move_input_capture_example = BaseQModel .move_input_capture_example
356355 prepare_layer_replay_kwargs = BaseQModel .prepare_layer_replay_kwargs
357356 run_input_capture = BaseQModel .run_input_capture
357+ _sanitize_input_ids_for_embeddings = BaseQModel ._sanitize_input_ids_for_embeddings
358358
359359 def __init__ (self ):
360360 self .quantize_config = types .SimpleNamespace (
@@ -509,6 +509,7 @@ class FakeGPTQModel:
509509 move_input_capture_example = BaseQModel .move_input_capture_example
510510 prepare_layer_replay_kwargs = BaseQModel .prepare_layer_replay_kwargs
511511 run_input_capture = BaseQModel .run_input_capture
512+ _sanitize_input_ids_for_embeddings = BaseQModel ._sanitize_input_ids_for_embeddings
512513
513514 def __init__ (self ):
514515 self .quantize_config = types .SimpleNamespace (
You can’t perform that action at this time.
0 commit comments