fix-transformers-neox (#8285)

This commit is contained in:
Yina Chen 2023-06-07 14:44:43 +08:00 committed by GitHub
parent 39ad68e786
commit 2c037e892b

View file

@ -55,6 +55,7 @@ import ctypes
from typing import List, Optional, Union, Generator, Sequence, Iterator, Deque, Tuple
from collections import deque, OrderedDict
from bigdl.llm.utils.common import invalidInputError
from bigdl.llm.ggml.model.generation import GenerationMixin
from . import gptneox_cpp
from .gptneox_types import *
@ -121,7 +122,7 @@ class GptneoxState:
self.gptneox_state_size = gptneox_state_size
class Gptneox:
class Gptneox(GenerationMixin):
"""High-level Python wrapper for a gptneox.cpp model."""
def __init__(