localGPT icon indicating copy to clipboard operation
localGPT copied to clipboard

RunLocalGPT-> RecursionError: maximum recursion depth exceeded while getting the str of an object

Open weasel4o opened this issue 1 year ago • 2 comments

Windows 10 RTX3070 Cuda enabled and compiled using pytorch (100 lines of this) return str(self._unk_token) ^^^^^^^^^^^^^^^^^^^^

================Ends with:====================

RecursionError: maximum recursion depth exceeded while getting the str of an object 2023-06-10 17:32:35,211 - INFO - duckdb.py:414 - Persisting DB to disk, putting it in the save folder: E:\GPT\localGPT_CUDA_

weasel4o avatar Jun 10 '23 14:06 weasel4o

What model is selected in your run_localGPT.py? If the following was seletected model_id = "TheBloke/vicuna-7B-1.1-HF" change it to one of the following for now: model_id = "TheBloke/Wizard-Vicuna-7B-Uncensored-HF" model_id = "TheBloke/guanaco-7B-HF"

LeafmanZ avatar Jun 10 '23 21:06 LeafmanZ

For me , reinstalling the requirements worked. see if you're in the correct virtual env too

starkizard avatar Jun 14 '23 13:06 starkizard