Spaces:
Runtime error
Runtime error
debugging gpu
Browse files- chat_service.py +0 -1
- environment.yml +21 -0
- requirements.txt +2 -1
chat_service.py
CHANGED
@@ -13,7 +13,6 @@ class ChatService:
|
|
13 |
self._tokenizer = AutoTokenizer.from_pretrained(repo_id)
|
14 |
self._model = AutoModelForCausalLM.from_pretrained(repo_id,torch_dtype=torch.float16)
|
15 |
# self._model = AutoModelForCausalLM.from_pretrained(repo_id).half()
|
16 |
-
self._model = AutoModelForCausalLM.from_pretrained(repo_id)
|
17 |
self._model.eval().to(self._device)
|
18 |
else:
|
19 |
raise Exception(f"Unknown API: {self._api}")
|
|
|
13 |
self._tokenizer = AutoTokenizer.from_pretrained(repo_id)
|
14 |
self._model = AutoModelForCausalLM.from_pretrained(repo_id,torch_dtype=torch.float16)
|
15 |
# self._model = AutoModelForCausalLM.from_pretrained(repo_id).half()
|
|
|
16 |
self._model.eval().to(self._device)
|
17 |
else:
|
18 |
raise Exception(f"Unknown API: {self._api}")
|
environment.yml
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: project_charles
|
2 |
+
channels:
|
3 |
+
- pytorch
|
4 |
+
- nvidia
|
5 |
+
dependencies:
|
6 |
+
- python=3.9
|
7 |
+
- pytorch-cuda=11.8
|
8 |
+
- pytorch
|
9 |
+
- numpy
|
10 |
+
- pip
|
11 |
+
- pip:
|
12 |
+
- opencv-python-headless
|
13 |
+
- pydub
|
14 |
+
- streamlit_webrtc
|
15 |
+
- twilio
|
16 |
+
- python-dotenv
|
17 |
+
- watchdog
|
18 |
+
- pydub
|
19 |
+
- open_clip_torch
|
20 |
+
- vosk
|
21 |
+
- transformers
|
requirements.txt
CHANGED
@@ -13,4 +13,5 @@ watchdog
|
|
13 |
pydub
|
14 |
torch
|
15 |
numpy
|
16 |
-
open_clip_torch
|
|
|
|
13 |
pydub
|
14 |
torch
|
15 |
numpy
|
16 |
+
open_clip_torch
|
17 |
+
transformers
|