3 ms·
Contrary to what the title says, this is note a pure Pyhon + numpy implementation: in fact it also imports einops, transformers and torch. For me pure X means:
by ptspts 2y ago
Contrary to what the title says, this is note a pure Pyhon + numpy implementation: in fact it also imports einops, transformers and torch.
For me pure X means: to use this, all you have to install is X.
- qwertox 2y agoI was struggling with the fairness of your comment because the libraries are not used as a replacement to NumPy, but to ease dealing with the data. This made me check and it turns out that: "Yes, the comment you mentioned is fair and reflects a common perspective in the programming and data science communities regarding the usage of "pure" implementations. When someone refers to a "pure X implementation," the typical expectation is that the implementation will rely solely on the functionalities of library X, without introducing dependencies from other libraries or frameworks." TIL.
- rsfern 2y agoI don’t see a PyTorch import, and the transformers import is just for the tokenizer which I don’t really consider a nontrivial part of mamba So it’s just numpy and einops, which is pretty cool. I guess you could probably rewrite all the einops stuff in pure numpy if you want to trade readable code for eliminating the einops dependency Edit: found the torch import, but it’s just for a single torch.load to deserialize some data
- TeMPOraL 2y ago> Edit: found the torch import, but it’s just for a single torch.load to deserialize some data Torch is quite heavy though, isn't it? All for that one deserialization call?
- deleted 2y ago[deleted]
- nobodywillobsrv 2y agoYes exactly. It's classic mis-selling.