Life is suffering.
This commit is contained in:
parent
4b54a7e7bc
commit
31fc2bdebe
5 changed files with 5 additions and 5 deletions
|
@ -16,7 +16,7 @@ import torch
|
||||||
from transformers import AutoTokenizer # type: ignore[import]
|
from transformers import AutoTokenizer # type: ignore[import]
|
||||||
|
|
||||||
# Use local gguf module if available.
|
# Use local gguf module if available.
|
||||||
if 'NO_LOCAL_GGUF' not in os.environ and (Path(__file__).parent.absolute().joinpath('gguf-py', 'gguf', '__init__.py')).is_file():
|
if 'NO_LOCAL_GGUF' not in os.environ and Path(__file__).parent.absolute().joinpath('gguf-py', 'gguf', '__init__.py').is_file():
|
||||||
sys.path.insert(1, str(Path(__file__).parent.absolute().joinpath('gguf-py', 'gguf')))
|
sys.path.insert(1, str(Path(__file__).parent.absolute().joinpath('gguf-py', 'gguf')))
|
||||||
import gguf
|
import gguf
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ import torch
|
||||||
from transformers import AutoTokenizer # type: ignore[import]
|
from transformers import AutoTokenizer # type: ignore[import]
|
||||||
|
|
||||||
# Use local gguf module if available.
|
# Use local gguf module if available.
|
||||||
if 'NO_LOCAL_GGUF' not in os.environ and (Path(__file__).parent.absolute().joinpath('gguf-py', 'gguf', '__init__.py')).is_file():
|
if 'NO_LOCAL_GGUF' not in os.environ and Path(__file__).parent.absolute().joinpath('gguf-py', 'gguf', '__init__.py').is_file():
|
||||||
sys.path.insert(1, str(Path(__file__).parent.absolute().joinpath('gguf-py', 'gguf')))
|
sys.path.insert(1, str(Path(__file__).parent.absolute().joinpath('gguf-py', 'gguf')))
|
||||||
import gguf
|
import gguf
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ import numpy as np
|
||||||
|
|
||||||
import os
|
import os
|
||||||
# Use local gguf module if available.
|
# Use local gguf module if available.
|
||||||
if 'NO_LOCAL_GGUF' not in os.environ and (Path(__file__).parent.absolute().joinpath('gguf-py', 'gguf', '__init__.py')).is_file():
|
if 'NO_LOCAL_GGUF' not in os.environ and Path(__file__).parent.absolute().joinpath('gguf-py', 'gguf', '__init__.py').is_file():
|
||||||
sys.path.insert(1, str(Path(__file__).parent.absolute().joinpath('gguf-py', 'gguf')))
|
sys.path.insert(1, str(Path(__file__).parent.absolute().joinpath('gguf-py', 'gguf')))
|
||||||
import gguf
|
import gguf
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ from sentencepiece import SentencePieceProcessor # type: ignore[import]
|
||||||
|
|
||||||
import os
|
import os
|
||||||
# Use local gguf module if available.
|
# Use local gguf module if available.
|
||||||
if 'NO_LOCAL_GGUF' not in os.environ and (Path(__file__).parent.absolute().joinpath('gguf-py', 'gguf', '__init__.py')).is_file():
|
if 'NO_LOCAL_GGUF' not in os.environ and Path(__file__).parent.absolute().joinpath('gguf-py', 'gguf', '__init__.py').is_file():
|
||||||
sys.path.insert(1, str(Path(__file__).parent.absolute().joinpath('gguf-py', 'gguf')))
|
sys.path.insert(1, str(Path(__file__).parent.absolute().joinpath('gguf-py', 'gguf')))
|
||||||
import gguf
|
import gguf
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import numpy as np
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
# Use local gguf module if available.
|
# Use local gguf module if available.
|
||||||
if 'NO_LOCAL_GGUF' not in os.environ and (Path(__file__).parent.absolute().joinpath('..', '..', 'gguf-py', 'gguf', '__init__.py')).is_file():
|
if 'NO_LOCAL_GGUF' not in os.environ and Path(__file__).parent.absolute().joinpath('..', '..', 'gguf-py', 'gguf', '__init__.py').is_file():
|
||||||
sys.path.insert(1, str(Path(__file__).parent.absolute().joinpath('..', '..', 'gguf-py', 'gguf')))
|
sys.path.insert(1, str(Path(__file__).parent.absolute().joinpath('..', '..', 'gguf-py', 'gguf')))
|
||||||
import gguf
|
import gguf
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue