ParisNeo / lollms-webui

Lord of Large Language Models Web User Interface
https://lollms.com
Apache License 2.0
4.36k stars 551 forks source link

ctransformers Could not find module #521

Open hts2008 opened 7 months ago

hts2008 commented 7 months ago

Expected Behavior

Selected model after downloading it.

Current Behavior

It looks like you we couldn't load the model. Here is the error message: Could not find module 'D:\lollms-webui\installer_files\lollms_env\Lib\site-packages\ctransformers\lib\cuda\ctransformers.dll' (or one of its dependencies). Try using the full path with constructor syntax.

Steps to Reproduce

Please provide detailed steps to reproduce the issue.

  1. Install c_transformers
  2. Restart LoLLMS
  3. Download a model like https://huggingface.co/vilm/Quyen-Pro-v0.1-GGUF
  4. Click on the model to enable it and error.

Additional information:

  1. I try re-install lollms so many times (about 10 times, maybe)
  2. System info: Windows 11, RTX 3090, 64GB RAM, AMD R5 3500G.
  3. No error or cancel press occur during install lollms and c_transformers
  4. Using the newest install bat file (v9.5)

Console log

Starting LOLLMS Web UI... " " " /_\ /\ \ /_\ /_\ /_\ /\ \ " " /:/ / /::\ \ /:/ / /:/ / /::| | /::\ \ " " /:/ / /:/\:\ \ /:/ / /:/ / /:|:| | /:/\ \ \ " " /:/ / /:/ \:\ \ /:/ / /:/ / /:/|:|| \:\~\ \ \ " "/:// /:// \:_\ /:// /:// /:/ |::::_\ /\ \:\ \ _\ " "\:\ \ \:\ \ /:/ / \:\ \ \:\ \ \//~~/:/ / \:\ \:\ \// " " \:\ \ \:\ /:/ / \:\ \ \:\ \ /:/ / \:\ \:_\ " " \:\ \ \:\/:/ / \:\ \ \:\ \ /:/ / \:\/:/ / " " \:_\ \::/ / \:_\ \:_\ /:/ / \::/ / " " \// \// \// \// \// \// " By ParisNeo Trying to use Configuration at :global_paths_cfg.yaml global_paths_cfg.yaml not found! Searching in your home folder. Welcome! It seems this is your first use of the new lollms app. To make it clear where your data are stored, we now give the user the choice where to put its data. This allows you to mutualize models which are heavy, between multiple lollms compatible apps. You can change this at any time using the lollms-settings script or by simply change the content of the global_paths_cfg.yaml file. Please provide a folder to store your configurations files, your models and your personal data (database, custom personalities etc). Folder path: (..\personal_data):D:\lollms-webui\personal_data Selected: D:\lollms-webui\personal_data Execution path : D:\lollms-webui\lollms-webui Local zoos folder found ----------------------Paths information----------------------- personal_path:D:\lollms-webui\personal_data personal_configuration_path:D:\lollms-webui\personal_data\configs personal_discussions_path:D:\lollms-webui\personal_data\discussion_databases personal_skills_path:D:\lollms-webui\personal_data\skill_databases personal_models_path:D:\lollms-webui\personal_data\models personal_user_infos_path:D:\lollms-webui\personal_data\user_infos personal_trainers_path:D:\lollms-webui\personal_data\trainers personal_trainers_path:D:\lollms-webui\personal_data\trainers\gptqlora personal_data_path:D:\lollms-webui\personal_data\data custom_personalities_path:D:\lollms-webui\personal_data\custom_personalities custom_voices_path:D:\lollms-webui\personal_data\custom_voices

----------------------Zoo information----------------------- bindings_zoo_path:D:\lollms-webui\lollms-webui\zoos\bindings_zoo personalities_zoo_path:D:\lollms-webui\lollms-webui\zoos\personalities_zoo extensions_zoo_path:D:\lollms-webui\lollms-webui\zoos\extensions_zoo models_zoo_path:D:\lollms-webui\lollms-webui\zoos\models_zoo

Lollms_core found in the app space. Pulling last lollms_core fatal: detected dubious ownership in repository at 'D:/lollms-webui/lollms-webui/lollms_core' 'D:/lollms-webui/lollms-webui/lollms_core' is owned by: 'S-1-5-32-544' but the current user is: 'S-1-5-21-1606981802-1035122992-1208744641-1001' To add an exception for this directory, call:

    git config --global --add safe.directory D:/lollms-webui/lollms-webui/lollms_core

safe_store_path found in the app space. Pulling last safe_store_path fatal: detected dubious ownership in repository at 'D:/lollms-webui/lollms-webui/utilities/safe_store' 'D:/lollms-webui/lollms-webui/utilities/safe_store' is owned by: 'S-1-5-32-544' but the current user is: 'S-1-5-21-1606981802-1035122992-1208744641-1001' To add an exception for this directory, call:

    git config --global --add safe.directory D:/lollms-webui/lollms-webui/utilities/safe_store

Bindings zoo found in your personal space. Pulling last bindings zoo fatal: detected dubious ownership in repository at 'D:/lollms-webui/lollms-webui/zoos/bindings_zoo' 'D:/lollms-webui/lollms-webui/zoos/bindings_zoo' is owned by: 'S-1-5-32-544' but the current user is: 'S-1-5-21-1606981802-1035122992-1208744641-1001' To add an exception for this directory, call:

    git config --global --add safe.directory D:/lollms-webui/lollms-webui/zoos/bindings_zoo

Personalities zoo found in your personal space. Pulling last personalities zoo fatal: detected dubious ownership in repository at 'D:/lollms-webui/lollms-webui/zoos/personalities_zoo' 'D:/lollms-webui/lollms-webui/zoos/personalities_zoo' is owned by: 'S-1-5-32-544' but the current user is: 'S-1-5-21-1606981802-1035122992-1208744641-1001' To add an exception for this directory, call:

    git config --global --add safe.directory D:/lollms-webui/lollms-webui/zoos/personalities_zoo

Extensions zoo found in your personal space. Pulling last Extensions zoo fatal: detected dubious ownership in repository at 'D:/lollms-webui/lollms-webui/zoos/extensions_zoo' 'D:/lollms-webui/lollms-webui/zoos/extensions_zoo' is owned by: 'S-1-5-32-544' but the current user is: 'S-1-5-21-1606981802-1035122992-1208744641-1001' To add an exception for this directory, call:

    git config --global --add safe.directory D:/lollms-webui/lollms-webui/zoos/extensions_zoo

Models zoo found in your personal space. Pulling last Models zoo fatal: detected dubious ownership in repository at 'D:/lollms-webui/lollms-webui/zoos/models_zoo' 'D:/lollms-webui/lollms-webui/zoos/models_zoo' is owned by: 'S-1-5-32-544' but the current user is: 'S-1-5-21-1606981802-1035122992-1208744641-1001' To add an exception for this directory, call:

    git config --global --add safe.directory D:/lollms-webui/lollms-webui/zoos/models_zoo

No binding selected Personality lollms mounted successfully but no model is selected Checking for updates from D:\lollms-webui\lollms-webui Checking for updates from D:\lollms-webui\lollms-webui\lollms_core Checking for updates from D:\lollms-webui\lollms-webui\utilities\safe_store Checking discussions database... ok Your personal data is stored here :D:\lollms-webui\personal_data D:\lollms-webui\installer_files\lollms_env\Lib\site-packages\pydantic_internal_fields.py:151: UserWarning: Field "modelname" has conflict with protected namespace "model".

You may be able to resolve this warning by setting model_config['protected_namespaces'] = (). warnings.warn( INFO: Started server process [12148] INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://localhost:9600 (Press CTRL+C to quit) INFO: ::1:54552 - "GET /socket.io/?EIO=4&transport=polling&t=Owe8LN7 HTTP/1.1" 200 OK INFO: ::1:54553 - "GET /socket.io/?EIO=4&transport=polling&t=Owe8LN7 HTTP/1.1" 200 OK INFO: ::1:54552 - "GET /get_lollms_webui_version HTTP/1.1" 200 OK INFO: ::1:54552 - "GET /get_versionID HTTP/1.1" 200 OK Client U9zz13XR8kkNFHGuAAAC connected INFO: ::1:54552 - "POST /socket.io/?EIO=4&transport=polling&t=Owe8LO7&sid=GBwpCgKIkIkvgjFBAAAA HTTP/1.1" 200 OK INFO: ('::1', 54557) - "WebSocket /socket.io/?EIO=4&transport=websocket&sid=GBwpCgKIkIkvgjFBAAAA" [accepted] INFO: ::1:54556 - "GET /socket.io/?EIO=4&transport=polling&t=Owe8LO8&sid=GBwpCgKIkIkvgjFBAAAA HTTP/1.1" 200 OK INFO: ::1:54553 - "GET /socket.io/?EIO=4&transport=polling&t=Owe8LO8&sid=GBwpCgKIkIkvgjFBAAAA HTTP/1.1" 200 OK INFO: ::1:54556 - "GET /socket.io/?EIO=4&transport=polling&t=Owe8LP2&sid=GBwpCgKIkIkvgjFBAAAA HTTP/1.1" 200 OK INFO: ::1:54552 - "GET /get_config HTTP/1.1" 200 OK INFO: ::1:54553 - "GET /socket.io/?EIO=4&transport=polling&t=Owe8LP2&sid=GBwpCgKIkIkvgjFBAAAA HTTP/1.1" 200 OK INFO: ::1:54552 - "GET /list_databases HTTP/1.1" 200 OK INFO: ::1:54552 - "GET /list_bindings HTTP/1.1" 200 OK INFO: ::1:54552 - "GET /disk_usage HTTP/1.1" 200 OK INFO: ::1:54552 - "GET /ram_usage HTTP/1.1" 200 OK INFO: ::1:54552 - "GET /vram_usage HTTP/1.1" 200 OK INFO: ::1:54552 - "GET /list_extensions HTTP/1.1" 200 OK Listing all personalities OK INFO: ::1:54552 - "GET /get_all_personalities HTTP/1.1" 200 OK INFO: ::1:54552 - "GET /get_available_models HTTP/1.1" 200 OK INFO: ::1:54552 - "GET /list_models HTTP/1.1" 200 OK INFO: ::1:54552 - "GET /get_active_model HTTP/1.1" 200 OK INFO: ::1:54552 - "GET /get_model_status HTTP/1.1" 200 OK INFO: ::1:54552 - "GET /list_discussions HTTP/1.1" 200 OK Loading discussion for client U9zz13XR8kkNFHGuAAAC ... ok INFO: ::1:54552 - "GET /get_current_personality_files_list HTTP/1.1" 200 OK OK ╔══════════════════════════════════════════════════╗ ║ Building mounted Personalities ║ ╚══════════════════════════════════════════════════╝

Binding installed successfully INFO: ::1:54567 - "POST /install_binding HTTP/1.1" 200 OK Disconnected: U9zz13XR8kkNFHGuAAAC INFO: ::1:54603 - "GET /socket.io/?EIO=4&transport=polling&t=Owe9Hgf HTTP/1.1" 200 OK INFO: ::1:54604 - "GET /socket.io/?EIO=4&transport=polling&t=Owe9Hgf HTTP/1.1" 200 OK INFO: ::1:54603 - "GET /get_lollms_webui_version HTTP/1.1" 200 OK INFO: ::1:54603 - "GET /get_versionID HTTP/1.1" 200 OK Client SYgi3aAFbaKNpz1LAAAF connected INFO: ::1:54603 - "POST /socket.io/?EIO=4&transport=polling&t=Owe9Hhb&sid=S_zo7Z6wuxLSuo7ZAAAD HTTP/1.1" 200 OK INFO: ('::1', 54606) - "WebSocket /socket.io/?EIO=4&transport=websocket&sid=S_zo7Z6wuxLSuo7ZAAAD" [accepted] INFO: ::1:54605 - "GET /socket.io/?EIO=4&transport=polling&t=Owe9Hhe&sid=S_zo7Z6wuxLSuo7ZAAAD HTTP/1.1" 200 OK INFO: ::1:54604 - "GET /socket.io/?EIO=4&transport=polling&t=Owe9Hhe&sid=S_zo7Z6wuxLSuo7ZAAAD HTTP/1.1" 200 OK INFO: ::1:54605 - "GET /get_config HTTP/1.1" 200 OK INFO: ::1:54605 - "GET /socket.io/?EIO=4&transport=polling&t=Owe9HiV&sid=S_zo7Z6wuxLSuo7ZAAAD HTTP/1.1" 200 OK INFO: ::1:54605 - "GET /list_databases HTTP/1.1" 200 OK INFO: ::1:54604 - "GET /socket.io/?EIO=4&transport=polling&t=Owe9HiV&sid=S_zo7Z6wuxLSuo7ZAAAD HTTP/1.1" 200 OK INFO: ::1:54605 - "GET /list_bindings HTTP/1.1" 200 OK INFO: ::1:54605 - "GET /disk_usage HTTP/1.1" 200 OK INFO: ::1:54605 - "GET /ram_usage HTTP/1.1" 200 OK INFO: ::1:54605 - "GET /vram_usage HTTP/1.1" 200 OK INFO: ::1:54605 - "GET /list_extensions HTTP/1.1" 200 OK Listing all personalities OK INFO: ::1:54605 - "GET /get_all_personalities HTTP/1.1" 200 OK INFO: ::1:54605 - "GET /get_available_models HTTP/1.1" 200 OK INFO: ::1:54605 - "GET /list_models HTTP/1.1" 200 OK INFO: ::1:54605 - "GET /get_active_model HTTP/1.1" 200 OK INFO: ::1:54605 - "GET /get_model_status HTTP/1.1" 200 OK INFO: ::1:54605 - "GET /list_discussions HTTP/1.1" 200 OK Loading discussion for client SYgi3aAFbaKNpz1LAAAF ... ok INFO: ::1:54605 - "GET /get_current_personality_files_list HTTP/1.1" 200 OK Checking for updates from D:\lollms-webui\lollms-webui INFO: ::1:54662 - "GET /get_config HTTP/1.1" 200 OK Listing voices INFO: ::1:54664 - "GET /list_voices HTTP/1.1" 200 OK INFO: ::1:54662 - "GET /user_infos/default_user.svg HTTP/1.1" 400 Bad Request INFO: ::1:54663 - "GET /list_personalities_categories HTTP/1.1" 200 OK Checking for updates from D:\lollms-webui\lollms-webui\lollms_core Checking for updates from D:\lollms-webui\lollms-webui\utilities\safe_store INFO: ::1:54662 - "GET /list_extensions_categories HTTP/1.1" 200 OK INFO: ::1:54663 - "GET /list_personalities_categories HTTP/1.1" 200 OK INFO: ::1:54663 - "GET /list_personalities?category=generic HTTP/1.1" 200 OK INFO: ::1:54661 - "GET /check_update HTTP/1.1" 200 OK INFO: ::1:54663 - "GET /list_extensions_categories HTTP/1.1" 200 OK INFO: ::1:54663 - "GET /list_extensions?category=bound_extensions HTTP/1.1" 200 OK Requested updating of setting binding_name to c_transformers New binding selected : c_transformers Building model Model type : llama Binding loaded successfully Configuration binding_name updated INFO: ::1:54668 - "POST /update_setting HTTP/1.1" 200 OK INFO: ::1:54669 - "GET /get_model_status HTTP/1.1" 200 OK INFO: ::1:54669 - "GET /get_config HTTP/1.1" 200 OK Requested updating of setting model_name to None Changing model to: None Building model No model is selected Configuration model_name updated INFO: ::1:54669 - "POST /update_setting HTTP/1.1" 200 OK

It looks like you we couldn't load the model. Here is the error message: Could not find module 'D:\lollms-webui\installer_files\lollms_env\Lib\site-packages\ctransformers\lib\cuda\ctransformers.dll' (or one of its dependencies). Try using the full path with constructor syntax. Configuration model_name updated INFO: ::1:54831 - "POST /update_setting HTTP/1.1" 200 OK INFO: ::1:54831 - "GET /get_model_status HTTP/1.1" 200 OK

Screenshots

image

saintwolf commented 7 months ago

I get this too when I try to load any models. I've tried reinstalling the c_transformer bindings but it didn't work. I've also tried deleting anything related to it in the personal_data folder, which reinstalled the binding and reported that it was loaded, but when I try to load a model I get the below error:

Requested updating of setting model_name to Starling-LM-7B-beta-GGUF
Changing model to: Starling-LM-7B-beta-GGUF
Building model
Model type : llama
Traceback (most recent call last):
  File "/root/lollms-webui/lollms-webui/lollms_core/lollms/server/endpoints/lollms_configuration_infos.py", line 105, in update_setting
    lollmsElfServer.model = lollmsElfServer.binding.build_model()
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/lollms-webui/lollms-webui/zoos/bindings_zoo/c_transformers/__init__.py", line 149, in build_model
    from ctransformers import AutoModelForCausalLM
ModuleNotFoundError: No module named 'ctransformers'
boneylizardwizard commented 7 months ago

I'm getting this same error. No GGUF models are loading whatsoever:

INFO: ::1:49848 - "POST /update_setting HTTP/1.1" 200 OK INFO: ::1:49848 - "GET /get_model_status HTTP/1.1" 200 OK Requested updating of setting model_name to randomggufmodelbyTheBloke Changing model to: randomggufmodelbyTheBloke Building model Model type : llama Traceback (most recent call last): File "c:\users\randomusername\onedrive\documents\lollms\lollms-webui\lollms_core\lollms\server\endpoints\lollms_configuration_infos.py", line 105, in update_setting lollmsElfServer.model = lollmsElfServer.binding.build_model() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\randomusername\OneDrive\Documents\lollms\lollms-webui\zoos\bindings_zoo\c_transformers__init__.py", line 152, in build_model self.model = AutoModelForCausalLM.from_pretrained( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\randomusername\OneDrive\Documents\lollms\installer_files\lollms_env\Lib\site-packages\ctransformers\hub.py", line 175, in from_pretrained llm = LLM( ^^^^ File "C:\Users\randomusername\OneDrive\Documents\lollms\installer_files\lollms_env\Lib\site-packages\ctransformers\llm.py", line 246, in init self._lib = load_library(lib, gpu=config.gpu_layers > 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\randomusername\OneDrive\Documents\lollms\installer_files\lollms_env\Lib\site-packages\ctransformers\llm.py", line 126, in load_library lib = CDLL(path) ^^^^^^^^^^ File "C:\Users\randomusername\OneDrive\Documents\lollms\installer_files\lollms_env\Lib\ctypes__init.py", line 376, in init__ self._handle = _dlopen(self._name, mode) ^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: Could not find module 'C:\Users\randomusername\OneDrive\Documents\lollms\installer_files\lollms_env\Lib\site-packages\ctransformers\lib\cuda\ctransformers.dll' (or one of its dependencies). Try using the full path with constructor syntax.

It looks like you we couldn't load the model. Here is the error message: Could not find module 'C:\Users\randomusername\OneDrive\Documents\lollms\installer_files\lollms_env\Lib\site-packages\ctransformers\lib\cuda\ctransformers.dll' (or one of its dependencies). Try using the full path with constructor syntax. Configuration model_name updated INFO: ::1:49856 - "POST /update_setting HTTP/1.1" 200 OK INFO: ::1:49856 - "GET /get_model_status HTTP/1.1" 200 OK

ParisNeo commented 7 months ago

Hi. Pllease consider using llama_cpp_python binding for the time being. I'll take a look at the ctransformers and try to fix it. I did not use it for ages.