1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
| 2024-09-11 06:04:15,674 - DEBUG - Attempting to release lock 140279398944864 on /root/.cache/huggingface/hub/.locks/models--Dongjin-kr--ko-reranker/002b874aa6e3b367da62d14acba828ca8d1f4bf50830747ef922d45bf71daaa2.lock 2024-09-11 06:04:15,674 - DEBUG - Lock 140279398944864 released on /root/.cache/huggingface/hub/.locks/models--Dongjin-kr--ko-reranker/002b874aa6e3b367da62d14acba828ca8d1f4bf50830747ef922d45bf71daaa2.lock The token has not been saved to the git credentials helper. Pass `add_to_git_credential=True` in this function directly or `--add-to-git-credential` if using via `huggingface-cli` if you want to set the git credential as well. Token is valid (permission: read). Your token has been saved to /root/.cache/huggingface/token Login successful The token has not been saved to the git credentials helper. Pass `add_to_git_credential=True` in this function directly or `--add-to-git-credential` if using via `huggingface-cli` if you want to set the git credential as well. Token is valid (permission: read). Your token has been saved to /root/.cache/huggingface/token Login successful Traceback (most recent call last): File "/app/src/main.py", line 3, in <module> import utils as utils File "/app/src/utils.py", line 5, in <module> import controller.rag_retriever_plugin_controller as rag_retriever_plugin_controller File "/app/src/controller/rag_retriever_plugin_controller.py", line 13, in <module> plugin = RagRetrieverPlugin(documents) File "/app/src/plugins/rag_retriever_plugin.py", line 30, in __init__ super().__init__(name, model, retriever, rerank_model) File "/usr/local/lib/python3.10/site-packages/aipin/Plugin/providers/plugin_retriever.py", line 21, in __init__ self.rerank = Rerank(rerank_model) File "/usr/local/lib/python3.10/site-packages/aipin/data/retriever.py", line 66, in __init__ model = AutoModelForSequenceClassification.from_pretrained(model_path) File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 564, in from_pretrained return model_class.from_pretrained( File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 3735, in from_pretrained with safe_open(resolved_archive_file, framework="pt") as f: RuntimeError: unable to mmap 2239614572 bytes from file </root/.cache/huggingface/hub/models--Dongjin-kr--ko-reranker/snapshots/5f3bb02f3baa05dea3e3c6653ada191f2cc20d91/model.safetensors>: Cannot allocate memory (12) Traceback (most recent call last): File "/app/src/main.py", line 3, in <module> import utils as utils File "/app/src/utils.py", line 5, in <module> import controller.rag_retriever_plugin_controller as rag_retriever_plugin_controller File "/app/src/controller/rag_retriever_plugin_controller.py", line 13, in <module> plugin = RagRetrieverPlugin(documents) File "/app/src/plugins/rag_retriever_plugin.py", line 30, in __init__ super().__init__(name, model, retriever, rerank_model) File "/usr/local/lib/python3.10/site-packages/aipin/Plugin/providers/plugin_retriever.py", line 21, in __init__ self.rerank = Rerank(rerank_model) File "/usr/local/lib/python3.10/site-packages/aipin/data/retriever.py", line 66, in __init__ model = AutoModelForSequenceClassification.from_pretrained(model_path) File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 564, in from_pretrained return model_class.from_pretrained( File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 3735, in from_pretrained with safe_open(resolved_archive_file, framework="pt") as f:
|