Better HN
topnewbestaskshowjobs
Log inSign up

briggers

363 karma · joined Apr 29, 2011 (15y ago) · 78 submissions

paul@paulbridger.com
Submissions

1.

PyTorch Memory Tuning(paulbridger.com ↗)

1 points · by briggers · 3y ago · discuss

comment 3y ago · link · parent

Machine learning productionization: https://paulbridger.com

3.

PyTorch Performance Features and How They Interact(paulbridger.com ↗)

3 points · by briggers · 3y ago · discuss

comment 4y ago · link · parent

Absolutely yes.

I write fairly deep ML performance tuning articles at https://paulbridger.com and the (many) hours I've spent on each article have been hugely worth it.

Many people reach out to me via this work, and when we talk they already see me as an expert or already want to work with me.

I need to blog more, thanks for the reminder.

comment 4y ago · link · parent

Before you start optimizing runtime performance: measure, trace, inspect, or whatever is appropriate to understand current performance.

comment 4y ago · link · parent

Perhaps you are looking for something like this?

docker run -d -p 5000:5000 --name registry registry:2

https://docs.docker.com/registry/#:~:text=The%20Registry%20i....

7.

Wombo Dream: prompt-guided generative art(app.wombo.art ↗)

2 points · by briggers · 4y ago · discuss

8.

Solving Machine Learning Performance Anti-Patterns: A Systematic Approach(paulbridger.com ↗)

54 points · by briggers · 5y ago · 1 comment

9.

Solving Machine Learning Performance Anti-Patterns: A Systematic Approach(paulbridger.com ↗)

10 points · by briggers · 5y ago · 2 comments

comment 5y ago · link · parent

I used to love doing this with Clojure, it’s an awesome way to increase productivity by a good chunk.

It’s less about saving the time to re-run something, and more about removing conceptual overhead (I think).

11.

Analyzing the performance of Tensorflow training on M1 Mac Mini and Nvidia V100(wandb.ai ↗)

226 points · by briggers · 5y ago · 91 comments

12.

Object Detection at 2530 FPS with TensorRT and 8-Bit Quantization(paulbridger.com ↗)

9 points · by briggers · 5y ago · discuss

13.

Optimizing models using the PyTorch JIT(lernapparat.de ↗)

1 points · by briggers · 5y ago · discuss

comment 5y ago · link · parent

Yes! I do this and love it. Works locally or via SSH with no difference at all.

15.

Mastering TorchScript: Tracing vs. Scripting, Device Pinning, Graph Modification(paulbridger.com ↗)

7 points · by briggers · 6y ago · discuss

16.

Mastering TorchScript: Tracing vs. Scripting, Device Pinning, Graph Modification(paulbridger.com ↗)

7 points · by briggers · 6y ago · discuss

comment 6y ago · link · parent

Nice one! I've long been interested in the ONNX serving path.

comment 6y ago · link · parent

Yeah. A 2080Ti doesn't fit in your pocket or in your AR glasses but the same techniques and tools scale down.

comment 6y ago · link · parent

BTW, this is pumping the same video file through the network - not just a single file. I don't measure latency, but this is not a deep pipeline so it's easy to calculate.

comment 6y ago · link · parent

Mobile phones definitely since these days most of them have pretty powerful GPUs.

comment 6y ago · link · parent

Great question, now I wish I'd recorded power consumption for all these experiments. Judging from cumulative hours of watching the output of nvidia-smi I've definitely seen a linearish relationship between utilization and power draw (with a non-zero floor of 30-40W).

comment 6y ago · link · parent

Very practical question :) Exactly as you say, multi-stream throughput. Also for faster than realtime offline processing of video. Check the caveats section at the end of the post - DeepStream is probably not well suited to high throughput single-stream inference.

23.

Object Detection at 1840 FPS with TorchScript, TensorRT and DeepStream(paulbridger.com ↗)

162 points · by briggers · 6y ago · 55 comments

comment 6y ago · link · parent

I looked into the GIL saturation as measured with gil_load (https://github.com/chrisjbillington/gil_load), but perhaps I should have included more numbers here.

To me, seeing the GIL held for 40% of time and significant time spent waiting on GIL by other threads was a fairly strong indicator. Keen to hear your thoughts/experience on it.

comment 6y ago · link · parent

Great point - dependencies between frames are inherently problematic for many of these techniques.

Everything lostdog says. I've had experience speeding up tracking immensely using the same big hammer I talk about in the article - moving the larger parts of tracking compute to GPU.

Also, in a tracking pipeline you'll generally have the big compute on pixels done up front. Object detection and ReID take the bulk of the compute and can be easily batched and run in parallel. The results (metadata) can then be fed into a more serial process (but still doing the N<->N ReID comparisons on GPU).

comment 6y ago · link · parent

Author here. As other commenters are saying, the Pytorch JIT and torchscript might be your friend here.

Alternatively, there are some quite fast OSS libraries for object detection. Nvidia's retinanet will export to a TensorRT engine which can be used with DeepStream.

comment 6y ago · link · parent

Author here. I really appreciate your feedback.

Completely agree that almost none of the SoTA github repos are really ready for production and making this stuff work can be pretty hard.

Getting this done on C++ and moving up to the next level of performance is the focus of my next article :)

28.

Object Detection from 9 FPS to 650 FPS(paulbridger.com ↗)

165 points · by briggers · 6y ago · 38 comments

comment 6y ago · link · parent

Nice one.

More useful to me would be something similar that operates on tensors on the GPU.

Doing image annotations on host/CPU often becomes a bottleneck.

comment 6y ago · link · parent

It’s important to note this is just within visual range dogfighting/BFM. Also just guns, and also perfect enemy state information. Important progress but it’s super early. Beyond visual range/BVR, coordination with wingmen and many other higher-level tasks still to come (or are still secret).
123