cpu
Browse files- agent.py +1 -1
- requirements.txt +1 -1
agent.py
CHANGED
@@ -29,7 +29,7 @@ class NewsReporterAgent:
|
|
29 |
print("--- π INITIALIZING MODEL (this may take a moment) ---")
|
30 |
|
31 |
# Define the Hugging Face Hub model ID
|
32 |
-
model_id = "google/gemma-3n-
|
33 |
|
34 |
self.device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
35 |
print(f" > Using device: {self.device}")
|
|
|
29 |
print("--- π INITIALIZING MODEL (this may take a moment) ---")
|
30 |
|
31 |
# Define the Hugging Face Hub model ID
|
32 |
+
model_id = "google/gemma-3n-E2B-it" # google/gemma-3n-E4B-it # 4b taking too long
|
33 |
|
34 |
self.device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
35 |
print(f" > Using device: {self.device}")
|
requirements.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
# Core ML/AI Libraries
|
2 |
torch
|
3 |
-
transformers
|
4 |
langchain-core
|
5 |
sentencepiece
|
6 |
typing_extensions
|
|
|
1 |
# Core ML/AI Libraries
|
2 |
torch
|
3 |
+
transformers==4.54.1
|
4 |
langchain-core
|
5 |
sentencepiece
|
6 |
typing_extensions
|