HN user

bwasti

336 karma
Posts50
Comments57
View on HN
mebm.xyz 5y ago

Show HN: Mebm.xyz – an open source online video editor

bwasti
1pts2
jott.live 5y ago

Write-Up on Building a Browser-Based Video Editor in Vanilla JavaScript

bwasti
1pts0
bwasti.github.io 5y ago

Show HN: A simple browser based video editor (desktop only)

bwasti
25pts5
jott.live 5y ago

Viewing Euclidean Distance Queries as matrix multiplications

bwasti
1pts0
github.com 5y ago

SIMD FMA Benchmark for MacBook M1/Intel Chips Done in Assembly

bwasti
2pts0
github.com 5y ago

Lofii – text based video chat

bwasti
3pts2
jott.live 5y ago

Maximal Usable Video Compression Experiment: face and voice to text

bwasti
2pts0
www.facebook.com 5y ago

PyTorch Developer Day 2020 [stream]

bwasti
2pts0
github.com 6y ago

Simple tool for interactively profiling JIT'd code

bwasti
1pts0
jott.live 6y ago

Live feeds from various traffic cameras in NYC

bwasti
4pts0
data.iana.org 6y ago

TLDs Alphabetically by Domain

bwasti
2pts0
github.com 6y ago

Show HN: Lightweight differentiable multi-dimensional arrays

bwasti
1pts0
en.wikipedia.org 6y ago

Flash Cut

bwasti
1pts0
jott.live 6y ago

List of words that can be written in hexadecimal

bwasti
2pts0
jott.live 6y ago

Julia

bwasti
3pts0
github.com 6y ago

Show HN: Use Julia Functions as PyTorch Operators

bwasti
9pts0
jott.live 7y ago

Writing a Toy Back End Compiler for PyTorch

bwasti
1pts0
jott.live 7y ago

Show HN: Writing a Back End Compiler for PyTorch

bwasti
2pts0
tvm.ai 7y ago

Integrating the TVM Deep Learning Compiler into PyTorch

bwasti
18pts1
twitter.com 7y ago

Quora has anti-vaccine answers displayed first for innocent questions

bwasti
11pts0
www.botorch.org 7y ago

BoTorch: Bayesian Optimization in PyTorch

bwasti
6pts0
jott.live 7y ago

Show HN: Messing with Telnet

bwasti
77pts34
www.youtube.com 7y ago

Steve Jobs iPhone Presentation (2007)

bwasti
1pts0
github.com 7y ago

Show HN: Python memoization across program runs

bwasti
5pts0
jott.live 7y ago

Show HN: A website to create simple gifs with JavaScript

bwasti
3pts0
github.com 7y ago

Show HN: Lazy – A Python library for rapidly developing lazy interfaces

bwasti
10pts4
jott.live 7y ago

The Unix Philosophy

bwasti
2pts0
jott.live 7y ago

The Potato Paradox

bwasti
1pts0
jott.live 7y ago

How the Riemann zeta function is connected to prime numbers

bwasti
2pts0
jott.live 7y ago

7 is the largest prime followed by a cubic number

bwasti
69pts27
Bitcoin Is Screwed 5 years ago

Mining Bitcoin can be done with pencil, paper and the ability to communicate with others also interested in Bitcoin.

A popular post on r/wallstreetbets[1] summarizes Michael Burry’s thesis that CPI (consumer price index) is unaffected as long as inflation isn’t directly impacting consumers of the bag of goods that make up CPI. When there are fewer jobs, these consumers aren’t able to influence the prices of these goods (because they aren’t being paid inflated wages), and the metric commonly used to evaluate inflation is unchanged.

[1] https://www.reddit.com/r/wallstreetbets/comments/lr8h1v/why_...

GNU Units 6 years ago

It can also handle nonlinear conversions such as Fahrenheit to Celsius

huh?

I've found the M1's 128bit instructions to be quite fast. My M1 MacBook Air can hit 90GFlops on a single core. My 2019 16" MacBook Pro is only 1.5 times faster at 135GFlops per core, despite double the vector width.

Benchmark here: https://github.com/bwasti/mac_benchmark

If anyone has the new 2020 MBP with AVX512 I'll update the benchmark to include avx512 instructions! I'm very curious about those numbers

Note that this a layout trick and not an algorithmic one. An algorithmic speed up that is good for dense convolutions with small kernels is to use Winograd: https://arxiv.org/abs/1509.09308 For large kernels, implementing an FFT tends to help.

Also worth keeping in mind that many modern networks use depthwise separable convolutions, which are channel wise convolutions (skipping a reduction over the channels, which is a memory bound operation) followed by 1x1 convolutions (which are exactly matrix multiplications with no im2col step).

Why not use tensorflow.js or onnx.js and just do this in the browser/locally? Models have gotten good and this type of classification is very cheap these days. Hitting the network for such a small task is very much overkill

I wrote one article on Medium. I ended up writing my own little version using open source markdown rendering to see how hard it would be to roll my own, https://jott.live

From what I found, there is a lot of stuff Medium does well that is hard to recreate by one's self. Super simple features, like

- rich text editing that isn't ugly

- caching what you're currently working on

- tracking views and who has viewed your article

aren't easy to build and generally aren't worth it unless you write many many articles.

Although I don't like the aggressive account on-boarding and payment models for reading articles, Medium certainly makes life easy for writing articles.

You may want to check out Intel's optimized version of TensorFlow Serving[1] for further improvements (on the order of 2x for ResNet-50[2]).

As an aside, I took into account the resource allocation in the parent comment. The c5.2xlarge has 8 cores, 8GB RAM [3] and does a single fp32 inference in ~17ms. If we chop that down to 4 cores and assume linear scaling we can fathom running ResNet-50 in ~35ms compared to the ~500ms achieved here. I'd recommend comparing to a known baseline rather than a "vanilla setup" to ensure you aren't missing any simple changes that may dramatically improve performance.

[1] https://github.com/IntelAI/models/blob/master/docs/general/t...

[2] https://www.intel.ai/improving-tensorflow-inference-performa...

[3] https://aws.amazon.com/ec2/instance-types/c5/