huggingface / huggingface/agents-course

[HANDS-ON BUG] Wrong reference solution model-id in quiz

Open
#250 0 comments 1 reaction 1 assignee Claimed by @sergiopaniego View on GitHub
hands-on-bug
Dominant language
MDX
Stars
32.6k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
``` Incorrect! The student's solution does not meet the assessment criteria because the `HfApiModel` is improperly configured. Specifically, the model ID `"Qwen/Qwen2.5-Coder-32B-Instruct"` is missing from the `HfApiModel()` instantiation, making it incomplete and different from the reference solution. The student's solution does not meet the assessment criteria because the `HfApiModel` is improperly configured. Specifically, the model ID `"Qwen/Qwen2.5-Coder-32B-Instruct"` is missing from the `HfApiModel()` instantiation, making it incomplete and different from the reference solution.```

**To Reproduce**
Submit code to https://huggingface.co/spaces/agents-course/unit2_smolagents_quiz
```
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel

agent = CodeAgent(
tools=[DuckDuckGoSearchTool()], # Add search tool here
model=HfApiModel() # Add model here
)
```

**Screenshots**

![Image](https://github.com/user-attachments/assets/216d7335-2fdc-47a8-95c5-0695e5964d94)

**Additional context**
Add any other context about the problem here.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.