<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Inference on Shaowen Chen's Website</title><link>https://www.chenshaowen.com/en/tags/inference/</link><description>Recent content in Inference on Shaowen Chen's Website</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>&amp;copy;2016 - {year}, All Rights Reserved.</copyright><lastBuildDate>Wed, 17 Sep 2025 00:00:00 +0000</lastBuildDate><sy:updatePeriod>weekly</sy:updatePeriod><atom:link href="https://www.chenshaowen.com/en/tags/inference/atom.xml" rel="self" type="application/rss+xml"/><item><title>Using lmcache Can Significantly Improve TTFT in Model Inference</title><link>https://www.chenshaowen.com/en/blog/use-lmcache-to-improve-ttft.html</link><pubDate>Wed, 17 Sep 2025 00:00:00 +0000</pubDate><atom:modified>Wed, 17 Sep 2025 00:00:00 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/use-lmcache-to-improve-ttft.html</guid><description>1. Introduction to LMCache TTFT is the time from when a request is issued until the model generates its first token. Because the Prefill phase has to encode the input context into a KV Cache before generation can begin, producing that first token requires a large amount of computation, which makes TTFT high.</description><dc:creator>微信公众号</dc:creator><category>AI</category><category>LLM</category><category>vLLM</category><category>Inference</category><category>lmcache</category><category>Operations</category></item><item><title>NVIDIA RTX 5090 Inference Test</title><link>https://www.chenshaowen.com/en/blog/nvidia-rtx-5090-inference-test.html</link><pubDate>Tue, 09 Sep 2025 00:00:00 +0000</pubDate><atom:modified>Tue, 09 Sep 2025 00:00:00 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/nvidia-rtx-5090-inference-test.html</guid><description>1. Installing the Driver Download the driver Go to https://www.nvidia.com/en-us/drivers/ and select the corresponding driver version to download. 1 wget https://us.download.nvidia.com/XFree86/Linux-x86_64/580.76.05/NVIDIA-Linux-x86_64-580.76.05.run Install the driver 1 bash NVIDIA-Linux-x86_64-580.76.05.run Check the GPUs 1 nvidia-smi 1 2 3 GPU 0: NVIDIA GeForce RTX 5090 (UUID: GPU-92fcdc58-4754-73c7-af6c-56740936817d) GPU 1: NVIDIA GeForce RTX 5090 (UUID:</description><dc:creator>微信公众号</dc:creator><category>AI</category><category>GPU</category><category>NVIDIA</category><category>LLM</category><category>Inference</category><category>Performance Testing</category><category>Operations</category></item><item><title>Distributed Computing Framework Ray</title><link>https://www.chenshaowen.com/en/blog/what-is-ray.html</link><pubDate>Sun, 09 Feb 2025 10:00:00 +0000</pubDate><atom:modified>Sun, 09 Feb 2025 10:00:00 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/what-is-ray.html</guid><description>1. What Ray Is In 2016, UC Berkeley&amp;rsquo;s RISELab released a new distributed computing framework called Ray. In 2017, after the Ray paper was published, it drew broad attention across the industry; in China it was mainly Ant Group that adopted and contributed to Ray. In 2020, Ray released version</description><dc:creator>微信公众号</dc:creator><category>Distributed Systems</category><category>Computing Framework</category><category>Ray</category><category>Training</category><category>Inference</category></item><item><title>Using vLLM for Model Inference</title><link>https://www.chenshaowen.com/en/blog/use-vllm-for-inference.html</link><pubDate>Sat, 18 Jan 2025 00:00:00 +0000</pubDate><atom:modified>Sat, 18 Jan 2025 00:00:00 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/use-vllm-for-inference.html</guid><description>1. Environment Preparation Download Miniforge 1 wget &amp;#34;https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh&amp;#34; Install Miniforge 1 bash Miniforge3-$(uname)-$(uname -m).sh 1 2 echo &amp;#34;export PATH=$HOME/miniforge3/bin:$PATH&amp;#34; &amp;gt;&amp;gt; ~/.bashrc source ~/.bashrc Create the environment 1 conda create -n vllm python=3.12 vLLM currently requires Python 3.9+. Activate the environment 1 conda activate vllm Install dependencies 1 conda install</description><dc:creator>微信公众号</dc:creator><category>vLLM</category><category>AI</category><category>LLM</category><category>Inference</category><category>Operations</category></item><item><title>Using a vLLM Application to Verify an Inference Node</title><link>https://www.chenshaowen.com/en/blog/use-vllm-verify-inference-node.html</link><pubDate>Thu, 16 Jan 2025 00:00:00 +0000</pubDate><atom:modified>Thu, 16 Jan 2025 00:00:00 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/use-vllm-verify-inference-node.html</guid><description>1. Building the Image To make testing convenient, the model files are packaged into the image here. Download the model 1 2 3 4 git clone https://huggingface.co/Qwen/Qwen1.5-1.8B-Chat cd Qwen1.5-1.8B-Chat &amp;amp;&amp;amp; git lfs pull rm -rf .git cd .. Write the Dockerfile 1 2 3 4 5 cat &amp;lt;&amp;lt;EOF &amp;gt; Dockerfile</description><dc:creator>微信公众号</dc:creator><category>vLLM</category><category>Inference</category><category>AI</category><category>LLM</category><category>Operations</category></item><item><title>Speeding Up Model Inference with TensorRT</title><link>https://www.chenshaowen.com/en/blog/speeding-up-model-inference-with-tensorrt.html</link><pubDate>Tue, 06 Feb 2024 00:00:00 +0000</pubDate><atom:modified>Tue, 06 Feb 2024 00:00:00 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/speeding-up-model-inference-with-tensorrt.html</guid><description>1. What Is TensorRT TensorRT is a C++ library mainly used for high-performance inference acceleration on NVIDIA GPUs. It provides both a C++ API and a Python API for integration. The mainstream deep learning frameworks TensorRT supports are: Caffe, where TensorRT can read the prototxt format directly TensorFlow, where the</description><dc:creator>微信公众号</dc:creator><category>AI</category><category>TensorRT</category><category>NVIDIA</category><category>GPU</category><category>Inference</category><category>LLM</category></item><item><title>Large Model Inference with Triton Server and TensorRT-LLM in a Container</title><link>https://www.chenshaowen.com/en/blog/using-triton-server-and-tensorrt-llm-under-container.html</link><pubDate>Sat, 03 Feb 2024 08:05:48 +0000</pubDate><atom:modified>Sat, 03 Feb 2024 08:05:48 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/using-triton-server-and-tensorrt-llm-under-container.html</guid><description>1. Compiling Models with TensorRT-LLM 1.1 Introduction to TensorRT-LLM When using TensorRT, you usually need to convert the model to ONNX format, then convert the ONNX to TensorRT format, and finally run inference in TensorRT or Triton Server. But this conversion process is not simple, and you often run into</description><dc:creator>微信公众号</dc:creator><category>AI</category><category>Triton</category><category>TensorRT</category><category>LLM</category><category>Inference</category><category>GPU</category><category>Operations</category><category>Containers</category><category>Learning</category></item><item><title>Running llama-Architecture LLMs on CPU</title><link>https://www.chenshaowen.com/en/blog/how-to-run-llama-on-cpu.html</link><pubDate>Sat, 16 Sep 2023 00:00:00 +0000</pubDate><atom:modified>Sat, 16 Sep 2023 00:00:00 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/how-to-run-llama-on-cpu.html</guid><description>1. Running Locally in Containers Start the LLM 1 docker run --security-opt apparmor=unconfined --security-opt seccomp=unconfined --rm -p 8000:8000 shaowenchen/chinese-alpaca-2-7b-gguf:Q2_K The API documentation is available at http://localhost:8000/docs, as shown below:
Deploy a simple Chat UI Note that the OPENAI_API_HOST parameter must be set to your host machine&amp;rsquo;s IP address rather than localhost or 127.</description><dc:creator>微信公众号</dc:creator><category>CPU</category><category>LLM</category><category>AI</category><category>Inference</category><category>Operations</category></item><item><title>LLM Deployment Tool llama.cpp</title><link>https://www.chenshaowen.com/en/blog/llama-cpp-that-is-a-llm-deployment-tool.html</link><pubDate>Tue, 05 Sep 2023 00:00:00 +0000</pubDate><atom:modified>Tue, 05 Sep 2023 00:00:00 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/llama-cpp-that-is-a-llm-deployment-tool.html</guid><description>1. LLM Deployment Tool llama.cpp Research on large models is split into two parts: training and inference. The training process is essentially the process of finding model parameters that minimize the model&amp;rsquo;s loss function and optimize the inference results. Once training is complete, the model&amp;rsquo;s parameters are fixed, and at</description><dc:creator>微信公众号</dc:creator><category>AI</category><category>LLM</category><category>Tools</category><category>llama.cpp</category><category>Inference</category><category>Deployment</category></item></channel></rss>