You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
报错 Tokenizer class LLaMATokenizer does not exist or is not currently imported.
复现操作
在WSL中完成部署
在网页中切换到llama-7b-hf + No LoRA
在对话框中输入你好
错误日志
2023-04-14 10:55:12,728 [INFO] [models.py:524] 现在请为 llama-7b-hf 选择LoRA模型
2023-04-14 10:55:12,731 [INFO] [models.py:543] 现在请为 llama-7b-hf 选择LoRA模型
2023-04-14 10:55:14,844 [INFO] [models.py:531] 正在加载LLaMA模型: llama-7b-hf + No LoRA
2023-04-14 10:55:16,772 [WARNING] [hf_decoder_model.py:192] llama does not support RAM optimized load. Automatically use original load instead.
Traceback (most recent call last):
File "/home/ygh/.local/lib/python3.10/site-packages/gradio/routes.py", line 401, in run_predict
output = await app.get_blocks().process_api(
File "/home/ygh/.local/lib/python3.10/site-packages/gradio/blocks.py", line 1302, in process_api
result = await self.call_function(
File "/home/ygh/.local/lib/python3.10/site-packages/gradio/blocks.py", line 1025, in call_function
prediction = await anyio.to_thread.run_sync(
File "/home/ygh/.local/lib/python3.10/site-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/home/ygh/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/home/ygh/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
File "/mnt/d/ChuanhuChatGPT/modules/utils.py", line 43, in billing_info
returncurrent_model.billing_info()
AttributeError: 'NoneType' object has no attribute 'billing_info'
Traceback (most recent call last):
File "/home/ygh/.local/lib/python3.10/site-packages/gradio/routes.py", line 401, in run_predict
output = await app.get_blocks().process_api(
File "/home/ygh/.local/lib/python3.10/site-packages/gradio/blocks.py", line 1302, in process_api
result = await self.call_function(
File "/home/ygh/.local/lib/python3.10/site-packages/gradio/blocks.py", line 1039, in call_function
prediction = await anyio.to_thread.run_sync(
File "/home/ygh/.local/lib/python3.10/site-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/home/ygh/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/home/ygh/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
File "/home/ygh/.local/lib/python3.10/site-packages/gradio/utils.py", line 491, in async_iteration
return next(iterator)
File "/mnt/d/ChuanhuChatGPT/modules/utils.py", line 38, in predict
iter = current_model.predict(*args)
AttributeError: 'NoneType' object has no attribute 'predict'
Loading checkpoint shards: 100%|████████████████████████████████████████████████████████| 33/33 [00:09<00:00, 3.51it/s]
2023-04-14 10:55:54,471 [ERROR] [models.py:545] Tokenizer class LLaMATokenizer does not exist or is not currently imported.
yinguohang
changed the title
[Bug]: 在WSL中运行环境,加载LLaMA+No LoRA,对话
[Bug]: 在WSL中运行环境,加载LLaMA+No LoRA,对话 Tokenizer class LLaMATokenizer does not exist or is not currently imported.
Apr 14, 2023
这个bug是否已存在现有issue了?
错误表现
报错
Tokenizer class LLaMATokenizer does not exist or is not currently imported.
复现操作
你好
错误日志
运行环境
帮助解决
补充说明
感觉可能和这个issue有关,尝试了
pip install git+https://github.com/huggingface/transformers
,但是问题仍然存在The text was updated successfully, but these errors were encountered: