Now that you have all the details, let’s get started! We’re going to do four things:
(If you haven’t already) create a Hugging Face account here.
👉🏻 Join our discord server here.
When you join, remember to introduce yourself in #introduce-yourself.
We have multiple AI Agent-related channels:
agents-course-announcements: for the latest course information.🎓-agents-course-general: for general discussions and chitchat.agents-course-questions: to ask questions and help your classmates.agents-course-showcase: to show your best agents.In addition you can check:
smolagents: for discussion and support with the library.If this is your first time using Discord, we wrote a Discord 101 to get the best practices. Check the next section.
Stay up to date with the latest course materials, updates, and announcements by following the Hugging Face Agents Course Organization.
👉 Go here and click on follow.
Help us make this course more visible! There are two way you can help us:
You can download the image by clicking 👉 here
Install Ollama
Follow the official Instructions here.
Pull a model Locally
ollama pull qwen2:7b #Check out ollama website for more modelsollama serve
LiteLLMModel Instead of HfApiModel from smolagents import LiteLLMModel
model = LiteLLMModel(
model_id="ollama_chat/qwen2:7b", # Or try other Ollama-supported models
api_base="http://127.0.0.1:11434", # Default Ollama local server
num_ctx=8192,
)http://localhost:11434.LiteLLMModel is built to communicate with any model that supports the OpenAI chat/completion API format.HfApiModel for LiteLLMModel no other code changes required. It’s a seamless, plug-and-play solution.Congratulations! 🎉 You’ve completed the onboarding process! You’re now ready to start learning about AI Agents. Have fun!
Keep Learning, stay awesome 🤗
< > Update on GitHub