Skip to content

Commit

Permalink
Simplified ExLlama cloning instructions and failure message (#3972)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbraza authored Sep 17, 2023
1 parent 45335fa commit fee38e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ pip install -r requirements_nocuda.txt

```
cd text-generation-webui
mkdir repositories
cd repositories
git clone https://github.com/turboderp/exllama
git clone https://github.com/turboderp/exllama repositories/exllama
```

#### bitsandbytes on older NVIDIA GPUs
Expand Down
7 changes: 5 additions & 2 deletions modules/exllama.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from exllama.model import ExLlama, ExLlamaCache, ExLlamaConfig
from exllama.tokenizer import ExLlamaTokenizer
except:
logger.warning('Exllama module failed to load. Will attempt to load from repositories.')
logger.warning('exllama module failed to import. Will attempt to import from repositories/.')
try:
from modules.relative_imports import RelativeImport

Expand All @@ -23,7 +23,10 @@
from model import ExLlama, ExLlamaCache, ExLlamaConfig
from tokenizer import ExLlamaTokenizer
except:
logger.error("Could not find repositories/exllama/. Make sure that exllama is cloned inside repositories/ and is up to date.")
logger.error(
"Could not find repositories/exllama. Please ensure that exllama"
" (https://github.com/turboderp/exllama) is cloned inside repositories/ and is up to date."
)
raise


Expand Down

0 comments on commit fee38e0

Please sign in to comment.