A developer has successfully integrated the Surface Pro 11’s Neural Processing Unit with the R programming language to run local large language models using Foundry Local and ellmer.
Key Points
- The project utilizes the Foundry Local SDK to interface with the Surface Pro 11's integrated NPU hardware.
- R code leverages the
ellmerandhttr2packages to establish an OpenAI-compatible connection to local model endpoints. - The implementation requires the Foundry CLI to be installed and accessible via the system PATH for service management.
- The workflow automates model downloading, loading, and unloading processes directly through R system commands.
- This method provides an alternative for users seeking to run LLMs locally without relying on software like Ollama or LM Studio.