# Mycelium Net - Training ML models with switching nodes based on Flower AI

**URL:** <https://discuss.flower.ai/t/mycelium-net-training-ml-models-with-switching-nodes-based-on-flower-ai/1001>\
**Category:** Research\
**Created:** [June 10, 2025, 3:59pm UTC](https://discuss.flower.ai/t/mycelium-net-training-ml-models-with-switching-nodes-based-on-flower-ai/1001 "2025-06-10T15:59:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![blueberry](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@blueberry](https://discuss.flower.ai/u/blueberry)\
**Post date:** [June 10, 2025, 3:59pm UTC](https://discuss.flower.ai/t/mycelium-net-training-ml-models-with-switching-nodes-based-on-flower-ai/1001/1 "2025-06-10T15:59:19Z")

</div>

> **[Mycelium Net - Training ML models with switching nodes based on Flower AI](https://makertube.net/w/2PECr8hc8VhmDCnYF6DBcs)**
>
> A prototype implementation of a "network of ML networks" - an internet-like protocol for federated learning where nodes can discover, join, and migrate between different learning groups based on pe...

A prototype implementation of a “network of ML networks” - an internet-like protocol for federated learning where nodes can discover, join, and migrate between different learning groups based on performance metrics.

Want do you think of this? Kind of a network build on Flower AI learning groups. It could be cool to build a Napster/BitTorrent-like app on this to collaboratively train and share arbitrary machine learning models. Would love to hear your opinion.

Best  
blueberry

---

<div class="post-metadata">

**Author:** ![williamlm](https://dub1.discourse-cdn.com/flex013/user_avatar/discuss.flower.ai/williamlm/32/162_2.png) [@williamlm](https://discuss.flower.ai/u/williamlm)\
**Post date:** [June 12, 2025, 3:49pm UTC](https://discuss.flower.ai/t/mycelium-net-training-ml-models-with-switching-nodes-based-on-flower-ai/1001/2 "2025-06-12T15:49:46Z")

</div>

@blueberry very interesting suggestion! Is there a way/have you considered an approach to simulate/test this in some sort of sandbox version and see how it scales? Also, what is the data type that is being fed into the model(s)?

---

<div class="post-metadata">

**Author:** ![blueberry](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@blueberry](https://discuss.flower.ai/u/blueberry)\
**Post date:** [June 13, 2025, 4:32pm UTC](https://discuss.flower.ai/t/mycelium-net-training-ml-models-with-switching-nodes-based-on-flower-ai/1001/3 "2025-06-13T16:32:03Z")

</div>

@williamlm Well, in an earlier version of the project, I simulated it with around [10 nodes](https://makertube.net/w/mLvv7KLoLBJrwTYPfXeSUk), but back then not with flower.ai. The ecosystem quickly stagnated and all nodes joined the same learning group. Additionally, the microservices were rather large, so already running around 10 nodes brought my laptop to its knees.

So yeah, the first attempt was interesting (basic functionality working; not so surprisingly), but did not scale well (the much more interesting question). That’s what I will try to figure out with this new prototype. But I’m only at the beginning.

---

<div class="post-metadata">

**Author:** ![blueberry](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@blueberry](https://discuss.flower.ai/u/blueberry)\
**Post date:** [June 14, 2025, 6:41am UTC](https://discuss.flower.ai/t/mycelium-net-training-ml-models-with-switching-nodes-based-on-flower-ai/1001/4 "2025-06-14T06:41:36Z")

</div>

Regarding the data type. I would say songs for a start. You give it a prompt and your local songs and it starts to train a model, which is then used to output a song (or a whole playlist). Depending on how well the song is rated by other users, nodes choose their learning group.

And the model changes are shared as gradients, not as whole models to reduce bandwidth.

---

<div class="post-metadata">

**Author:** ![blueberry](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@blueberry](https://discuss.flower.ai/u/blueberry)\
**Post date:** [June 20, 2025, 4:35am UTC](https://discuss.flower.ai/t/mycelium-net-training-ml-models-with-switching-nodes-based-on-flower-ai/1001/5 "2025-06-20T04:35:40Z")

</div>

Not based on flower ai but the following paper combines BitTorrent with gossip learning: [https://dl.acm.org/doi/pdf/10.1145/3703790.3703813](https://dl.acm.org/doi/pdf/10.1145/3703790.3703813)
