My note on learning LeNet 5

Some words “The more I get, the less I know.”——bdim Recently, I am trying to learn more about image recognition. One of the topics that I am interested in is LeNet, which is a classic convolutional neural network. In this article, I will try to re-implement a LeNet using PyTorch and then abstractly understand some parts that I do not quite understand. The contents of this article may be inaccurate and will continue to update the details....

July 13, 2024 · 11 min

Using Copilot with Local Deployment & Private Deployment Models via Ollama

Using Copilot with Local Models via Ollama Recently, Mistral AI released a highly efficient code-writing model called codestral. It’s only 22B, and my MacBook can easily handle it, using around 15GB of memory during operation. I wanted to integrate it with VSCode to replace GitHub Copilot for more secure coding. Ensure you have Ollama and the codestral model installed. It’s straightforward following the official links. To use a Copilot-like feature in VSCode, you need to install codestral and starcoder2 via Ollama, then install the Continue plugin in VSCode....

June 5, 2024 · 3 min

Using Nix Flakes as a Package Manager on macOS & Yubikey SSH Usage Memo

Using Nix Flakes as a Package Manager on macOS & Yubikey SSH Usage Memo Nix Flakes After reading fernvenue’s recent article Play with Nix Flakes, I decided to fully embrace Nix on my Mac, moving away from brew and Xcode. By discarding these bulky tools, I can easily install only what I need. Recently, I treated myself to an old M1 Max for my birthday, as I still rely on Logic Pro and Final Cut Pro....

May 20, 2024 · 3 min

Debian GNOME on Mac Mini M1

Installation Memo for Debian GNOME on Mac Mini M1 I’ve long heard about Asahi Linux, and today I gave it a try, and it’s indeed impressive. Previously, I followed the official documentation to install Fedora, only to find out there are mature scripts available for direct Debian installation. Today, I finally mustered the courage to try my hand at installing on Mac, start the challenge like a newbie! You can:...

May 12, 2024 · 5 min

Configuring Rime Input Method on macOS

Configuring Rime Input Method on macOS Installing Rime Recently, I learned from Teacher fernvenue how to configure input methods on Debian GNOME and found that Rime is also applicable on macOS. Configuring Rime/Zhongzhouyun on macOS is just as straightforward. Firstly, visit the Rime official website and directly download the installation package for Squirrel.pkg. After installation, the system will prompt you to either log out and log back in or manually log out and log in again....

April 10, 2024 · 3 min