News for hackers. Stuff that matters.
Re:Lo-Fi Player by rjzzleep on Wednesday September 02, 2020 @04:36AM (#24351206)
While this is cool I have a general question to people here:

How do other people here handle tensorflow as a python dependency? People use it like it's any other dependency, but it frequently adds unnamed amounts of dependencies, creates conflicts every now and then, is just massively huge and for the longest time of its 1.x existence was constantly breaking some PEP's causing problems with third party tools. It's kind of poison to custom docker files. How do you guys handle this situation? This isn't really my responsibility but whenever I deal with ML engineers doing tensorflow stuff I feel like I'm immediately also a plumber.

Re:Lo-Fi Player by GistNoesis on Wednesday September 02, 2020 @04:42AM (#24351232)
Python Virtual-env You create one new virtual environment for each different project, and you throw them away and build them up again once a problem appear.
Re:Lo-Fi Player by 6ak74rfy on Wednesday September 02, 2020 @11:53AM (#24354422)
Yep, always use Python virtual environments to manage dependencies. Here are my notes around that: https://ketanvijayvargiya.com/notes/39-python-setup/
Re:Lo-Fi Player by JosephRedfern on Wednesday September 02, 2020 @04:38AM (#24351217)
I tend to use Anaconda where possible, makes such dependencies easier to manage (but still not trivial... though you can change cuda runtimes with Anaconda, the actual driver is a system-wide dependency, of course).
Re:Lo-Fi Player by mark_l_watson on Wednesday September 02, 2020 @09:38AM (#24353086)
On my MacBook, I create a separate conda (Anaconda) environment for TensorFlow.

A few years ago I bought a System76 laptop with a 1080 GPU. I rely on the System76 update system to keep Python + CUDA + TensorFlow all up to date. I manually install PyTorch for when I need it. This works well because I only use this laptop for deep learning.

Re:Lo-Fi Player by ccmonnett on Wednesday September 02, 2020 @12:17PM (#24354679)
Have you dealt with this in production? One of our data scientists suggested pulling in TF as a dependency into a mainline prod service just yesterday and there were some suspicions from ops people that it could cause trouble but nothing concrete. Would appreciate your perspective on that if you don't mind!
Re:Lo-Fi Player by nunja on Wednesday September 02, 2020 @06:23AM (#24351764)
Virtual envs are very practical for this as it does not mess up with the global python env. Also for inference / production, I just export my models to ONNX format which is more easy to work with thanks the available runtimes: ONNX Runtime for C++ or ONNX.js.