# \#federated

**URL:** https://discuss.ai.google.dev/tag/federated/36.md

[Latest](https://discuss.ai.google.dev/latest.md) · [Categories](https://discuss.ai.google.dev/categories.md) · [Tags](https://discuss.ai.google.dev/tags.md)

---

## [Federated Averaging in Tensorflow Federated](https://discuss.ai.google.dev/t/federated-averaging-in-tensorflow-federated/27866)

<div class="topic-metadata">

**Author:** [@Reem\_Alwani](https://discuss.ai.google.dev/u/Reem_Alwani)\
**Replies:** 1\
**Last updated:** [October 3, 2025, 8:17am UTC](https://discuss.ai.google.dev/t/federated-averaging-in-tensorflow-federated/27866 "2025-10-03T08:17:17Z")

</div>

I am a newbie in federated learning and just getting to know the TensorFlow Federated TFF framework. I have some questions in my mind I would be really appreciated it if anybody can clarify them: Does the Federated Ave…

---

## [Same values in all rounds iterative\_process.next](https://discuss.ai.google.dev/t/same-values-in-all-rounds-iterative-process-next/30250)

<div class="topic-metadata">

**Author:** [@Inna\_Veselova](https://discuss.ai.google.dev/u/Inna_Veselova)\
**Replies:** 1\
**Last updated:** [May 27, 2025, 5:42am UTC](https://discuss.ai.google.dev/t/same-values-in-all-rounds-iterative-process-next/30250 "2025-05-27T05:42:07Z")

</div>

Hi everyone, why could I get the same values in all rounds iterative\_process.next? train\_client\_ids: \[\[1.0\], \[8.0\], \[9.0\], \[5.0\], \[6.0\]\] def create\_tf\_dataset\_for\_client\_fn(client\_id): … I checked return, everythung…

---

## [Failing to implement SCAFFOLD in tensorfow](https://discuss.ai.google.dev/t/failing-to-implement-scaffold-in-tensorfow/31665)

<div class="topic-metadata">

**Author:** [@AJ\_LMU](https://discuss.ai.google.dev/u/AJ_LMU)\
**Replies:** 3\
**Last updated:** [May 2, 2025, 7:41pm UTC](https://discuss.ai.google.dev/t/failing-to-implement-scaffold-in-tensorfow/31665 "2025-05-02T19:41:42Z")

</div>

For my current reasearch, I want to add the Federated learning strategy SCAFFOLD from Karimireddy to my experiment. I am using tensorflow for my reasearch, however I can only find implementations in pytorch online, and I…

---

## [Problem in Evaluation of TFF Model](https://discuss.ai.google.dev/t/problem-in-evaluation-of-tff-model/66483)

<div class="topic-metadata">

**Author:** [@Marilina](https://discuss.ai.google.dev/u/Marilina)\
**Replies:** 1\
**Last updated:** [April 22, 2025, 5:58am UTC](https://discuss.ai.google.dev/t/problem-in-evaluation-of-tff-model/66483 "2025-04-22T05:58:29Z")

</div>

I am working on eavesdropper detection on B5G system with Deep Learning. The training dataset contains 1200 CSI images of legitimate and malicious UEs. I have created a DCNN model (with Keras Sequential()) that takes as…

---

## [How can I ensure that only the selected top\_k clients contribute to the FedAvgAggregator?](https://discuss.ai.google.dev/t/how-can-i-ensure-that-only-the-selected-top-k-clients-contribute-to-the-fedavgaggregator/73680)

<div class="topic-metadata">

**Author:** [@boumediene\_kadaben](https://discuss.ai.google.dev/u/boumediene_kadaben)\
**Replies:** 0\
**Last updated:** [March 20, 2025, 11:04am UTC](https://discuss.ai.google.dev/t/how-can-i-ensure-that-only-the-selected-top-k-clients-contribute-to-the-fedavgaggregator/73680 "2025-03-20T11:04:39Z")

</div>

I am implementing a client selection mechanism in TensorFlow Federated (TFF), where I need to dynamically choose the top\_k clients with the largest dataset sizes before performing model update aggregation (deltas). Prob…

---

## [Can anyone correct the code](https://discuss.ai.google.dev/t/can-anyone-correct-the-code/51698)

<div class="topic-metadata">

**Author:** [@rito](https://discuss.ai.google.dev/u/rito)\
**Replies:** 1\
**Last updated:** [November 28, 2024, 8:36am UTC](https://discuss.ai.google.dev/t/can-anyone-correct-the-code/51698 "2024-11-28T08:36:49Z")

</div>

import collections import tensorflow as tf import tensorflow\_federated as tff Load simulation data. source, \_ = tff.simulation.datasets.emnist.load\_data() def client\_data(n): return source.create\_tf\_dataset\_for\_clie…

---

## [Create a Federated Learning system in different machines using secure aggregation](https://discuss.ai.google.dev/t/create-a-federated-learning-system-in-different-machines-using-secure-aggregation/40489)

<div class="topic-metadata">

**Author:** [@JORGE\_MONSERRAT\_SANC](https://discuss.ai.google.dev/u/JORGE_MONSERRAT_SANC)\
**Replies:** 0\
**Last updated:** [September 25, 2024, 9:09pm UTC](https://discuss.ai.google.dev/t/create-a-federated-learning-system-in-different-machines-using-secure-aggregation/40489 "2024-09-25T21:09:22Z")

</div>

Hi guys!, i would like to implement a federated learning system in a deployment with 4 different computers and if its possible using Secure Aggregation. im not very sure wether both multi-machine deployment and secure ag…

---

## [Suggst an application to implement federated learning in consumer electronics](https://discuss.ai.google.dev/t/suggst-an-application-to-implement-federated-learning-in-consumer-electronics/28277)

<div class="topic-metadata">

**Author:** [@Muhammad\_Salman\_Fari](https://discuss.ai.google.dev/u/Muhammad_Salman_Fari)\
**Replies:** 1\
**Last updated:** [July 23, 2024, 6:56am UTC](https://discuss.ai.google.dev/t/suggst-an-application-to-implement-federated-learning-in-consumer-electronics/28277 "2024-07-23T06:56:47Z")

</div>

can you guys suggest me a good application in consumer electronics to implement federated learning for my academic project

---

## [AttributeError: module 'tensorflow\_federated.python.learning' has no attribute 'from\_keras\_model'](https://discuss.ai.google.dev/t/attributeerror-module-tensorflow-federated-python-learning-has-no-attribute-from-keras-model/27592)

<div class="topic-metadata">

**Author:** [@Madhuri\_Dubey](https://discuss.ai.google.dev/u/Madhuri_Dubey)\
**Replies:** 1\
**Last updated:** [July 8, 2024, 5:42am UTC](https://discuss.ai.google.dev/t/attributeerror-module-tensorflow-federated-python-learning-has-no-attribute-from-keras-model/27592 "2024-07-08T05:42:39Z")

</div>

I am currently working on a project involving TensorFlow Federated (TFF), and I’m facing an issue with the from\_keras\_model attribute in the tensorflow\_federated.python.learning module. When I attempt to use this attribu…

---

## [Parallelizing TFF for faster Federated Learning](https://discuss.ai.google.dev/t/parallelizing-tff-for-faster-federated-learning/31411)

<div class="topic-metadata">

**Author:** [@Amr\_Akmal](https://discuss.ai.google.dev/u/Amr_Akmal)\
**Replies:** 0\
**Last updated:** [July 3, 2024, 3:43am UTC](https://discuss.ai.google.dev/t/parallelizing-tff-for-faster-federated-learning/31411 "2024-07-03T03:43:26Z")

</div>

Hello I’ve started learning about FL (Federated Learning) and started learning with the provided documentations. My question is, how can I parallelize the training process of each client so to be asynchronous? To my u…

---

## [Tensorflow\_federated.python.learning' has no attribute 'Model'](https://discuss.ai.google.dev/t/tensorflow-federated-python-learning-has-no-attribute-model/10921)

<div class="topic-metadata">

**Author:** [@ATI\_MALIK](https://discuss.ai.google.dev/u/ATI_MALIK)\
**Replies:** 1\
**Last updated:** [April 22, 2024, 6:05pm UTC](https://discuss.ai.google.dev/t/tensorflow-federated-python-learning-has-no-attribute-model/10921 "2024-04-22T18:05:38Z")

</div>

hi !please anyone help me i have Python version: 3.10.12 (main, Nov 20 2023, 15:14:05) \[GCC 11.4.0\] TensorFlow version: 2.14.1 TensorFlow Federated version: 0.75.0 in my below code I am getting continuously these ki…

---

## [Creating a Decentralised federated learning scenarios in tensorflow](https://discuss.ai.google.dev/t/creating-a-decentralised-federated-learning-scenarios-in-tensorflow/28566)

<div class="topic-metadata">

**Author:** [@saras26](https://discuss.ai.google.dev/u/saras26)\
**Replies:** 1\
**Last updated:** [March 18, 2024, 2:19am UTC](https://discuss.ai.google.dev/t/creating-a-decentralised-federated-learning-scenarios-in-tensorflow/28566 "2024-03-18T02:19:21Z")

</div>

Hello Everyone I am trying to create a Decentralized federated learning scenario in TensorFlow, where the clients communicate among themselves and update their parameters; there is no central server or an aggregator lik…

---

## [Heterogeneous federated learning](https://discuss.ai.google.dev/t/heterogeneous-federated-learning/32520)

<div class="topic-metadata">

**Author:** [@saras26](https://discuss.ai.google.dev/u/saras26)\
**Replies:** 1\
**Last updated:** [January 27, 2024, 1:27pm UTC](https://discuss.ai.google.dev/t/heterogeneous-federated-learning/32520 "2024-01-27T13:27:42Z")

</div>

Hi Everyone, I am trying to build a centralized federated learning, where the edge nodes have different architectures, than the master node, is it possible to design this in TensorFlow,?

---

## [Tensorflow Federated Install Error](https://discuss.ai.google.dev/t/tensorflow-federated-install-error/29297)

<div class="topic-metadata">

**Author:** [@Gutierres](https://discuss.ai.google.dev/u/Gutierres)\
**Replies:** 0\
**Last updated:** [October 25, 2023, 3:46am UTC](https://discuss.ai.google.dev/t/tensorflow-federated-install-error/29297 "2023-10-25T03:46:32Z")

</div>

Hi, I´m trying to install Tensorflow Federated in an anaconda environment with Python 3.11 but it gives this error: So I tried installing it in other python versions, but it only works in Python 3.8 and at that point…

---

## [Error installing Tensorflow Federated](https://discuss.ai.google.dev/t/error-installing-tensorflow-federated/20057)

<div class="topic-metadata">

**Author:** [@random\_seed](https://discuss.ai.google.dev/u/random_seed)\
**Replies:** 1\
**Last updated:** [October 17, 2023, 4:27am UTC](https://discuss.ai.google.dev/t/error-installing-tensorflow-federated/20057 "2023-10-17T04:27:18Z")

</div>

I ran into this error while installing Tensorflow Federated. I am using Python 3.9 Collecting numpy~=1.18.4 (from tensorflow-federated) Using cached numpy-1.18.5.zip (5.4 MB) Installing build dependencies … done Gett…

---

## [Tensorflow tff in practice](https://discuss.ai.google.dev/t/tensorflow-tff-in-practice/21236)

<div class="topic-metadata">

**Author:** [@Silent\_Gamer](https://discuss.ai.google.dev/u/Silent_Gamer)\
**Replies:** 1\
**Last updated:** [October 3, 2023, 4:18am UTC](https://discuss.ai.google.dev/t/tensorflow-tff-in-practice/21236 "2023-10-03T04:18:44Z")

</div>

I am currently trying to set up a centralized server for federated learning with TensorFlow. I have read the tutorials but I can not find a way to connect to remote clients. After reading the most asked questions I found…

---

## [Tensorflow Federated with apple silicon](https://discuss.ai.google.dev/t/tensorflow-federated-with-apple-silicon/31078)

<div class="topic-metadata">

**Author:** [@Yingding](https://discuss.ai.google.dev/u/Yingding)\
**Replies:** 3\
**Last updated:** [August 22, 2023, 1:15am UTC](https://discuss.ai.google.dev/t/tensorflow-federated-with-apple-silicon/31078 "2023-08-22T01:15:38Z")

</div>

Hallo everyone, how can i get tensorflow federated installed on apple silicon (MPB M1 Max)? Python3.9 python3.9 -m pip install tensorflow-macos==2.9.2 tensorflow-metal==0.6.0 tensorflow-federated==0.37.0 shows error …

---

## [Tensorflow Federated Demo](https://discuss.ai.google.dev/t/tensorflow-federated-demo/24588)

<div class="topic-metadata">

**Author:** [@kirkdemeroukas](https://discuss.ai.google.dev/u/kirkdemeroukas)\
**Replies:** 1\
**Last updated:** [August 18, 2023, 10:50am UTC](https://discuss.ai.google.dev/t/tensorflow-federated-demo/24588 "2023-08-18T10:50:36Z")

</div>

Hi everyone! I am trying to use the demo script provided on the tensorflow federated page: but keep running into errors: OSError Traceback (most recent call last) Cell In\[1\], line 30 …

---

## [Cannot install tensorflow federated Python 3.9/3.10](https://discuss.ai.google.dev/t/cannot-install-tensorflow-federated-python-3-9-3-10/26383)

<div class="topic-metadata">

**Author:** [@masood\_Jan](https://discuss.ai.google.dev/u/masood_Jan)\
**Replies:** 2\
**Last updated:** [July 14, 2023, 10:51am UTC](https://discuss.ai.google.dev/t/cannot-install-tensorflow-federated-python-3-9-3-10/26383 "2023-07-14T10:51:52Z")

</div>

Hi, I am trying to install tensorflow federated on windows 10, Python 3.9 or 3.10. In both cases I fail to install it. Can someone help here.

---

## [Federated Reconstruction Outputting Matrix Factorization](https://discuss.ai.google.dev/t/federated-reconstruction-outputting-matrix-factorization/23715)

<div class="topic-metadata">

**Author:** [@IkkaSenjika\_615](https://discuss.ai.google.dev/u/IkkaSenjika_615)\
**Replies:** 0\
**Last updated:** [July 14, 2023, 5:57am UTC](https://discuss.ai.google.dev/t/federated-reconstruction-outputting-matrix-factorization/23715 "2023-07-14T05:57:42Z")

</div>

Hello guys, I’ve been exploring the Federated Reconstruction for Matrix Factorization | TensorFlow Federated page, and I know it brings Matrix Factorization into the FL system, but how do I fine-tune the dataset for bet…

---

## [TensorFlow Federated Environment](https://discuss.ai.google.dev/t/tensorflow-federated-environment/22841)

<div class="topic-metadata">

**Author:** [@Unnamed1](https://discuss.ai.google.dev/u/Unnamed1)\
**Replies:** 3\
**Last updated:** [March 14, 2023, 1:39pm UTC](https://discuss.ai.google.dev/t/tensorflow-federated-environment/22841 "2023-03-14T13:39:41Z")

</div>

Hello guys! I’m trying to riproduce the same TensorFlow Federated Environment in all my machines using Docker. Would be nice to install TensorFlow Federated starting from the TensorFlow Docker image. The problem Is tha…

---

## [Building a Proof-of-Concept Prototype for Federated Learning with Power Management Focus](https://discuss.ai.google.dev/t/building-a-proof-of-concept-prototype-for-federated-learning-with-power-management-focus/31708)

<div class="topic-metadata">

**Author:** [@nickcompute](https://discuss.ai.google.dev/u/nickcompute)\
**Replies:** 0\
**Last updated:** [February 13, 2023, 4:51am UTC](https://discuss.ai.google.dev/t/building-a-proof-of-concept-prototype-for-federated-learning-with-power-management-focus/31708 "2023-02-13T04:51:14Z")

</div>

Hi everyone, As an aerospace engineer, I have limited expertise in the field of computing. However, I am currently working on a project where we aim to control the power consumption of a data center. During my research,…

---

## [Federated Learning and onboard training using Raspberry Pi Pico RP2040 and](https://discuss.ai.google.dev/t/federated-learning-and-onboard-training-using-raspberry-pi-pico-rp2040-and/20380)

<div class="topic-metadata">

**Author:** [@Talha\_Siddique](https://discuss.ai.google.dev/u/Talha_Siddique)\
**Replies:** 0\
**Last updated:** [January 31, 2023, 1:46am UTC](https://discuss.ai.google.dev/t/federated-learning-and-onboard-training-using-raspberry-pi-pico-rp2040-and/20380 "2023-01-31T01:46:29Z")

</div>

Hi! I am new to this forum and apologize if this query has been answered in the past. I am trying to implement federated learning in a group of raspberry pi picos. I had the following queries: What would be the best…

---

## [Tensorflow federated installation problem](https://discuss.ai.google.dev/t/tensorflow-federated-installation-problem/28431)

<div class="topic-metadata">

**Author:** [@Debashis\_Gupta](https://discuss.ai.google.dev/u/Debashis_Gupta)\
**Replies:** 1\
**Last updated:** [January 30, 2023, 11:52am UTC](https://discuss.ai.google.dev/t/tensorflow-federated-installation-problem/28431 "2023-01-30T11:52:08Z")

</div>

I tried to install the TensorFlow federated on google colab notebook (later also on my local machine, which shows the same problem). while installing it by command !pip install --quiet --upgrade tensorflow-federated it …

---

## [Differential Privacy Federated Learning using CSV file](https://discuss.ai.google.dev/t/differential-privacy-federated-learning-using-csv-file/27977)

<div class="topic-metadata">

**Author:** [@Mirwais\_Ahmadzai](https://discuss.ai.google.dev/u/Mirwais_Ahmadzai)\
**Replies:** 1\
**Last updated:** [December 23, 2022, 5:44am UTC](https://discuss.ai.google.dev/t/differential-privacy-federated-learning-using-csv-file/27977 "2022-12-23T05:44:59Z")

</div>

I wan to develop federated learning model and implement differential privacy using tensorflow privacy, my problem with how to use my own csv data file? any help will be appreciated. Best Mirwais

---

## [Access and modify weights sent from client on the server tensorflow federated](https://discuss.ai.google.dev/t/access-and-modify-weights-sent-from-client-on-the-server-tensorflow-federated/31093)

<div class="topic-metadata">

**Author:** [@Fanto](https://discuss.ai.google.dev/u/Fanto)\
**Replies:** 1\
**Last updated:** [November 21, 2022, 9:10am UTC](https://discuss.ai.google.dev/t/access-and-modify-weights-sent-from-client-on-the-server-tensorflow-federated/31093 "2022-11-21T09:10:23Z")

</div>

I’m using Tensorflow Federated, but i’m actually have some problem while trying to executes some operation on the server after reading the client update. This is the function @tff.federated\_computation(federated\_server…

---

## [Update tensorflow-federated to match tensorflow-macos==2.7.0 and tensorflow-metal==0.3.0](https://discuss.ai.google.dev/t/update-tensorflow-federated-to-match-tensorflow-macos-2-7-0-and-tensorflow-metal-0-3-0/24092)

<div class="topic-metadata">

**Author:** [@Yingding](https://discuss.ai.google.dev/u/Yingding)\
**Replies:** 9\
**Last updated:** [November 5, 2022, 8:40pm UTC](https://discuss.ai.google.dev/t/update-tensorflow-federated-to-match-tensorflow-macos-2-7-0-and-tensorflow-metal-0-3-0/24092 "2022-11-05T20:40:18Z")

</div>

I was able to use tensorflow-federated==0.19.0 with tensorflow-macos==2.5.0 and tensorflow-metal==0.2.0 on an Intel-based MacBook Pro with GPU. Now tensorflow-macos==2.7.0 and tensorflow-metal==0.3.0 has been upgrade to…

---

## [Tensorflow federated installation](https://discuss.ai.google.dev/t/tensorflow-federated-installation/30842)

<div class="topic-metadata">

**Author:** [@Amir\_Anees](https://discuss.ai.google.dev/u/Amir_Anees)\
**Replies:** 1\
**Last updated:** [November 4, 2022, 2:53pm UTC](https://discuss.ai.google.dev/t/tensorflow-federated-installation/30842 "2022-11-04T14:53:46Z")

</div>

Hi… I am a beginner in Tensorflow federated (in Python too)… I am having this difficulty in installing Tensorflow federated… I am running the following commands as suggested by the official site: pip install --upgrade t…

---

## [Federated CSV dataset](https://discuss.ai.google.dev/t/federated-csv-dataset/31984)

<div class="topic-metadata">

**Author:** [@Reem\_Alwani](https://discuss.ai.google.dev/u/Reem_Alwani)\
**Replies:** 3\
**Last updated:** [August 17, 2022, 8:13pm UTC](https://discuss.ai.google.dev/t/federated-csv-dataset/31984 "2022-08-17T20:13:31Z")

</div>

I am building a federated learning model, but I want to use my own dataset, which is represented in a CSV file. any idea how can I use this data for simulation? and consider it distributed? since all of the tutorials a…

---

## [Meeting notes from 8/11/2022](https://discuss.ai.google.dev/t/meeting-notes-from-8-11-2022/23902)

<div class="topic-metadata">

**Author:** [@krzys\_ostrowski](https://discuss.ai.google.dev/u/krzys_ostrowski)\
**Replies:** 0\
**Last updated:** [August 11, 2022, 10:12pm UTC](https://discuss.ai.google.dev/t/meeting-notes-from-8-11-2022/23902 "2022-08-11T22:12:16Z")

</div>

Today’s discussion focused on scenarios where silos can’t have ingress points, but could contact a public server endpoint, and task queue-like approaches taken by other platforms that could be ported to TFF as a new comp…

[Next page](https://discuss.ai.google.dev/tag/federated/36.md?match_all_tags=true&page=1&tags%5B%5D=federated)
