Update custom_generate/generate.py
Browse files
custom_generate/generate.py
CHANGED
|
@@ -39,9 +39,9 @@ from transformers.modeling_utils import PreTrainedModel
|
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
-
from
|
| 43 |
-
from
|
| 44 |
-
from
|
| 45 |
|
| 46 |
|
| 47 |
UNSUPPORTED_GENERATION_ARGS = [
|
|
|
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
+
from .functions_2_patch import _validate_model_kwargs, llama_atten_forward
|
| 43 |
+
from .monkey_patching_utils import monkey_patching
|
| 44 |
+
from .sep_cache_utils import SepCache
|
| 45 |
|
| 46 |
|
| 47 |
UNSUPPORTED_GENERATION_ARGS = [
|