Comments (7)
TensorFlow Federated was a dependency in earlier versions of FedJAX. It is no longer needed at HEAD, which can be installed via pip install --upgrade git+https://github.com/google/{fed,}jax.git
. We will soon push out a new release to PyPI (our upcoming release is depending on a new JAX release because of the recent renaming of jax.experimental
).
We actually do use TensorFlow in some dataset preprocessing logic for stackoverflow and cifar100, as well as some IO operations here and there, but forgot to list TensorFlow in requirements. Since most part of FedJAX should function without TensorFlow, if not depending on TensorFlow is important to you, there is a way of making things work.
from fedjax.
The issue that I am having is that when installing fedjax
via pip
using the above is that it pulls in TensorFlow 2.3 which requires CUDA 10.1 while Jax itself strongly recommends 11.1+ because of known bugs in CUDA 10.1.
from fedjax.
I was able to solve the issue by explicitly pinning the version of TensorFlow required to be 2.6. This allows me to install FedJax, Jax, and TensorFlow together with CUDA 11.2 and things appear to work (although I can claim super thorough testing). Might want to consider putting a lower bound on the TF version in the setup.py
file.
from fedjax.
Sorry about the inconvenience caused by this.
FedJAX actually only needs the CPU only portion of TensorFlow, which can be installed with pip as tensorflow-cpu
. Unfortunately setuptools doesn't allow us to specify a "this or that" dependency requirement, and if we list tensorflow-cpu
as one of the requirements, pip will silently overwrite people's existing standard tensorflow installation, which is highly undesirable. Therefore we are moving towards a direction to make tensorflow/tensorflow-cpu an optional dependency so that the user can choose which one to install.
from fedjax.
The issue that I am having is that when installing
fedjax
viapip
using the above is that it pulls in TensorFlow 2.3 which requires CUDA 10.1 while Jax itself strongly recommends 11.1+ because of known bugs in CUDA 10.1.
I suspect TF 2.3 was being installed because your pip version was too old. That's why we recommend upgrading pip first before installing FedJAX in our README.
from fedjax.
from fedjax.
We pushed out v0.0.8 last night. TensorFlow Federated is no longer a dependency, and TensorFlow is now an optional dependency. Installing fedjax via pip will not pull TensorFlow, and an exception with instructions for installing TensorFlow will be printed when a feature requiring TensorFlow is being used.
Please feel free to try out the new release, and let us know if you still run into issues.
from fedjax.
Related Issues (17)
- Clarifying the meaning of "weight" HOT 1
- Centralized (server-only) algorithm HOT 1
- Implementing SCAFFOLD HOT 2
- Feature request: Convert standard dataset into a federated dataset HOT 5
- PatentMime^
- Full EMNIST example does not exhibit parallelization HOT 2
- How to create a validation dataset? HOT 4
- Problem of Quick Start in Readme.md HOT 2
- Support for haiku models with non-trainable state HOT 2
- Support for gldv2 and inaturalist datasets HOT 7
- Support for manually modifying client/server learning rate HOT 1
- CIFAR 100 Questions HOT 5
- Implement standard CIFAR-100 model in fedjax.models.cifar100 HOT 1
- Add support for stateful clients HOT 8
- Error of the Stackoverflow Tokernizer example HOT 1
- External contributions? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fedjax.