120 karma · joined Nov 22, 2019 (7y ago) · 85 submissions
comment 4d ago · link · parent
I had a known-broken[1] keyboard (Del Key on the Framework 13" AMD, from Batch 3, October 2023) and contacted support with it.
Apparently their support had some e-mail viewer breaking on ">" (dropping everything after, which is terrible when quoting with text mode E-Mail). That drove me crazy because they kept asking for the same thing over and over again. I reported it on the forum[2] but did not receive any response.
When I finally figured out their email bug, they asked me to switch OS and record the keyboard not working on video. I ended up buying the replacement keyboard because that seemed better for my sanity.
I did replace the CPU fan as well, and it worked well, even a bit smoother than with ThinkPads. I also replaced memory. I like their documentation for stuff like this.
Recently, the camera has become unreliable, quite likely the routing of wires through the hinge breaks the cables after I opened and closed the laptop a few times.
I still mostly like the hardware and the philosophy.
1. https://community.frame.work/t/solved-broken-delete-key-like... 2. https://community.frame.work/t/support-e-mail/75541
6.
The fiery, deadly crashes involving the Tesla Cybertruck(theguardian.com ↗)
13 points · by t-vi · 8mo ago · 4 comments
comment 1y ago · link · parent
comment 1y ago · link · parent
Interestingly, there is a cuBLAS 13.1 whl on PyPI, not sure what that does.
comment 1y ago · link · parent
For example, Alex Graves's (great! with attention) 2013 paper "Sequence Generation with Recurrent Neural Networks" has this line:
One difficulty when training LSTM with the full gradient is that the derivatives sometimes become excessively large, leading to numerical problems. To prevent this, all the experiments in this paper clipped the derivative of the loss with respect to the network inputs to the LSTM layers (before the sigmoid and tanh functions are applied) to lie within a predefined range.
with this footnote:
In fact this technique was used in all my previous papers on LSTM, and in my publicly available LSTM code, but I forgot to mention it anywhere—mea culpa.
That said, backpropagation seems important enough to me that I once did a specialized videocourse just about PyTorch (1.x) autograd.
10.
AMD and OpenAI Announce Strategic Partnership to Deploy 6 Gigawatts of AMD GPUs(amd.com ↗)
4 points · by t-vi · 1y ago · 1 comment
11.
The Buchstabenmuseum Berlin is closing(buchstabenmuseum.de ↗)
204 points · by t-vi · 1y ago · 69 comments
comment 1y ago · link · parent
In Thunder[1], a PyTorch to Python JIT compiler for optimizing DL models, we are maintaining a bytecode interpreter covering 3.10-3.12 (and 3.13 soon) for our jit. That allows to run Python code while re-directing arbitrary function calls and operations but is quite a bit slower than CPython.
While the bytecode changes (and sometimes it is a back-and-forth for example in the call handling), it seems totally good once you embrace that there will be differences between Python versions.
What has been a large change is the new zero cost (in the happy path) exception handling, but I can totally why Python did that change to that from setting up try-block frames.
I will say that I was happy not to support Python <= 3.9 as changes were a lot more involved there (the bytecode format itself etc.).
Of course, working on this has also means knowing otherwise useless Python trivia afterwards. One of my favorites is how this works:
l = [1, 2, 3]
l[-1] += l.pop()
print(l)
1. https://github.com/Lightning-AI/lightning-thunder/comment 2y ago · link · parent
comment 2y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
If we follow the ordinary chain rule (for a single coordinate if you want) through the edges of the computational (DAG) graph, we get the right thing in each step.
The only other rule you need is that "if you use one variable several times in a calculation (i.e. several edges from(fw)/to(bw) the same node), you need to add the gradients computed for each", but IMHO that is pretty basic and intuitive, too. (So if you plug in z for both x and y into f(x, y), you have d/dz f(z, z) = f_x(z, z) + f_y(z, z), where the subscript indicates partial derivative.)
To me this seems both mathematically simpler than mixing the two into a "more than chain rule" thing and closer to what is actually going on algorithmically in a given implementation (the one I'm most familiar with is probably PyTorch's).
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
A more proper solution could be to chain the generator expressions: with
lines = ["a,b", "c,d"]
you could do ((a,b) for a, b in (l.split(',') for l in lines))comment 3y ago · link · parent
https://karpathy.github.io/2019/04/25/recipe/
but the general idea of "get something that can overfit first" is probably pretty good.
In my experience getting the data right is probably the most underappreciated thing. Karpathy has data as step one, but in my experience, also data representation and sampling strategy does quite the miracle.
In Part II of our book we do an end-to-end project including e.g. a moment where nothing works until we crop around "regions of interest" to balance the per-pixel classes in the training data for the UNet. This has been something I have pasted into the PyTorch forums every now and then, too.
comment 3y ago · link · parent
Then (as far as I know), in contrast to generation, training is done on the entire output of the transformer (so all tokens of the full input) rather than serially token-by-token (in the RNN days, this was called teacher-forcing), so that may give you a significant boost in the tokens per second rate over generation.
comment 3y ago · link · parent