Hello Hugging Face team,
I’m currently taking the Agents Course, Unit 2 — smolagents, and I’m working on the “Create a Basic Code Agent with Web Search Capability” challenge.
When I submit my solution, the quiz gives me this warning:
Error generating feedback: MaxRetryError('HTTPSConnectionPool(host=\'api-inference.huggingface.co\', port=443): Max retries exceeded with url: /models/Qwen/Qwen2.5-Coder-32B-Instruct (Caused by NameResolutionError: Failed to resolve \'api-inference.huggingface.co\' ([Errno -5] No address associated with hostname))')
The error appears to indicate that the quiz environment cannot resolve or connect to api-inference.huggingface.co.
My code is:
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel
agent = CodeAgent(
tools=[DuckDuckGoSearchTool()],
model=HfApiModel(model_id="Qwen/Qwen2.5-Coder-32B-Instruct")
)
Could you please check whether the inference endpoint or the quiz feedback service is currently experiencing a DNS/network issue?
Thank you!