PyTorch Internals
See the two posts by Trevor Killeen: A Tour of PyTorch Internals (Part I) PyTorch Internals Part II - The Build System The idea comes from the question: How to understand PyTorch’s source code.
See the two posts by Trevor Killeen: A Tour of PyTorch Internals (Part I) PyTorch Internals Part II - The Build System The idea comes from the question: How to understand PyTorch’s source code.
** Special Usages 1. Unpacking a dictionary into keyword arguments in a function call def greet(name, age): print(f"Hello, {name}, You are {age} years old.") person = {"name": "Alice", "age"...
TL; DR The Llama Model forward logic is located in LlamaModel.forward:src/transformers/models/llama/modeling_llama.py,518-624 First Setup Your Environment Clone the github repository “byrzhm/lla...
Frequently Used Command Line Tools tr … sort … uniq … awk … basename … Real World Problems Word Frequency Count # Read from the file words.txt and output the word frequency list to stdout. ...
Create Powerpoint Templates See https://support.microsoft.com/en-us/office/create-and-save-a-powerpoint-template-ee4429ad-2a74-4100-82f7-50f8169c8aca Create Word Templates See https://support.mi...
Install Pybind conda create -n pybind-demo python=3.10 conda install -c conda-forge pybind11 ## conda mirror ## https://mirror.tuna.tsinghua.edu.cn/help/anaconda/ Simple Example #include <py...
gcc -print-search-dirs gcc -print-search-dirs tells you where GCC looks for libraries during the compilation and linking phases. LD_LIBRARY_PATH LD_LIBRARY_PATH controls where the dynamic linker...
References https://pip.pypa.io/en/stable/ https://www.youtube.com/watch?v=U2ZN104hIcc
,,,,,,coming soon,,,,,, References Your First Extension
See https://github.com/byrzhm/auto-setup.