Sergidev commited on
Commit
219f4cb
1 Parent(s): 9365e2e

Update modules/pmbl.py

Browse files
Files changed (1) hide show
  1. modules/pmbl.py +4 -4
modules/pmbl.py CHANGED
@@ -1,12 +1,12 @@
1
  import sqlite3
2
  from datetime import datetime
3
  from concurrent.futures import ThreadPoolExecutor
4
- import transformers
5
 
6
- # CUDA support
7
- transformers.install("llama-cpp-python", cuda=True)
8
 
9
- #use llama_cpp
10
  from llama_cpp import Llama
11
 
12
  class PMBL:
 
1
  import sqlite3
2
  from datetime import datetime
3
  from concurrent.futures import ThreadPoolExecutor
4
+ import huggingface_hub
5
 
6
+ # Install llama-cpp-python with CUDA support
7
+ huggingface_hub.install("llama-cpp-python", cuda=True)
8
 
9
+ # Now you can import and use llama_cpp
10
  from llama_cpp import Llama
11
 
12
  class PMBL: