Browse tags

From the archive

A growing notebook.

Years of learning, building, and writing things down.

2026 22 articles

2025 21 articles

LARGE LANGUAGE MODELS

LLM Interview Questions

Language models learn distributions over tokens; useful applications also depend on sound evaluation, efficient training and inference, and reliable access to evidence. These...

LARGE LANGUAGE MODELS

LLM Training Epoch

As large language models (LLMs) scale up, researchers have begun to notice a growing imbalance between model size and the availability of high-quality training tokens. The...

LARGE LANGUAGE MODELS

vllm throughput

vLLM pre-allocates a block of GPU memory for KV-cache based on the --gpu_memory_utilization parameter. By increasing this parameter, you free up more contiguous space for KV...

AI ENGINEERING

LangChain/LangGraph Q&A

LangGraph’s core philosophy is to orchestrate multi-step, stateful agent workflows using a directed graph (DAG or DG) structure. Each step is modeled as a node, while data and...

LARGE LANGUAGE MODELS

Training LLM From Zero

The goal of this project is to design, implement, and train a small-scale Large Language Model (LLM) from scratch, progressing through the full training lifecycle:

AI ENGINEERING

FastMCP MCP Server Hub

Currently, our different projects are using various MCP servers. To streamline and unify the process, we plan to implement a HUB MCP server that can handle multiple MCP Servers and...

AI ENGINEERING

MCP Transports

Compare stdio, SSE, and Streamable HTTP transports for MCP, with Python examples for configuring servers and clients.

AI ENGINEERING

MCP Server & Client (SSE)

Beside the vscode extension hosts like (cline, continue), you can write your own client to connect to the MCP server. The client should be able to send and receive messages using...

AI ENGINEERING

RAG-Reranking

Retrieval-Augmented Generation (RAG) is a powerful approach that combines retrieval and generation to produce high-quality responses. However, the quality of the final response can...

AI ENGINEERING

GenAI Projects

A collection of generative AI resources and project notes on schema mapping, feature engineering, PDF extraction, and agent frameworks.

AI ENGINEERING

LangGraph VS AutoGen

Compare LangGraph and AutoGen across workflow structure, state management, customization, and use cases for LLM applications.

LARGE LANGUAGE MODELS

Local LLM Setup

This guide will walk you through setting up a local language model (LLM) using Ollama. Ollama is an open-source, lightweight language model that can be run locally on your machine...

2024 10 articles

AI ENGINEERING

Gradio with Ollama

Notes on processing unstructured PDF content and a demo architecture connecting a Gradio interface to models served by Ollama.

SOFTWARE ENGINEERING

ZIO

Recently I read a Blog that introducing how to use scala framework ZIO to build an application.

2021 1 articles

DEVOPS

Setup Minikube

Set up Minikube on macOS, deploy a sample application, and submit a Spark job to a local Kubernetes cluster.

2020 9 articles

DATA ENGINEERING

Spark SQL

Spark submit options and tuning notes covering executors, memory, parallelism, and resource allocation on YARN.

DATA ENGINEERING

Spark Optimization

Data locality is how close data is to the code processing it. There are several levels of locality based on the data’s current location. In order from closest to farthest:

DATA ENGINEERING

Airflow

Airflow DAG examples for scheduling Python tasks, configuring retries and queues, and separating task implementations.

DATA ENGINEERING

Spark Structured Streaming

Recently reading a blog Structured Streaming in PySpark It's implemented in Databricks platform. Then I try to implement in my local Spark. Some tricky issue happened during my...

MACHINE LEARNING

Gradient Descent

Vanilla gradient descent, aka batch gradient descent, computes the gradient of the cost function w.r.t. to the parameters θ

2012 1 articles