# Tensorflow Implementation with More than 2 clients

**URL:** <https://discuss.flower.ai/t/tensorflow-implementation-with-more-than-2-clients/104>\
**Category:** Flower Help - Beginners\
**Created:** [February 26, 2024, 2:01pm UTC](https://discuss.flower.ai/t/tensorflow-implementation-with-more-than-2-clients/104 "2024-02-26T14:01:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flower](https://dub1.discourse-cdn.com/flex013/user_avatar/discuss.flower.ai/flower/32/17_2.png) [@flower](https://discuss.flower.ai/u/flower)\
**Post date:** [February 26, 2024, 2:01pm UTC](https://discuss.flower.ai/t/tensorflow-implementation-with-more-than-2-clients/104/1 "2024-02-26T14:01:41Z")

</div>

_This question was migrated from Github Discussions._

**Original Question:**  
Hello,  
I followed the Tensorflow Introduction at [Federated Learning in less than 20 lines of code](https://flower.ai/blog/2020-12-11-federated-learning-in-less-than-20-lines-of-code/).  
Is it possible to have more than 2 clients sampled? When I tried running more than 2 instances of client.py, in my server.py terminal I still see only 2 clients (out of 3). Do I need to do anything additional to get the server to sample 3 out of 3 clients?

**Answer:**  
Hi, there are two things you need to do to train on more clients at once:

1. Start more instances of `client.py`
2. Configure the strategy to select more clients (this will happen by default since Flower 1.0)

The Flower tutorial covers this in more detail: [Starting the training](https://flower.ai/docs/framework/tutorial-series-get-started-with-flower-pytorch.html#Starting-the-training)
