Spaces:
Sleeping
Sleeping
MouadHsb
commited on
Commit
·
08ba4b8
1
Parent(s):
b021927
attempting cpu only load
Browse files
app/services/__pycache__/embedding_service.cpython-312.pyc
CHANGED
|
Binary files a/app/services/__pycache__/embedding_service.cpython-312.pyc and b/app/services/__pycache__/embedding_service.cpython-312.pyc differ
|
|
|
app/services/embedding_service.py
CHANGED
|
@@ -26,6 +26,10 @@ class EmbeddingService:
|
|
| 26 |
# With 16GB of RAM, we can afford to use standard loading without memory optimization
|
| 27 |
# Force the model to load fully into memory without any meta tensors
|
| 28 |
torch.cuda.empty_cache() if torch.cuda.is_available() else None
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
self.model = SentenceTransformer(model_name, device="cpu")
|
| 31 |
|
|
|
|
| 26 |
# With 16GB of RAM, we can afford to use standard loading without memory optimization
|
| 27 |
# Force the model to load fully into memory without any meta tensors
|
| 28 |
torch.cuda.empty_cache() if torch.cuda.is_available() else None
|
| 29 |
+
|
| 30 |
+
#########################################################
|
| 31 |
+
torch.set_default_device("cpu")
|
| 32 |
+
#########################################################
|
| 33 |
|
| 34 |
self.model = SentenceTransformer(model_name, device="cpu")
|
| 35 |
|
logs/app.log
CHANGED
|
@@ -2482,3 +2482,8 @@
|
|
| 2482 |
2025-05-13 15:19:00,020 - INFO - Split paper 'Advances in Quantum Deep Learning: An Overview' into 3 chunks
|
| 2483 |
2025-05-13 15:19:00,020 - INFO - Embedding 39 documents...
|
| 2484 |
2025-05-13 15:19:00,427 - INFO - Added 39 documents to vector database. Total: 39
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2482 |
2025-05-13 15:19:00,020 - INFO - Split paper 'Advances in Quantum Deep Learning: An Overview' into 3 chunks
|
| 2483 |
2025-05-13 15:19:00,020 - INFO - Embedding 39 documents...
|
| 2484 |
2025-05-13 15:19:00,427 - INFO - Added 39 documents to vector database. Total: 39
|
| 2485 |
+
2025-05-13 15:26:36,585 - INFO - Application shut down
|
| 2486 |
+
2025-05-13 15:26:44,582 - INFO - Application started
|
| 2487 |
+
2025-05-13 15:26:46,505 - INFO - Application shut down
|
| 2488 |
+
2025-05-13 15:26:51,494 - INFO - Application started
|
| 2489 |
+
2025-05-13 15:26:56,341 - INFO - Application started
|