🔴 Mixture of Agents (MoA) Method Explained + Run Code Locally FREE

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ก.ค. 2024
  • #aiagents #moa #llm #mistral
    This video is an easy explanation of the Mixture of Agents (MoA) method and algorithm and a tutorial on how to run a MoA multi-LLM AI agents locally and 100% FREE. The method is discussed in this paper:
    Wang et al. (2024). Mixture-of-Agents Enhances Large Language Model Capabilities.
    Full process to run the MoA system in this GitHub repo:
    github.com/Maryam-Nasseri/MoA...
    Tutorial to set up an agentic workflow with CrewAI and Ollama:
    • 💯 FREE Local LLM - AI ...
    Explanation of various agentic systems & AI agents:
    • 🔴 This Agentic AI Work...
    How Hugging Face evaluates LLMs:
    • What Language Model To...
    Chapters and Key Terms:
    00:00 Introduction to Mixture of Agents (MoA)
    00:32 MoA architecture and layers of agents
    02:07 Automatic model selection: Performance & Diversity
    03:10 Proposer and Aggregator agents
    04:00 MoA evaluation with LLAMA3, Mixtral, and Qwen1.5 against GPT- 4/GPT-4o
    04:18 Benchmarks: AlpacaEval 2.0, MT-bench, FLASK
    05:14 Together AI API key set-up as VENV variable
    05:42 Clone git and install dependencies
    06:10 MoA algorithm's main components
    06:59 Run MoA with Qwen2, Qwen 1.5, Mixtral, and dbrx from Databricks
    07:33 Solving a problem from the GSM8K benchmark used in the Hugging Face Leaderboard
    / @analyticscamp
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 11

  • @soccerdadsg
    @soccerdadsg 17 วันที่ผ่านมา +1

    Another quality video from the channel!

  • @OpenAITutor
    @OpenAITutor 12 วันที่ผ่านมา +1

    I love this! I did create a version using Groq and open-webui!

    • @analyticsCamp
      @analyticsCamp  12 วันที่ผ่านมา

      Thanks for your comment. I visited your channel and subed! Great videos :)

  • @sr.modanez
    @sr.modanez หลายเดือนก่อน +3

    top top top + + + + + +👏👏👏👏👏👏👏👏👏

    • @analyticsCamp
      @analyticsCamp  หลายเดือนก่อน +1

      Glad you liked it and thanks for watching :)

  • @jonjeffers5153
    @jonjeffers5153 25 วันที่ผ่านมา +1

    Thanks for the video! I'm having an issue with the API key. I'm not a python programmer, FYI. The bot.py runs, but when I type something I get: OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable

    • @analyticsCamp
      @analyticsCamp  25 วันที่ผ่านมา

      Hi, I think you have not set your environment variables correctly (Please follow the video steps). You should either have a valid OpenAI API key (can get it from their website) or just get a free key from the Together AI website for this project. Then, from your code editor terminal, export your environment API key by typing this exactly:
      echo "export OPENAI_API_KEY='yourkey'" >> ~/.bash_profile
      -but replace 'yourkey' with the key ID you got (it doesn't have to be only from OpenAI, but any partner of them like Together AI, etc). Then update the shell with the new variable by typing:
      source ~/.bash_profile
      -to confirm if it is set correctly, type:
      echo $TOGETHER_API_KEY
      -This should show your key, if it is correct you are set. I hope this helps :)
      PS: if you work on Windows, I think you should use \ instead of / in my code, and instead of bash_profile in the first two lines, use autoexec.bat. I don't work with Windows but this information that I found online may help:
      To set environment variables in Windows, you can follow these steps:
      Press Win + R to open the Run dialog.
      Type sysdm.cpl and press Enter to open the System Properties window.
      Go to the "Advanced" tab and click on the "Environment Variables" button.
      In the Environment Variables window, you can set system variables (for all users) or user variables (specific to the current user).
      Click on "New" to add a new variable, or select an existing variable to edit or delete it.

  • @BooleanDisorder
    @BooleanDisorder หลายเดือนก่อน +2

    Next will probably be: Mixture of Mixtures!

    • @analyticsCamp
      @analyticsCamp  หลายเดือนก่อน +1

      LOL :) Who knows? Maybe you're right!

    • @BooleanDisorder
      @BooleanDisorder หลายเดือนก่อน +1

      ​@analyticsCamp seriously though, thanks for the excellent video.