Skip to content

December 2023

[Linux] Explanation Of Sticky Bit (chmod 1777)

Last Updated on 2023-12-04 by Clay

Introduction

The sticky bit is an interesting application in Unix and Unix-like systems. It represents a special permission setting that offers more nuanced operations for files and directories. Most are familiar with file permissions, categorized into three distinct types: rwx (read, write, execute). The sticky bit goes a step further by regulating the rights to "delete" and "rename" files.

Read More »[Linux] Explanation Of Sticky Bit (chmod 1777)

[Solved][PyTorch] Model State Dict Files Have The "_orig_mod" Prefix After Compiling

Last Updated on 2023-12-04 by Clay

Problem

In early 2023, The pytorch 2.0 version added a new function that is torch.compile(), It cloud be accelerate the speed of model training or inference. By using precision training with compiling, it always make my training time reduce to half.

Read More »[Solved][PyTorch] Model State Dict Files Have The "_orig_mod" Prefix After Compiling

[Solved] RuntimeError: OrderedDict mutated during iteration - OrderedDict Could Not Changed

Last Updated on 2023-12-02 by Clay

Problem

Today I tried to load the model weights file after torch.compile(), and then I found the weights is stored by OrderedDict data structure. This data structure is an ordered sequence, in other word its content needs to follow the order.

Read More »[Solved] RuntimeError: OrderedDict mutated during iteration - OrderedDict Could Not Changed