HN user

hikarudo

487 karma
Posts1
Comments184
View on HN
Mistral OCR 4 28 days ago

Fun fact: one of Yann LeCun's first 'deep learning' projects was on OCR for postal codes (MNIST).

It's not a market failure, it's just supply and demand. There are many computer components competing for the same resources (fabs, wafers). Demand for GPUs, RAM etc. has increased a lot due to AI, but supply is still the same due to new fabs being huge investments that take years to build. Of course the price goes up.

Once you reach this stage, the only escape is to first cover everything with tests and then meticulously fix bugs

The exact same approach is recommended in the book "Working effectively with legacy code" by Michael Feathers, with several techniques on how to do it. He describes legacy code as 'code with no tests'.

One trick I use all the time:

You're typing a long command, then before running it you remember you have to do some stuff first. Instead of Ctrl-C to cancel it, you push it to history in a disabled form.

Prepend the line with # to comment it, run the commented line so it gets added to history, do whatever it is you remembered, then up arrow to retrieve the first command.

$ long_command

<Home, #>

$ #long_command

<Enter>

$ stuff_1 $ stuff_2

<Up arrow a few times>

$ #long_command

<home, del>

$ long_command

I used a similar setup for a while: Obsidian for taking notes in markdown, and vscode for coding.

Eventually I moved to using vscode for both. My gigantic notes.md file is always open in tab 1, so I can go to it immediately with Ctrl + 1.

Finding notes in a single file is easier for me than finding them in a bazillion tiny files. And there's less friction whenever I need to make a note (no need to create and name a new file).

PyTorch 1.10 5 years ago

PyTorch's serialized models are just Python pickle files. So to load those you need the original classes that were used to build the model. By converting to ONNX you get rid of those dependencies.