Update modules/pmbl.py
Browse files- 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
|
5 |
|
6 |
-
# CUDA support
|
7 |
-
|
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:
|