LeetCode: 242-Valid Anagram Solution
Last Updated on 2023-12-16 by Clay
Problem
Given two strings s
and t
, return true
if t
is an anagram of s
, and false
otherwise.
Last Updated on 2023-12-16 by Clay
Given two strings s
and t
, return true
if t
is an anagram of s
, and false
otherwise.
Last Updated on 2023-12-15 by Clay
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.
Last Updated on 2023-12-14 by Clay
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 Updated on 2023-12-12 by Clay
Last 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)Last Updated on 2023-12-09 by Clay
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)Last Updated on 2023-12-08 by Clay
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.
Last Updated on 2023-12-07 by Clay
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.
Last Updated on 2023-12-06 by Clay
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 WebsiteLast Updated on 2023-12-04 by Clay
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)