metal : rope_back 연산자 구현 ([#24725](https://github.com/ggml-org/llama.cpp/pull/24
요약
llama.cpp 프로젝트에서 Metal API를 위한 rope_back 연산자를 구현했습니다. 기존 RoPE 커널을 함수 상수를 활용해 재사용함으로써 순방향과 역방향 회전을 전환할 수 있게 하여 코드 중복을 방지했습니다.
핵심 포인트
- Metal 환경을 위한 rope_back 연산자 구현
- 함수 상수를 활용한 기존 RoPE 커널 재사용
- 순방향/역방향 회전 전환을 통한 코드 중복 제거
- macOS, iOS, Linux, Android 등 다양한 플랫폼 빌드 지원
metal : rope_back 연산자 구현 (#24725)
기존의 rope 커널을 함수 상수(function constant)와 함께 재사용하여 순방향/역방향 회전 (forward/backward rotation)을 전환함으로써, 커널 코드의 중복을 방지합니다.
도움 주심: pi:llama.cpp/Qwen3.6-27B
macOS/iOS:
- macOS Apple Silicon (arm64)
- macOS Apple Silicon (arm64, KleidiAI 활성화) 비활성화됨
- macOS Intel (x64)
- iOS XCFramework
Linux:
- Ubuntu x64 (CPU)
- Ubuntu arm64 (CPU)
- Ubuntu s390x (CPU)
- Ubuntu x64 (Vulkan)
- Ubuntu arm64 (Vulkan)
- Ubuntu x64 (ROCm 7.2)
- Ubuntu x64 (OpenVINO)
- Ubuntu x64 (SYCL FP32)
- Ubuntu x64 (SYCL FP16)
Android:
<strong>Android:</strong>
<strong>Windows:</strong>
- Windows x64 (CPU)
- Windows arm64 (CPU)
- Windows x64 (CUDA 12) - CUDA 12.4 DLLs
- Windows x64 (CUDA 13) - CUDA 13.3 DLLs
- Windows x64 (Vulkan)
- Windows x64 (OpenVINO)
- Windows x64 (SYCL)
- Windows x64 (HIP)
<strong>openEuler:</strong>
- DISABLED
- openEuler x86 (310p)
- openEuler x86 (910b, ACL Graph)
- openEuler aarch64 (310p)
- openEuler aarch64 (910b, ACL Graph)
<strong>UI:</strong>
AI 자동 생성 콘텐츠
본 콘텐츠는 llama.cpp Releases의 원문을 AI가 자동으로 요약·번역·분석한 것입니다. 원 저작권은 원저작자에게 있으며, 정확한 내용은 반드시 원문을 확인해 주세요.
원문 바로가기