PrivateGPT

最近GPT相关的开源项目层出不穷,感觉有段时间每天都有几个不同版本的XXGPT出现。生活中我已经时常用到ChatGPT了,虽然答案不保证正确,但多数情况下ChatGPT可以给出来正确的方向。

Bin Packing 问题

再次感觉到很多时候,实践中遇到的问题,合适地抽象出来之后,很有可能只是某个很经典问题的特例。新的问题并不多。

Minimalist-Style Demo of Running Neural Networks in Web Browser

This demo shows how to run a pre-trained neural networks in web-browser. The user would first download the pre-trained style transfer model to local by opening up the webpage. Then everything will get processed locally without accessing any remote resource. The user can then open-up a picture from their hard drive and click "run" to

A PyTorch GPU Memory Leak Example

I ran into this GPU memory leak issue when building a PyTorch training pipeline. After spending quite some time, I finally figured out this minimal reproducible example. Kicking off the training, it shows constantly increasing allocated GPU memory. This “AverageMeter” has been used in many popular repositories (e.g., https://github.com/facebookresearch/moco). It’s by-design tracking the average of

Factfulness

...一分为二就是一个常见的误区,非黑即白通常是片面的论断、事物处在的阶段不会是只有低和高,一定有中间的过渡状态。而事实上处于中间状态的可能是大多数。这里作者以发展中国家和发达国家举例,虽然这个概念大家经常提,但是从各个维度看各个国家的指标,其实大多数国家是处于两者之间的。作者提到可以尝试把两段改成四段,不仅限于这个概念,常常会让我们注意到大多数所处的位置。