main
[misc] update pre-commit and run all files (#4752)
[fx] refactor memory utils and extend shard utils. (#1754)