Categories
Misc

Best way to improve inference throughput

I see multiple options on the internet to optimize inference, and i don’t know which would be the best fit for me. My goal is to maximize throughput on GPU, and preferably reduce GPU memory usage.

I have a reinforcement learning project, where i have multiple cpu processes generating input data in batches and sending them over to a single GPU for inference. Each process loads the same resnet model with two different weight configurations at a time. The weights used get updated about every 30 minutes and get distributed between the processes. I use Python and Tensorflow 2.7 on Windows(don’t judge) and the only optimization is use right now is the built-in XLA optimizations. My GPU does not support FP-16.

I have seen TensorRT being suggested to optimize inference, i have also seen TensorflowLite, Intel has an optimization tool too, and then there is Tensorflow Serve. What option do you think would fit my needs best?

submitted by /u/LikvidJozsi
[visit reddit] [comments]

Categories
Misc

VentureBeat: How to discover AI code, know-how with CatalyzeX

VentureBeat: How to discover AI code, know-how with CatalyzeX submitted by /u/fullerhouse570
[visit reddit] [comments]
Categories
Misc

Detecting CUDA libraries on Windows

Detecting CUDA libraries on Windows

So I’ve had things working fine on linux and now i’m trying to set up the same on windows so I can use the newer gpu in a new machine. The problem is that after install of both CUDA toolkit and cuDNN, the libraries are never picked up even after several restarts. I’ve searched quite a bit and haven’t turned up anything that works, and don’t know of a way to get Windows to look in the new PATH variable that the installer did properly set up.

These are the offending libraries

One thing to note is that when I copy the offending dynamic libs to System32, my run on the command line picks up the libraries and detects my gpu as it should. So something’s happening with searching for them in another PATH, I just don’t know how to fix it. This sort of thing rarely happens on linux and even when it does, ldconfig is usually the answer.

Update: I tried something I didn’t think would work, but it turns out it did. I originally downloaded python from the windows app store because I figured it would save some time and python using scoop as the installer wasn’t working. I uninstalled the windows app store version of Python 3.8 and installed the same version from the python organization’s website, and now everything is working.

I’m not sure what the issue is with windows app store downloads, but i’ve had an incident with Slack via the same method. The issue with Slack was completely different, but from what I can tell, python was installed in a different location from the windows store than it normally would’ve been, and I think that contributed somehow. On linux, there’s 4 folders anything could ever be installed to automatically by convention, so we don’t run into this specific problem on the platform. That’s why troubleshooting this was so tiresome.

submitted by /u/CrashOverride332
[visit reddit] [comments]

Categories
Misc

How to retrofit an existing TF setup to use an onboard GPU?

Hi all,

I’ve got a Lenovo Legion laptop with an onboard GeForce GTX 1660 GPU. Here’s some setup details:

– Ubuntu 21.10

– Python 3.9.7

– using pip (not Conda)

– Tensorflow 2.7.0 (from Python: “tf.__version__” returns 2.7.0)

– TF doesn’t yet recognize GPU existence: “tf.config.list_physical_devices(‘GPU’) returns []

– I think I have CUDA installed: (cat /proc/driver/nvidia/version):

NVRM version: NVIDIA UNIX x86_64 Kernel Module 495.29.05 Thu Sep 30 16:00:29 UTC 2021

GCC version: gcc version 11.2.0 (Ubuntu 11.2.0-7ubuntu2)

I’m doing a TensorFlow tutorial (with PyTorch to come) & have reached a point where I need the GPU. How can I get TF to recognize it?

Before you ask: yes, I *could* download a Docker container or use Colab. I’m going this route because it seems dumb to have a GPU at my fingertips and not use it.

Thanks all & HNY…

submitted by /u/PullThisFinger
[visit reddit] [comments]

Categories
Misc

Advent of Code 2021 in pure TensorFlow – day 9. Image gradients, 4-neighborhood, and flood fill algorithms in pure TensorFlow.

Advent of Code 2021 in pure TensorFlow - day 9. Image gradients, 4-neighborhood, and flood fill algorithms in pure TensorFlow. submitted by /u/pgaleone
[visit reddit] [comments]
Categories
Misc

Advent of Code 2021 in pure TensorFlow – day 8

Advent of Code 2021 in pure TensorFlow - day 8 submitted by /u/pgaleone
[visit reddit] [comments]
Categories
Misc

Someone please help

I’ve been trying to install tensorflow on vscode for 2 hours now and no matter what I do It wont do it. If someone knows how to do so can they dm me and help.

submitted by /u/Unknown_ZZ
[visit reddit] [comments]

Categories
Misc

5 Ways AI Aimed to Improve the World in 2021

Not so long ago, searching for information could lead to a library to scan endless volumes or even tediously sift through microfilm. Clearly, technology is making the world a better place. Scientists, researchers, developers and companies have been on a quest to solve some of the world’s most pressing problems. Only now they’re accelerating their Read article >

The post 5 Ways AI Aimed to Improve the World in 2021 appeared first on The Official NVIDIA Blog.

Categories
Misc

Time Distributed Dense Layer

Time Distributed Dense Layer

I need to create the model on the image attached. However, I could not achieve creating a time distributed dense layer. I got a measure of errors and at the end, I always got ‘please initialize your layer with tf.keras.layers.Layer. How can I achieve this? Can you please help me?

https://preview.redd.it/lidtmo8tku881.png?width=1055&format=png&auto=webp&s=7c39d06fa104acdc6f91a2f87c99725573b2d130

submitted by /u/kursat44
[visit reddit] [comments]

Categories
Misc

Predictions using Tensorflow

hello everyone, I am new to Tensorflow and I try to find a tutorial or something that helps to create new data. My thought was to take the data I got (data of my university from the past 30 years) and look how the AI thinks the university will look like in the next 30 year’s ( so 2052). My main problem is that all the tutorials I did allways say it’s predicting, but actually it’s not exactly what I want. Most tutorial predictions show how accurate an AI can predict data to already existing data. But the thing I want is to create new data, so that I can compare the data my AI created with the data when they get measured. As example the number of students from 1992 till 2021 are already known, but I want the AI to tell me what it calculated fur the years 2022 to 2052. The AI already reads the data and is also pretty accurate, but I’m kinda lost creating the new values. Sorry if I messed up explaining myself but I really hope someone can help me here.

submitted by /u/Blax363
[visit reddit] [comments]