Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -3,14 +3,11 @@ from smolagents import CodeAgent, DuckDuckGoSearchTool
|
|
| 3 |
from smolagents import TransformersModel
|
| 4 |
|
| 5 |
class GaiaAgent:
|
| 6 |
-
def __init__(self, model_id: str = "
|
| 7 |
self.llm_model = TransformersModel(
|
| 8 |
model_id=model_id,
|
| 9 |
-
|
| 10 |
-
#
|
| 11 |
-
task="text-generation",
|
| 12 |
-
# You might need device_map="auto" if you hit memory issues or have GPU:
|
| 13 |
-
# device_map="auto"
|
| 14 |
)
|
| 15 |
|
| 16 |
self.agent = CodeAgent(
|
|
|
|
| 3 |
from smolagents import TransformersModel
|
| 4 |
|
| 5 |
class GaiaAgent:
|
| 6 |
+
def __init__(self, model_id: str = "google/gemma-2b-it"): # <-- CHANGE MODEL HERE
|
| 7 |
self.llm_model = TransformersModel(
|
| 8 |
model_id=model_id,
|
| 9 |
+
task="text-generation",
|
| 10 |
+
# device_map="auto" # Can keep this, accelerate will manage
|
|
|
|
|
|
|
|
|
|
| 11 |
)
|
| 12 |
|
| 13 |
self.agent = CodeAgent(
|