Weightlens

Weightlens

1 5 11
calendar_todayschedule1 min read

Weightlens is here!

If you've worked with models and checkpoints, you will know how frustrating it is to deal with partial downloads, corrupted .pth files, and the list goes on, especially if it's a large project.

To spare the burden for everyone, I have created a small tool that allows you to analyze a model's checkpoints where you can:

  1. detect corruption (partial failures, tensor access failures, etc)
  2. extract per-layer metrics (mean, std, l2 norm, etc)
  3. get global distribution stats which are properly streamed and won't break your computer
  4. deterministic diagnostics for unhealthy layers.

To try it, run pip install weightlens into your virtual environment and run lens analyze <filename>.pth and check it out!

Please do give it a star if you like it!

I would love your thoughts on testing this out and getting your feedback.

2 Comments

1 vote
0
🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.

More Posts

The Sovereign Vault — A Comprehensive Guide to Protocol-Driven AI

Ken W. Algerverified - Jun 4

Everyone says DeepSeek is cheaper, but I got tired of guessing the exact math. So I built a calculat

abarth23 - Apr 27

I’m a Senior Dev and I’ve Forgotten How to Think Without a Prompt

Karol Modelski - Mar 19

I Wrote a Script to Fix Audible's Unreadable PDF Filenames

snapsynapseverified - Apr 20

Your AI Doesn't Just Write Tests. It Runs Them Too.

Kevin Martinez - May 12
chevron_left
181 Points17 Badges
3Posts
3Comments
2Connections
ML systems engineering.

Related Jobs

View all jobs →

Commenters (This Week)

2 comments
2 comments
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!