Ananya M commited on
Commit ·
920152d
1
Parent(s): cecf8ed
Fix tool calling model to Qwen2.5-Coder-32B-Instruct
Browse files
unit2/smolagents/tool_calling_agents.ipynb
CHANGED
|
@@ -552,7 +552,8 @@
|
|
| 552 |
"source": [
|
| 553 |
"from smolagents import ToolCallingAgent, WebSearchTool, InferenceClientModel\n",
|
| 554 |
"\n",
|
| 555 |
-
"
|
|
|
|
| 556 |
"\n",
|
| 557 |
"agent.run(\"Search for the best music recommendations for a party at the Wayne's mansion.\")"
|
| 558 |
]
|
|
@@ -593,4 +594,4 @@
|
|
| 593 |
},
|
| 594 |
"nbformat": 4,
|
| 595 |
"nbformat_minor": 0
|
| 596 |
-
}
|
|
|
|
| 552 |
"source": [
|
| 553 |
"from smolagents import ToolCallingAgent, WebSearchTool, InferenceClientModel\n",
|
| 554 |
"\n",
|
| 555 |
+
"model = InferenceClientModel(model_id=\"Qwen/Qwen2.5-Coder-32B-Instruct\")\n",
|
| 556 |
+
"agent = ToolCallingAgent(tools=[WebSearchTool()], model=model)\n",
|
| 557 |
"\n",
|
| 558 |
"agent.run(\"Search for the best music recommendations for a party at the Wayne's mansion.\")"
|
| 559 |
]
|
|
|
|
| 594 |
},
|
| 595 |
"nbformat": 4,
|
| 596 |
"nbformat_minor": 0
|
| 597 |
+
}
|