PyTorchKR Papers

신규 논문

총 4편
태그·기간 등 상세 필터

카테고리 탐색

arXiv:2611.14356v1cs.OS

EngineAgent: 추론 스택 계층 인식과 하드웨어 능력을 활용한 온디바이스 LLM 추론 엔진의 에이전트화

EngineAgent: Agentizing On-Device LLM Inference Engines with Inference Stack Hierarchy Awareness and Hardware Abilities

빠르게 진화하는 LLM 아키텍처와 이기종 모바일 하드웨어로 인해, 온디바이스 추론 엔진에서 새로운 모델을 지원하는 일은 반복적이고 비용이 많이 드는 시스템 과제가 되었다. 각 모델은 변환, 그래프 구성, 연산자, 하드웨어 백엔드 전반에 걸친 조율된 변경을 요구할 수 있다. 기존 코딩 에이전트는 이러한 계층 간 의존성을 놓치는 경우가 많으며, 호스트--디바이스 실행 경로 전반에서 발생하는 실패를 진단하는 데 어려움을 겪는다. 본 논문은 온디바이스 LLM 모델 지원 작업을 자동화하는 에이전트 시스템인 EngineAgent를 제안한다. 핵심 통찰은 재사용 가능한 엔진 및 하드웨어 지식을 모델별 구현과 분리하는 것이다. EngineAgent는 모델 지원 작업에 앞서 엔진의 추상화 계층과 계층 간 의존성을 담은 계층 인식 엔진 인덱스를 구축하고, 이미 지원되는 모델을 사용하여 백엔드별 빌드, 실행, 디버깅 워크플로를 사전 검증한다. 새로운 모델마다 빌더가 이 지식을 활용하여 계층 간 변경을 조율하고, 감사자는 구현의 완전성을 점검하며 디바이스 측 검증을 통해 반복적 디버깅을 주도한다. CPU, GPU, NPU에서 세 가지 모바일 LLM과 네 가지 엔진--백엔드 쌍에 걸친 12개 과제에서, EngineAgent는 두 가지 기반 LLM 중 어느 쪽을 사용하든 75%의 종단 간 성공률을 달성하였으며, 가장 강력한 코딩 에이전트 기준선은 33.3%였다. 성공 조건은 컴파일, 온디바이스 실행, 그리고 참조 구현과의 출력 로짓 일치이다. 또한 EngineAgent는 동일한 기반 LLM을 사용하는 기준선 대비 과제당 평균 소요 시간과 모델 API 비용도 줄인다.

arXiv:2610.40305v1cs.OS

Rimuru: Unified Memory Management for Modern LLM Serving via Elastic Expert Offloading

Modern LLMs strain device memory through large model weights and attention states, particularly in resource-constrained scenarios. Existing systems separately provision memory for model weights and attention states, imposing fixed fixed boundaries that cannot adapt to the changing memory demands of workloads. Under heavy workloads, insufficient state capacity limits request concurrency and reduces throughput; under light workloads, idle memory in one region cannot be reallocated to another, wasting device memory. Meanwhile, modern LLM architectures introduce heterogeneous tensors with diverse layouts and lifetimes, further complicating memory management. These problems motivate unified memory management for heterogeneous tensors. However, a shared pool alone does not make memory directly reusable across tensors with different allocation granularities and execution layouts. This paper presents Rimuru, a modern LLM serving system that unifies memory management through elastic expert offloading. Rimuru establishes a shared page pool to enables elastic memory sharing across heterogeneous tensors. To accommodate different allocation granularities, Rimuru introduces memory views that allow each tensor type to interpret the shared memory space using its own page size and page table. Furthermore, Rimuru combines huge-page alignment with a multi-level page allocator that splits and merges pages, enabling cross-type capacity reuse. A page-table-aware fused MoE kernel directly accesses non-contiguous expert weights, avoiding copy overhead. Building on these mechanisms, Rimuru employs a workload-aware adjuster that dynamically reallocates pages across tensor types according to runtime demands. Implemented on top of vLLM, Rimuru remains compatible with modern LLMs. Evaluations show that Rimuru achieves up to 19.03x baseline throughput and reduces TTFT by 98.1% on average.

arXiv:2610.38315v1eess.SY

LLM-PowerTrace: A Dataset of Time-Resolved GPU Power Traces for AI Compute

AI compute is becoming large and fast-changing electrical loads. Its impacts on data center infrastructure and power grids depend not only on total energy consumption, but also on how their power draw moves over sub-second to minute timescales, including peaks, ramps, and synchronized fluctuations across accelerators. Existing energy benchmarks for large language models (LLMs) report aggregate quantities such as joules per token and rarely release the underlying time-series measurements, leaving these power dynamics poorly characterized and difficult to model. We introduce LLM-PowerTrace, an open dataset of time-resolved, per-GPU power traces for LLM fine-tuning and inference, sampled every 100\,ms on varying NVIDIA platforms paired with complete workload and system metadata. For fine-tuning, LLM-PowerTrace profiles open model families spanning a wide range of model sizes and fine-tuning methods, together with controlled sweeps over batch size, sequence length, precision, parallelism, and checkpointing. For inference, it covers variations in concurrency, GPU frequency, KV-cache and weight quantization, prompt and output lengths, and request-arrival patterns. LLM-PowerTrace profiles a set of open model families across a wide range of model sizes, and controlled sweeps over batch size, sequence length, precision, parallelism, and checkpointing for fine-tuning, and it sweeps concurrency, GPU frequency, KV cache and weight quantization, prompt and output lengths, and request arrival patterns for inference. Built upon power traces, we define power-grid-facing metrics as well as AI-compute power\&energy scaling law for extrapolating beyond the measured settings. Together, LLM-PowerTrace provides a dataset foundation for modeling, forecasting, and managing the fast-changing electrical behavior of AI compute.

arXiv:2610.38458v1cs.CE

Tracekit Box: Running AI Agents in Micro-VMs Where Every Way Out Is Decided and Signed

AI agents now install packages, call model APIs with their operators' keys and change code in repositories that deploy to production. The network, credentials and write access they need are also how they can leak data, steal a key or change a system nobody approved. Sandboxes contain an agent but leave little evidence of what crossed their boundary; tracing records what happened but contains nothing. We present Tracekit Box, an open-source system (MIT, v0) that does both. Each job runs in its own Firecracker micro-VM with no network card. The only ways out are doors on the host, served over vsock: commands, outbound connections, secrets, model calls and the workspace patch. At every door a Tracekit signer the agent cannot reach decides what passes and signs it into one run per box. Names are resolved on the host; private and cloud-metadata addresses are always refused; secrets never enter the VM, which sees placeholders the host proxy swaps for real values only in one header for bound hosts; and changes come back as a patch applied file by file after the signer decides each file. Box fails closed, and each job ends as a .tkb bundle anyone can verify offline. All 13 end-to-end checks pass on a real KVM runner (the test that runs them takes 28.5 s, including image pull and boot); 15 fuzz targets on the trust boundary produced nine findings, all fixed; and the demo run's 102 signed records verify. Box does not yet run Firecracker's jailer, needs a co-located signer, and records processes inside the VM only where they cross a door.