아래 에러는 라이브러리가 없을 때 나타나는 에러임
Traceback (most recent call last):
File "e:\Llama\test 20241021,.py", line 6, in <module>
tokenizer = LlamaTokenizer.from_pretrained(model_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\transformers\utils\import_utils.py", line 1637, in __getattribute__
requires_backends(cls, cls._backends)
File "C:\Python312\Lib\site-packages\transformers\utils\import_utils.py", line 1625, in requires_backends
raise ImportError("".join(failed))
ImportError:
LlamaTokenizer requires the SentencePiece library but it was not found in your environment. Checkout the instructions on the
installation page of its repo: https://github.com/google/sentencepiece#installation and follow the ones
that match your environment. Please note that you may need to restart your runtime after installation.
'IT' 카테고리의 다른 글
윈도우 작업표시줄이 안사라질때 (0) | 2024.11.25 |
---|---|
서비스형 뱅킹, BaaS(Banking as a Service) 의 개념 (0) | 2024.11.04 |
올라마 설치법 (0) | 2024.10.24 |
토치 설치 중 에러 (0) | 2024.10.23 |
PowerShell을 사용하여 1시간마다 외부 IP, CPU 사용률 및 인터넷 사용률을 이메일로 보내는 스크립트 (0) | 2024.08.02 |
댓글