Comments (9)
If you import TF yourself whats your output from:
physical_devices = tf.config.list_physical_devices('GPU')
print("Num GPUs:", len(physical_devices))
and also
tf.test.gpu_device_name()
from gretel-synthetics.
Here is the output:
physical_devices = tf.config.list_physical_devices('GPU')
print("Num GPUs:", len(physical_devices))
Num GPUs: 1
tf.test.gpu_device_name()
'/device:GPU:0'
If you import TF yourself whats your output from:
physical_devices = tf.config.list_physical_devices('GPU') print("Num GPUs:", len(physical_devices))
Num GPUs: 1
and also
tf.test.gpu_device_name()
'/device:GPU:0'
thanks
from gretel-synthetics.
Thanks, did you run this in the example notebook that you were trying to run or somewhere else?
Also, that warning doesn't change anything under the hood, it just prints the warning in the event the tf.test.gpu_device_name()
does not return the expected value. The model should still start to train regardless. If you let the model train, how long does each epoch take to run?
from gretel-synthetics.
Thanks, did you run this in the example notebook that you were trying to run or somewhere else?
Also, that warning doesn't change anything under the hood, it just prints the warning in the event the
tf.test.gpu_device_name()
does not return the expected value. The model should still start to train regardless. If you let the model train, how long does each epoch take to run?
Ok my bad - for some reason the problem is linked to my conda environment. I had run your commands in the Python3 environment. If I run them in the Gretel environment (created as above) I get 'Num GPUs: 0'.
Would you know why TF is not seeing the GPU?
Thanks
from gretel-synthetics.
I'm not sure, I've personally only used a virtualenv
to run things. @zredlined have you run into this with conda or had to do any other steps to allow the GPU to be accessed in an environment like that?
from gretel-synthetics.
Tensorflow versions are coded to different CUDA library versions. Conda's pretty good at handling this- so we usually recommend setting up tensorflow through Conda.
Here's a link to the pinned TF->CUDA versions.
Try installing dependencies with Conda.
conda install tensorflow=2.3 cudatoolkit=10.1
pip install gretel-synthetics
from gretel-synthetics.
still doesn't work. Anyway it's a tensorflow issue apparently (and not Gretel) as the GPU is not recognized after I install just tensorflow. I'll investigate it further. Thank you
from gretel-synthetics.
Looks like there might be some dependency mismatches in the latest Conda scripts. Here are instructions for building a tensorflow==2.4
virtual environment with Conda, gretel-synthetics, and GPU. I tested on AWS running a debian image. Hope this helps!
First, setup your Conda environment
conda create --name tf --python=3.8
conda activate tf
Copy this Gist using the TensorFlow team's latest instructions into a shell script named setup_deps.sh
: https://gist.github.com/zredlined/dc7a0cb5ca72d58a8cc29ce6eee441cf
Next, run the setup script
sh setup_deps.sh
from gretel-synthetics.
sh
setup_deps.sh
thanks @zredlined - that worked. I've been on it for the past 3 hours and was going to give up. I tested on AzureML and working fine. Cheers
from gretel-synthetics.
Related Issues (20)
- timeseries_dgan.ipynb example - error from train_numpy HOT 2
- TypeError: __init__() got an unexpected keyword argument 'prefetch_factor' HOT 1
- Poor training results HOT 6
- TooManyInvalidError: Maximum number of invalid lines reached! HOT 3
- [BUG] train_numpy() got multiple values for argument 'feature_types' - dgan HOT 4
- [FR] Generation based on given attributes HOT 2
- [FR / BUG] HOT 2
- Bug HOT 5
- Sample_len Value HOT 2
- Results about DGAN
- [BUG] : Loading a trained model and generating synthetic data throws an error HOT 8
- About DoppelGANger training results HOT 1
- [BUG]: Outdated category_encoders HOT 3
- List index out of range HOT 4
- ValueError: multiprocessing_context option should specify a valid start method in ['spawn'], but got multiprocessing_context='fork'[FR / BUG] HOT 1
- [BUG] example notebook error HOT 3
- Marketoptiontend-analysis
- DGAN for ECG dataset HOT 3
- Logging the Performance of Time series DGAN,
- [BUG] ModuleNotFoundError: No module named 'gretel_helpers' HOT 1
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 gretel-synthetics.