smolagents - HuggingFace's NEW Agent Framework

Поділитися
Вставка
  • Опубліковано 7 січ 2025

КОМЕНТАРІ • 50

  • @sbowesuk981
    @sbowesuk981 День тому +16

    You deserve way more subscribers. One of the best at covering the true technical side of AI.

    • @rude_people_die_young
      @rude_people_die_young День тому

      I’m not sure we can call reading webpages anymore than it actually is 🤦‍♂️

    • @jstello
      @jstello День тому

      That's probably because he doesn't use clickbait like almost all other AI explainers out there

  • @NeuralDev
    @NeuralDev День тому +12

    As you mentioned one of the limit of those kind of tool is the fact that they don't use memory to improve their accuracy when trying to execute a task,
    I think it should become a standard practice for Agent Framework to not only enable a LLM through API but to systematically enable a RAG or Cache-Augmented Generation (CAG) memory of the errors/success in order to avoid looping on avoidable mistakes and learn from it's mistakes/success
    And they should create a global memory of those mistakes/success it would mean automatic debugging at large scale

  • @nathank5140
    @nathank5140 День тому +2

    This is amazing. Makes total sense we don’t handycap the agents to use structures JSON. Being able to use code is awesome. I have a feeling smaller modes with be more powerful if we allow them to use code. Feels like it’s within reach to do a multi agent system on a dual 3090 setup. Please do the multi agent video and a few more.

  • @SaidElnaffar
    @SaidElnaffar День тому +2

    We need more! -- Great work.

  • @zhalberd
    @zhalberd День тому

    Thank you for taking the time to make this. Very helpful channel. Please do make a video on multi-agent framework with "supervisor" agent.

  • @AngusLou
    @AngusLou 2 дні тому +3

    The video is awesome, thank you

  • @thampasaurusrex3716
    @thampasaurusrex3716 День тому +1

    What is the best approach for creating a smart chat-bot with different sale scenarios?
    Like having a conversation with a user using one main-agent and then route to another agent when the main-agent thinks that it is the best time to do that. Also, if a user insults chat-bot then reroute to an agent that handles insulting.
    How can we transfer user state to different agents and different parts of an agent application?

  • @hipotures
    @hipotures 2 дні тому +1

    smol for greatness!

  • @autoflujo
    @autoflujo День тому +3

    Almost the same problem, it’s like giving a machine gun to a monkey. It goes nuts. LangGraph for me is the best option for agents but you’re right Sam, we need something with more control but less code.

  • @IdPreferNot1
    @IdPreferNot1 19 годин тому +1

    You seemed kind of down on this given the errors you got. I think with a bit of planning, this framework really introduces the best of both worlds in a non-abstracted agent framework, and that with your orchestration agent being code driven, will get a lot better results. The langraph model of having to define everything is pretty boring at this point and this really gives some power to a simple agent. Would love to see another video on smolagents from the multiagent side. And no need to fuss around with non sota HFapi models gimmick :)

    • @samwitteveenai
      @samwitteveenai  Годину тому +1

      I just put out the new video and took your advice on the non-SOTA HF API models. 😀 I'm actually really surprised how well it does with GPT-4.0-mini . I totally agree with you about LangGraph. I find it more and more tedious whenever I'm working with it nowadays.

  • @hipotures
    @hipotures День тому +2

    (v1.0.0) At first, it seems that this restriction to a list of imports is great, but with dynamic code development, you never know what it will be. You end up throwing in a huge list of allowed imports because you've had enough.
    Another issue is that if I want it to just produce code for me in python, it runs it. I just wanted the code, no testing etc. It doesn't differentiate between its created code and on-demand code.
    And this errors with regex pattern, all the time.

  • @jjolla6391
    @jjolla6391 День тому +14

    All i see is lots of efforts being put in to minimize proper programming. When you factor in all that trial-and-error overhead .. you have saved nothing over rolling up your sleeves and cutting real code. LLMs should be seen as one of the many tools a program can use .. avoid thinking of it as the centrepiece.

    • @choiswimmer
      @choiswimmer День тому

      Yes that's the entire point of the anthropic paper. You likely don't need agents

    • @redpilljesus
      @redpilljesus День тому

      Not everybody is a programmer. That's the whole point of LLMs.

    • @gregkendall3559
      @gregkendall3559 День тому +5

      I'm an experienced coder but now I just use Claude and generate code in an hour that would have taken me days to figure out previously. I don't know if I will ever write extensive code again. It certainly helps to know coding so you can recognize when the LLM has gone off the rails and to make some tweeks, but other than having some fun "relieving the good old days," I think my serious coding days are over for good. And the AI will just get astronomically better and better from here out. It's been only two years since they came out. Imagine what they will be able to do in two more. It will be incredible. Buckle up buttercup!!!

    • @SineN0mine3
      @SineN0mine3 День тому

      ​@@redpilljesusthat's the whole point of LLMs if you're missing the point entirely.
      Programming and LLMs go together like fudge and icecream. LLMs are hardly useful at all, but with a small amount of guidance from programmers they can be made into multi-purpose agents with w range of skills.
      LLMs should be seen as User input and User Output - a better way to interact with the user than a GUI or a command line, but it's not a "brain" and it doesn't do anything useful without tools to use and code to dictate it's work tasks.

    • @Flibbinstein
      @Flibbinstein 22 години тому

      ​@@gregkendall3559what if this is the best coding Ai ever gets because from here on out Ai models are trained on all the shit code produced by other Ai? Lol

  • @MarkSteffenCanada
    @MarkSteffenCanada День тому

    Sam, will this work with a local llama.cpp model, or does it require using HF/hosted model somewhere else?

    • @samwitteveenai
      @samwitteveenai  День тому

      It can certainly work with something like Ollama. I will show this in the next video. That said, I haven't had a lot of success getting it to work with very small models.

  • @andrewandreas5795
    @andrewandreas5795 2 дні тому

    Is it easy to configure the agents to use locally served models? For example with Ollama?

    • @samwitteveenai
      @samwitteveenai  2 дні тому +3

      Yes you can do this via LiteLLM and and Ollama using the OpenAI type of end points

    • @andrewandreas5795
      @andrewandreas5795 День тому

      @@samwitteveenai Thank you, will try to do so

    • @RedCloudServices
      @RedCloudServices День тому

      ⁠@@samwitteveenaiare there any videos to explain how to setup openai-compliant endpoints from local olama models

  • @drpchankh
    @drpchankh День тому

    Very good content. Sam, can you try smolagent in Kaggle environment?

    • @samwitteveenai
      @samwitteveenai  День тому

      It should run in Kaggle, no problem. Are you looking to run local models in there? If so, you can do that with the Transformers-style model.

  • @RedCloudServices
    @RedCloudServices День тому

    Sam great content as always. QUESTION: Do you envision an agents and a tools store sort of like the Apple and GooglePlay stores?

    • @samwitteveenai
      @samwitteveenai  День тому +2

      Ah, you've really hit the nail on the head. At the moment, there are quite a number of startups that are looking at making agent stores. I've been approached about putting some of my agents on these stores (not stuff from the channel). I know the biggest framework for agents is certainly looking at this and I think lots of VC money is betting on it.
      I do think the big tech companies have a massive advantage to do this as they already have a lot of the data that people want to use in agents, whether that's personal data or business data, etc.

    • @RedCloudServices
      @RedCloudServices 22 години тому

      @ agreed- ALSO: something to consider…where I work (a govt agency as data analyst) we have Microsoft, AWS, Palantir and others. It seems certain that Enterprise Software itself (i.e. a proprietary stack of sw functions) is undergoing a metamorphosis into complete agentic frameworks. Microsoft Satya Nadella recently said “the notion that business applications exist is probably where they will collapse right in the agent era”. This is bad news for VC startups $ selling agents which could be free for enterprise customers.

    • @jibbscat5146
      @jibbscat5146 16 годин тому

      @@RedCloudServicesnot necessarily bad for VC startups. Some that build around this agentic theme for tooling or building custom solutions for targeted verticals on top of these big enterprise SaaS platforms could be targets for acquisition

  • @isitanos
    @isitanos День тому

    I just want an agent that can check and compare grocery prices for me this week across all nearby stores, with some provided criteria, and build me a comparative table. Probably requires a vision model and some kind of browser use framework.

    • @samwitteveenai
      @samwitteveenai  День тому +1

      This is actually a really nice use case for building an agent. Probably don't need a vision model because most of the supermarkets are online, so you could probably scrape the results for that. I might have a little play with this and see what can come of it.

  • @choiswimmer
    @choiswimmer День тому +1

    Can you start commenting on the production readiness of these frameworks? Each framework can do agents abstracted like this and its not much of a differentiator. But rewriting walls of prompts and then evaluating or monitoring them is just not sustainable.

    • @samwitteveenai
      @samwitteveenai  День тому +1

      This really deserves a whole video by itself. I'm currently in the process of revising the frameworks that I've made videos on, and a couple of other frameworks. I think at some point I will have to make a video about exactly what you're talking about and compare the frameworks, though I know it's gonna piss off a lot of people.
      For me personally, I tend to use most of the frameworks for trying out ideas and getting a rough sense of what is going to work. What the flow should be of the LLM app or the agent, does it really even need to be an agent, etc.? But then a lot of the time I just write it again from scratch in Python without any agentic framework. I do think Pydantic AI is pretty cool because it is so close to Python that you can just use their abstractions for doing structured outputs etc., and just make use of that in a Python app. That allows you to build custom agents like that.
      That said, I've done consulting for people who are using things like LangGraph in production for certain projects. On the whole, I generally find it easier to maintain the code as microservices, so each of them can talk to each other. It makes it very easy just to update whatever component I need to.

  • @GNARGNARHEAD
    @GNARGNARHEAD День тому

    😮😎 looks like it could be powerful with a human copilot

    • @GNARGNARHEAD
      @GNARGNARHEAD День тому +1

      I wonder why ChatGPT's Canvas' folder system is so streamlined when executing multiple tasks, while this using 4o isn't 🤔

  • @Rusputin-eo6tv
    @Rusputin-eo6tv День тому

    the framework is 200MB, which is pretty heavy. They need to make their own SDK =)))

    • @samwitteveenai
      @samwitteveenai  День тому

      Where do you get the 200mb from? on pypi the wheel is under 100k

  • @Quaquaquaqua
    @Quaquaquaqua День тому +1

    I really don’t like tool calling. I rather just have structured output that i can use to calibrate control flow more manually. The problem with all of these is managing ‘short term’ and ‘long term’ memory

  • @choiswimmer
    @choiswimmer День тому

    Conceptually awesome but Holy moly 5K input tokens? Yeah right

  • @brettshollenberger
    @brettshollenberger День тому +1

    Nothing says made by AI people like calling regular ass methods a forward pass 😂

    • @samwitteveenai
      @samwitteveenai  Годину тому

      😀 My guess is this is a reference to the PyTorch/Chainer way of doing things. I admit I was a bit surprised when I first saw it in their examples as well.

  • @hqcart1
    @hqcart1 День тому

    the question is: what is really an agent?

    • @BHBalast
      @BHBalast День тому

      If you agree that it's a spectrum then we can say that everyone intuitively can say what is an agent and what is not, but the exact border is fuzzy and can't be defined. There is a language problem with defining any border with things that are on a spectrum but at the end of the day it doesn't matter like it didn't matter in the past, it will just waste a lot of time of ppl like us writing comments about definitions :p