{"by":"kir-gadjello","descendants":8,"id":35013939,"kids":[35014582,35014466,35015921,35014816,35015469],"score":38,"text":"This is a low-level opensource library I developed for my own use and decided to share, as it makes it possible to process large checkpoints of neural networks without renting high-RAM instances, on a regular PC. It replaces torch.load() with a custom function that produces a dictionary that materializes tensors on the fly. Compared to other solutions it doesn&#x27;t require sharding or re-encoding checkpoints and uses them completely as-is.<p>It is a foundation to make it possible to run inference and compress language models and other large models one layer at a time - in principle, even one tensor at a time.<p>I describe the rationale and technical details of the library&#x27;s design in the blogpost: <a href=\"https:&#x2F;&#x2F;kir-gadjello.github.io&#x2F;posts&#x2F;zipslicer&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;kir-gadjello.github.io&#x2F;posts&#x2F;zipslicer&#x2F;</a>","time":1677871783,"title":"Show HN: Zipslicer, a library for loading LLM checkpoints on consumer hardware","type":"story","url":"https://github.com/kir-gadjello/zipslicer"}