fix-transformers-neox (#8285)
This commit is contained in:
parent
39ad68e786
commit
2c037e892b
1 changed files with 2 additions and 1 deletions
|
|
@ -55,6 +55,7 @@ import ctypes
|
||||||
from typing import List, Optional, Union, Generator, Sequence, Iterator, Deque, Tuple
|
from typing import List, Optional, Union, Generator, Sequence, Iterator, Deque, Tuple
|
||||||
from collections import deque, OrderedDict
|
from collections import deque, OrderedDict
|
||||||
from bigdl.llm.utils.common import invalidInputError
|
from bigdl.llm.utils.common import invalidInputError
|
||||||
|
from bigdl.llm.ggml.model.generation import GenerationMixin
|
||||||
from . import gptneox_cpp
|
from . import gptneox_cpp
|
||||||
from .gptneox_types import *
|
from .gptneox_types import *
|
||||||
|
|
||||||
|
|
@ -121,7 +122,7 @@ class GptneoxState:
|
||||||
self.gptneox_state_size = gptneox_state_size
|
self.gptneox_state_size = gptneox_state_size
|
||||||
|
|
||||||
|
|
||||||
class Gptneox:
|
class Gptneox(GenerationMixin):
|
||||||
"""High-level Python wrapper for a gptneox.cpp model."""
|
"""High-level Python wrapper for a gptneox.cpp model."""
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue