avatar

Richard's sogni d'oro

Local GPT: ChatGLM2-6B on Mac -- Step by step tutorial

Jun 27, 2023
Apple has released mps backend ^1^ which boosts Macs that have AMD GPU or M series processor runs an LLM locally. This tutorial gives step-by-step instructions to run the ChatGLM2-6B model on a 16-inch MacBook Pro (2019) with 32G memory and AMD Radeon Pro 5500M 4 GB GPU. Build the enviroment Install openMP curl -O https://mac.r-project.org/openmp/openmp-12.0.1-darwin20-Release.tar.gz sudo tar fvxz openmp-12.0.1-darwin20-Release.tar.gz -C / The contained set of files is the same

Whole-house networking solution based on software router

Mar 31, 2023
Abstract The objective of this project is to establish a functional whole-house networking system within a multiple-bedroom apartment, which presents two primary challenges. The first challenge concerns the well-documented issue of internet firewalls, which requires additional measures to enable access to fundamental web services like Google, YouTube, Netflix, and OpenAI. The second challenge relates to the diminishing Wi-Fi signal as it penetrates through the walls of the bedrooms, rendering a single router insufficient for the entire house.

Install Nvidia GPU driver on Ubuntu

Aug 9, 2021
Install Nvidia driver on Ubuntu can be very tricky. Sometimes it goes extremely smooth while sometime it just doesn’t work. Follow these following steps, it should make it easier. Download Nvidia driver to your Ubuntu machine from its website. It is a .run file. Install make and gcc. sudo apt install make sudo apt install gcc Disable Nouveau kernel driver. # Create a file sudo nano /etc/modprobe.

Install Pytorch for GPU and CPU using Conda on Windows

Aug 5, 2021
Why virtual environment is needed? It is very common in deep learning that each project has different dependency requirements, which makes environment management important. Conda can help us set multiple virtual environments and keep them independent from each other. Thus, all of your ML projects can run smoothly. Set up virtual environment for pytorch using conda Install CUDA and cuDNN This step is only necessary for those who has a GPU.

Blogs that worth reading

Jun 29, 2021
Everyone is an island, and so do the blogs. It makes us cherish things we know and people we love. Here are some blogs I found very interesting. This post will update continuously. https://charlesliuyx.github.io This blog was writen in Chinese, topics including machine learning, blockchain, Chinese ancient poems, etc. https://yiqinfu.github.io A PhD student’s blog which contains a lot of very deep and interesting thoughts. Born and raised in China, Yiqin (pronounced ee-ching) Fu spent many of her formative years in the U.

Install Pytorch for GPU and CPU using Conda on Ubuntu

Jun 17, 2021
Why virtual environment is needed? It is very common in deep learning that each project has different dependency requirements, which makes environment management important. Conda can help us set multiple virtual environments and keep them independent from each other. Thus, all of your ML projects can run smoothly. Set up virtual environment for pytorch using conda Install Anaconda or Miniconda depends on your taste. Go to anaconda or miniconda’s website and download the .

Run YOLO v5 on Jetson developer kit step by step tutorial

Jun 4, 2021
What’s the goal? To run YOLOv5 on jetson developer kit to achieve real-time object detection. The following instructions has been tested on: Jetson nano Jetson Xavier NX What you need: A Jetson nano (If you are using other Jetson developer kit from Nvidia, I am sure you can take this as reference as well.) A SD card and power suply which meets the needs. Another computer or laptop with internet

Richard's fried chicken recipe

Jun 3, 2021
Why fried chicken Come on, man. What is the definition of good fried chicken Looking good (golden shell outside) Juicy inside Chicken meet has strong mixed and balanced taste even deep inside Raw materials Chicken leg, thigh, breast, or whatever you like. Oil (A LOT) Seasoning: Sea salt (if you do not have sea salt then normal salt) Chinese 13 Spices Mix (王守義十三香)

Why I want to write my blog?

Jun 3, 2021
To record To witness To help… hope so To leave a piece of me in this beautiful world that has been filled with absurdity

Why I want to write my blog?

Jan 3, 2021
To record To witness To help… hope so To leave a piece of me in this beautiful world that has been filled with absurdity