{"id":2642,"date":"2025-02-15T16:05:34","date_gmt":"2025-02-15T15:05:34","guid":{"rendered":"https:\/\/blog.idethloff.de\/wordpress\/?p=2642"},"modified":"2025-02-15T16:05:34","modified_gmt":"2025-02-15T15:05:34","slug":"hugging-face-ai-agents-course","status":"publish","type":"post","link":"https:\/\/blog.idethloff.de\/wordpress\/?p=2642","title":{"rendered":"Hugging Face AI Agents Course"},"content":{"rendered":"<p>AI Agents sind DAS Thema derzeit. Regelm\u00e4\u00dfig gute Links dazu bietet \u00fcbrigens George Siemens &#8222;SAIL&#8220;-Newsletter <a href=\"https:\/\/buttondown.com\/SAIL\/archive\" target=\"_blank\" rel=\"noopener\">https:\/\/buttondown.com\/SAIL\/archive<\/a><br \/>\n<strong>So bin ich auch auf den am 10.2.2025 gestarteten kostenlosen &#8222;AI Agents&#8220;-Kurs von Hugging Face gesto\u00dfen:<\/strong><br \/>\n<a href=\"https:\/\/huggingface.co\/agents-course\" target=\"_blank\" rel=\"noopener\">https:\/\/huggingface.co\/agents-course<\/a><br \/>\n<a href=\"https:\/\/huggingface.co\/learn\/agents-course\/unit0\/introduction\" target=\"_blank\" rel=\"noopener\">https:\/\/huggingface.co\/learn\/agents-course\/unit0\/introduction<\/a><\/p>\n<p>Die Hugging Face Empfehlung f\u00fcr Teilnehmende ohne Python-Kenntnisse lautet, sich (evtl. nur) mit Unit1 &#8222;Introduction to Agents&#8220; zu befassen und ein kleines Zertifikat zu erwerben. Am Ende des Unit1-Theorieteils gibt es die M\u00f6glichkeit, ein fertiges AI-Agent-Beispiel online in einem eigenen Hugging Face Space auszuprobieren und dabei lediglich in einer Python-Datei kleinere Anpassungen zu machen. Verwendet wurde daf\u00fcr &#8222;Smolagents&#8220;, das AI Agent Framework von Hugging Face.<\/p>\n<p><a href=\"https:\/\/www.idethloff.de\/zert\/HF-AI-Agents-Certificate-20250215.webp\" target=\"_new\"><img decoding=\"async\" title=\"HF AI Agents Course Certificate ID (Unit1)\" src=\"https:\/\/www.idethloff.de\/zert\/HF-AI-Agents-Certificate-20250215.webp\" alt=\"HF AI Agents Course Certificate ID (Unit1)\" \/><\/a><\/p>\n<p><strong>Meine Tests mit dem in Unit1 angebotenen AI-Agent-Beispiel<\/strong><br \/>\nWegen \u00dcberlastung des eingebundenen Qwen2.5-Coder-32B-Instruct-LLM habe ich schnell auf die im Skript aktivierbare technische Alternative zur\u00fcckgreifen m\u00fcssen. Dann klappte es gut mit Anfragen und Ergebnissen mit Darlegung der Agent-&#8222;Thoughts&#8220; bis hin zur &#8222;Final Answer&#8220;.<br \/>\nBzgl. eigenen Anpassungen der Python-Beispieldatei habe ich 2 Dinge getestet:<br \/>\na) Aktivieren des bereits vorbereiteten Image-Generators durch Eintrag in der Zeile <em>tools=[final_answer, image_generation_tool],<\/em><br \/>\nb) Eintragen eines kleinen Lottozahlen-Skripts als Tool<br \/>\nWieder einmal war die Nutzung von ChatGPT hilfreich, um mir ggf. Code erkl\u00e4ren bzw. generieren zu lassen, da meine Python-Kenntnisse sich in Grenzen halten \ud83d\ude42<\/p>\n<p>F\u00fcr mich interessant: Der bereits im AI-Agent-Beispiel referenzierte Image-Generator greift auf &#8222;model_sdxl = &#8222;black-forest-labs\/FLUX.1-schnell&#8220; zur\u00fcck und lieferte ziemlich gute Bilder.<\/p>\n<p><a href=\"https:\/\/www.idethloff.de\/blogfiles\/20250215\/20250214-smolagent-chat-teil01.jpg\" target=\"_new\">Chatverlauf Screenshot 1<\/a> | <a href=\"https:\/\/www.idethloff.de\/blogfiles\/20250215\/20250214-smolagent-chat-teil02.jpg\" target=\"_new\">Chatverlauf Screenshot 2<\/a> | <a href=\"https:\/\/www.idethloff.de\/blogfiles\/20250215\/20250214-smolagent-chat-teil03.jpg\" target=\"_new\">Chatverlauf Screenshot 3<\/a><\/p>\n<p><a href=\"https:\/\/www.idethloff.de\/blogfiles\/20250215\/20250214-Result-Image01.png\" target=\"_new\"><img decoding=\"async\" title=\"Ergebnisbild 1\" src=\"https:\/\/www.idethloff.de\/blogfiles\/20250215\/20250214-Result-Image01.png\" alt=\"Ergebnisbild 1\" width=\"100px\" \/><\/a> | <a href=\"https:\/\/www.idethloff.de\/blogfiles\/20250215\/20250214-Result-Image02.png\" target=\"_new\"><img decoding=\"async\" title=\"Ergebnisbild 2\" src=\"https:\/\/www.idethloff.de\/blogfiles\/20250215\/20250214-Result-Image02.png\" alt=\"Ergebnisbild 2\" width=\"100px\" \/><\/a> | <a href=\"https:\/\/www.idethloff.de\/blogfiles\/20250215\/20250214-Result-Image03.png\" target=\"_new\"><img decoding=\"async\" title=\"Ergebnisbild 3\" src=\"https:\/\/www.idethloff.de\/blogfiles\/20250215\/20250214-Result-Image03.png\" alt=\"Ergebnisbild 3\" width=\"100px\" \/><\/a>|<\/p>\n<p>&nbsp;<\/p>\n<p>***************************<\/p>\n<p><strong>Abschlie\u00dfend noch eine Erkl\u00e4rung aus dem Kurs, was ein AI Agent ist \ud83d\ude42<\/strong><\/p>\n<blockquote><p>&#8222;To summarize, an Agent is a system that uses an AI Model (typically an LLM) as its core reasoning engine, to:<\/p>\n<p><strong>Understand natural language<\/strong>: Interpret and respond to human instructions in a meaningful way.<\/p>\n<p><strong>Reason and plan<\/strong>: Analyze information, make decisions, and devise strategies to solve problems.<\/p>\n<p><strong>Interact with its environment<\/strong>: Gather information, take actions, and observe the results of those actions.&#8220;<\/p><\/blockquote>\n<p>(Quelle: <a href=\"https:\/\/huggingface.co\/learn\/agents-course\/unit1\/what-are-agents\" target=\"_blank\" rel=\"noopener\">https:\/\/huggingface.co\/learn\/agents-course\/unit1\/what-are-agents<\/a>)<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AI Agents sind DAS Thema derzeit. Regelm\u00e4\u00dfig gute Links dazu bietet \u00fcbrigens George Siemens &#8222;SAIL&#8220;-Newsletter https:\/\/buttondown.com\/SAIL\/archive So bin ich auch auf den am 10.2.2025 gestarteten kostenlosen &#8222;AI Agents&#8220;-Kurs von Hugging Face gesto\u00dfen: https:\/\/huggingface.co\/agents-course https:\/\/huggingface.co\/learn\/agents-course\/unit0\/introduction Die Hugging Face Empfehlung f\u00fcr Teilnehmende ohne Python-Kenntnisse lautet, sich (evtl. nur) mit Unit1 &#8222;Introduction to Agents&#8220; zu befassen und ein &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.idethloff.de\/wordpress\/?p=2642\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eHugging Face AI Agents Course\u201c <\/span>weiterlesen<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,22,4],"tags":[],"class_list":["post-2642","post","type-post","status-publish","format-standard","hentry","category-e-learning","category-ki","category-software"],"_links":{"self":[{"href":"https:\/\/blog.idethloff.de\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.idethloff.de\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.idethloff.de\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.idethloff.de\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.idethloff.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2642"}],"version-history":[{"count":7,"href":"https:\/\/blog.idethloff.de\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2642\/revisions"}],"predecessor-version":[{"id":2649,"href":"https:\/\/blog.idethloff.de\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2642\/revisions\/2649"}],"wp:attachment":[{"href":"https:\/\/blog.idethloff.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.idethloff.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.idethloff.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}