Kevin Haritmonds·Aug 6, 2025LLaMA 2 in Python 3: No Transformers, just PyTorch and SentencePieceI’ve always been fascinated by how large language models (LLMs) can interpret natural language inputs and respond with surprisingly…
Kevin Haritmonds·Feb 9, 2025How to run DeepSeek R1 LLM in C++DeepSeek R1 is an advanced open-source large language model developed by DeepSeek company. Here I will try to download the model (we will…
Kevin Haritmonds·Jul 27, 2024How to run Llama 3 LLM in C++Llama 3 is an advanced open-source large language model from Meta (Facebook). Here I will try to run it with as few steps as possible.A response icon1A response icon1
Kevin Haritmonds·Mar 13, 2024Generate prime numbers with efficient memory (using priority queue)The Sieve of Eratosthenes is one of the fastest algorithm to find all primes. However, it is known to consume a lot of memory, as we put…
Kevin Haritmonds·Feb 11, 2024Find all intervals that overlap with a given value efficientlyWhen I was trying to solve Google Code Jam 2023 : Illumination Optimization problem (archive), I need a way to efficiently find all…
Kevin Haritmonds·Nov 28, 2023How to run Llama 2 LLM in CI was intrigued how does ChatGPT work. How can a computer generate a relevant, coherent answers to our question. I found an excellent…
Kevin Haritmonds·Sep 17, 2023Generate prime numbers using multi CPU coresPreviously we explored how to generate prime numbers using GPU. Now, let’s try to generate prime numbers using multi CPU cores.
Kevin Haritmonds·Aug 25, 2023Generate prime numbers using GPUGPU is graphics processing unit in our PC. Unlike CPU which has few number of cores (typically 2 cores or up to 32 cores), GPU has hundreds…A response icon1A response icon1
Kevin Haritmonds·Jul 4, 2022Create our own KernelIn this article, we are going to create our own Kernel. Kernel is a piece of code that our PC runs upon booting. It initializes hardware…A response icon1A response icon1
Kevin Haritmonds·May 23, 2022Raw NetworkYou type https://www.google.com/ on web browser, and it shows you Google Search webpage. How does it work? How your computer able to find…