Skip navigation
PyBot: No weights. No training.
0:00 / 1:41

PyBot: No weights. No training.

Leandro von Werra

@lvwerra14K followers

Visit on X
2,970 likesDownloadOriginal post

689,863 views

PyBot: No weights. No training. A chatbot built with only simple rules and no AI, entirely written in 600k lines of Python code. PyBot matches Smollm with 360M parameters! How? A swarm of 1,000 DeepSeek Flash agents wrote the whole code in just a week.

30 Comments

Comments from the original post on X (Twitter)

  • Arjun Guha's profile picture

    @ArjunGuha

    Oh fantastic. I had similar inspiration last weekend: This is a rule-based natural lanuage to code program that gets 16.6% on MBPP train set. This is a few hours of idly prompting gpt-6.1-sol. The only dependency is Spacy.

    11 likes

  • Leandro von Werra's profile picture

    @lvwerra

    oh cool, maybe we should make a version next targeted at programming!

    1 like

  • Arjun Guha's profile picture

    @ArjunGuha

    Now that I see yours, I'm not sure why I bothered with a training set. The agent can self-distill its own "training data" for the rule-based system. The general observation is that we can get these agents to write code that no human wanted to write (e.g., verify all software).

    1 like

  • Leandro von Werra's profile picture

    @lvwerra

    Yes, I think there are programs now feasible that just weren't interesting a few years ago.

    3 likes

  • Georgi AI's profile picture

    @georgi_ai_

    💀

    9 likes

  • Leandro von Werra's profile picture

    @lvwerra

    multi-turn is a known limitation and i think typos also throw it off. here's a quick example where it works quite well. also dont expect agi, we only claim it's as good as a 360M model!

  • Surya's profile picture

    @isuryatk

    Is this a April fools joke ?

    4 likes

  • The SI Maximalist's profile picture

    @thesimaximalist

    1,000 neural agents raising a rule-based chatbot is a very funny family tree 😂

    2 likes

  • William Selby's profile picture

    @wselby970

    @slimer48484 Holy shit we’ve come full circle.

    2 likes

  • Kala's profile picture

    @kalapowered

    first bug report's going to say "line 412,907 was rude to my nan"

    2 likes

  • Leandro von Werra's profile picture

    @lvwerra

    feel free to open a pull request!

  • Somi's profile picture

    @somi_ai

    600k lines of rules is basically weights you can grep

    1 like

  • Piyush's profile picture

    @CatAstro_Piyush

    super cool!

    1 like

  • Leandro von Werra's profile picture

    @lvwerra

    thank you Piyush! you can try it here:

    4 likes

  • Piyush's profile picture

    @CatAstro_Piyush

    Love the interface. Also, that you can see which module made it reply.

    1 like

  • selv Marū Atma-Goma's profile picture

    @MagisterLudiX

    @victormustar Nice. Why Python?

  • Akorite's profile picture

    @4korite

    Interesting! I can see things like this being useful in documentation, wikis and such

  • Nour Salama's profile picture

    @n0ur_salama

    600k lines nobody will ever read is wild lol. how do u even review code from 1000 agents, do u just trust the evals at that point?

  • Nexus's profile picture

    @nexusxrobotics

    the 600k lines of Python is doing the work of a learned policy here, not just "simple rules." the agents encoded patterns a model would otherwise need to learn.

  • Wolkyen's profile picture

    @WolkyenCo

    I tried It and Its pretty amazing alrdy and i even have alrdy customized It!