Skip to content

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

[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

Installation Of Neo4j Graph Database And Use It By Python

Last Updated on 2023-11-27 by Clay

Introduction

Neo4j is a graph database. Unlike traditional databases, the focus of a graph database is the “graph”, which means the relationships and connections between nodes (entities). Each node can represent an object (such as people, things, places…), and edges represent the relationships between nodes (such as friends, owns, located at…)

Read More »Installation Of Neo4j Graph Database And Use It By Python

[Linux] Installation And Use Of Open Source Anti-virus Tool: ClamAV

Last Updated on 2023-11-20 by Clay

Introduction

Although Linux is reputed to be less susceptible to viruses distributed by hackers, it still remains a highly valuable and economically efficient operating system, particularly as a stable server or development environment. Consequently, Linux is not immune to malware or hacker attacks, albeit less frequent than in Windows systems.

Read More »[Linux] Installation And Use Of Open Source Anti-virus Tool: ClamAV

[Linux] Increase Swap Space Using Commands to Prevent Memory Exhaustion

Last Updated on 2023-12-10 by Clay

What is Swap?

Swap space plays an important role in Linux operating systems. It can be understood as a virtual memory space, where its name implies the act of swapping. Swap allows for temporarily writing less frequently used data to a fixed hard disk space to ensure stable system operation when the physical memory (RAM) is insufficient — this space is Swap.

Read More »[Linux] Increase Swap Space Using Commands to Prevent Memory Exhaustion
Exit mobile version