ABVM commited on
Commit
cb43752
·
verified ·
1 Parent(s): 640cba7

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +5 -4
agent.py CHANGED
@@ -1,13 +1,14 @@
1
- from smolagents import CodeAgent, HfApiModel
2
  from smolagents import VisitWebpageTool, WebSearchTool, WikipediaSearchTool, PythonInterpreterTool,FinalAnswerTool
3
 
4
 
5
  class GaiaAgent:
6
  def __init__(self):
7
- self.model = HfApiModel(
8
- max_tokens = 2096,
9
  temperature = 0.5,
10
- model_id = 'https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',
 
11
  custom_role_conversations=None
12
  )
13
  #or
 
1
+ from smolagents import CodeAgent, InferenceClientModel
2
  from smolagents import VisitWebpageTool, WebSearchTool, WikipediaSearchTool, PythonInterpreterTool,FinalAnswerTool
3
 
4
 
5
  class GaiaAgent:
6
  def __init__(self):
7
+ self.model = InferenceClientModel(
8
+ max_tokens = 8096,
9
  temperature = 0.5,
10
+ model_id = "deepseek-ai/DeepSeek-R1-0528"
11
+ provider = "huggingface" #'https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',
12
  custom_role_conversations=None
13
  )
14
  #or