<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>FastAPI - 태그 - lee's blog</title><link>https://ken-0913.github.io/myblog/tags/fastapi/</link><description>FastAPI - 태그 - lee's blog</description><generator>Hugo -- gohugo.io</generator><language>ko-kr</language><managingEditor>hyeonjae0913@gmail.com (ken-0913)</managingEditor><webMaster>hyeonjae0913@gmail.com (ken-0913)</webMaster><lastBuildDate>Mon, 10 Aug 2026 23:00:00 +0900</lastBuildDate><atom:link href="https://ken-0913.github.io/myblog/tags/fastapi/" rel="self" type="application/rss+xml"/><item><title>LLM 스터디 2주차 - 멀티 모델 서빙과 Triton 위임 직접 해보기</title><link>https://ken-0913.github.io/myblog/posts/llm/llm-serving-multi-model-lab/</link><pubDate>Mon, 10 Aug 2026 23:00:00 +0900</pubDate><author><name>ken-0913</name></author><guid>https://ken-0913.github.io/myblog/posts/llm/llm-serving-multi-model-lab/</guid><description><![CDATA[<div class="featured-image">
                <img src="images/banners/llm-serving-multi-model-lab-f87455c6.png" referrerpolicy="no-referrer">
            </div><p><a href="../llm-serving-single-model-lab/" rel="">앞 글</a>에서는 모델 <strong>하나</strong>를 어떻게 빠르게 굴릴지를 다뤘다. 배칭, 스트리밍, 프로세스 격리가 주제였다. 이번에는 질문이 바뀐다. <strong>모델이 여러 개일 때 무엇을 메모리에 올려두고 어디로 보낼 것인가.</strong></p>
<p>같은 저장소 <a href="https://github.com/orca3/llm-model-inference" target="_blank" rel="noopener noreferrer">orca3/llm-model-inference</a>의 <code>ch03/multi_model_serving</code>을 쓴다. 모델 4개를 LRU 캐시로 관리하고, 그중 하나는 <strong>NVIDIA Triton 컨테이너에 위임</strong>하는 구조다.</p>
<p>이 글의 모든 로그와 명령 결과는 <strong>RTX 3050 6GB 리눅스 머신에서 실제로 실행한 것</strong>이다.</p>
<h2 id="1-part-1과-무엇이-다른가" class="headerLink">
    <a href="#1-part-1%ea%b3%bc-%eb%ac%b4%ec%97%87%ec%9d%b4-%eb%8b%a4%eb%a5%b8%ea%b0%80" class="header-mark"></a>1. Part 1과 무엇이 다른가</h2><p>두 랩은 완전히 독립적이다. 그리고 <strong>torch 버전이 충돌</strong>하므로 venv를 반드시 분리해야 한다.</p>]]></description></item><item><title>LLM 스터디 2주차 - 단일 모델 LLM 서빙 서버 직접 만들어보기</title><link>https://ken-0913.github.io/myblog/posts/llm/llm-serving-single-model-lab/</link><pubDate>Mon, 10 Aug 2026 21:00:00 +0900</pubDate><author><name>ken-0913</name></author><guid>https://ken-0913.github.io/myblog/posts/llm/llm-serving-single-model-lab/</guid><description><![CDATA[<div class="featured-image">
                <img src="images/banners/llm-serving-single-model-lab-e6f25d84.png" referrerpolicy="no-referrer">
            </div><p>LLM 서빙은 보통 vLLM이나 TGI 같은 프레임워크를 가져다 쓴다. 하지만 그 안에서 무슨 일이 벌어지는지는 직접 만들어봐야 감이 온다. 이번 실습은 <strong>배칭 · 스트리밍 · 프로세스 격리</strong>를 손으로 구현한 서버를 띄우고, 로그를 읽어 동작을 확인하는 과정이다.</p>
<p>대상 코드는 책 <em>Hands-On LLM Serving and Optimization</em>의 공식 저장소 <a href="https://github.com/orca3/llm-model-inference" target="_blank" rel="noopener noreferrer">orca3/llm-model-inference</a> 중 <code>ch03/single_model_llm_serving</code>이다. 모델은 <strong>facebook/opt-125m</strong>을 쓴다. 작아서 6GB GPU에서도 충분히 돌아간다.</p>
<p>이 글의 모든 로그와 명령 결과는 <strong>RTX 3050 6GB 리눅스 머신에서 실제로 실행한 것</strong>이다.</p>]]></description></item></channel></rss>