Spaces:
Sleeping
Sleeping
Update safety_module.py
Browse files- safety_module.py +2 -2
safety_module.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
from llama_cpp import Llama
|
| 2 |
from huggingface_hub import hf_hub_download
|
| 3 |
-
import spaces
|
| 4 |
import functools
|
| 5 |
|
| 6 |
# Download only the safety model shard from the model repo
|
|
@@ -21,8 +21,8 @@ import functools
|
|
| 21 |
# use_mlock=False,
|
| 22 |
# )
|
| 23 |
|
|
|
|
| 24 |
@functools.lru_cache(maxsize=1)
|
| 25 |
-
@spaces.CPU
|
| 26 |
def llm_gpu():
|
| 27 |
model_path = hf_hub_download(
|
| 28 |
repo_id="Inventors-Hub/SwarmChat-models",
|
|
|
|
| 1 |
from llama_cpp import Llama
|
| 2 |
from huggingface_hub import hf_hub_download
|
| 3 |
+
# import spaces
|
| 4 |
import functools
|
| 5 |
|
| 6 |
# Download only the safety model shard from the model repo
|
|
|
|
| 21 |
# use_mlock=False,
|
| 22 |
# )
|
| 23 |
|
| 24 |
+
# @spaces.CPU
|
| 25 |
@functools.lru_cache(maxsize=1)
|
|
|
|
| 26 |
def llm_gpu():
|
| 27 |
model_path = hf_hub_download(
|
| 28 |
repo_id="Inventors-Hub/SwarmChat-models",
|