LeetCode: 242-Valid Anagram Solution
Problem
Given two strings s
and t
, return true
if t
is an anagram of s
, and false
otherwise.
Given two strings s
and t
, return true
if t
is an anagram of s
, and false
otherwise.
You are given the array paths
, where paths[i] = [cityAi, cityBi]
means there exists a direct path going from cityAi
to cityBi
. Return the destination city, that is, the city without any path outgoing to another city.
vLLM is a large language model (LLM) acceleration framework that developed by the research team of University of California, Berkeley. It is used PagedAttention to increase the usage rate of GPU VRAM, and this method do not change the model architecture.
Read More »Using vLLM To Accelerate The Decoding Of Large Language ModelLast night I tried to improve some code about merge two models. Because my poor device, I cannot merge all layers totally, but need to merge them layer by layer for reducing my memory cost.
Read More »[PyTorch] Delete Model And Free Memory (GPU / CPU)Today I tried to install Ubuntu on a new MSI notebook, but encountered an error when I need to choose the partition: system message tell me, the current device cannot found any disk.
Read More »[Solved][Linux] Cannot Found The Disk On MSI Notebook - Abnormal Of RAID (Intel RST)Given the root
of a binary tree, construct a string consisting of parenthesis and integers from a binary tree with the preorder traversal way, and return it.
You are given a string num
, representing a large integer. Return the largest-valued odd integer (as a string) that is a non-empty substring of num
, or an empty string ""
if no odd integer exists.
Although I reach AI and research it all day, but there are too many new architectures, breakout, theories... many things I just know a rough concepts and put it away. The almost deeper understand need to until I must to be adjust the model architecture.
Read More »[Machine Learning] A LLM (Large Language Model) Visualization WebsiteThe 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)