Back to All
Project

Ollama with Windows on Snapdragon (WoS)

Ollama serves as a simple yet powerful runtime that brings LLM models to local environments. Its compatibility with Windows on Snapdragon (WoS) makes it ideal for developers building AI-powered applications for mobile and edge devices.

This project is designed to:

  • Demonstrate setting up Ollama locally on a Snapdragon-powered Windows device.
  • Run DeepSeek-R1 models entirely on the CPU.
  • Integrate Ollama with the AnythingLLM application using Docker, ensuring the local service is correctly configured and operational.
  • The entire setup is executed on Qualcomm® Device Cloud (DC) & on Windows on Snapdragon (WOS) Laptops validating its feasibility for developers working on Snapdragon and Qualcomm® platforms hardware.

This hands-on step by step instructions give developers a complete pipeline—from model setup to application-level integration—showcasing the power of running large language models locally on efficient platforms.

 

Materials Required / Parts List / Tools

 

Build / Assembly Instructions

1. Setup (10 minutes)

  • Hardware
    • An Ubuntu/Windows Host system – on Qualcomm Device Cloud.

OR

  • Windows laptop with below specifications – on Device.
    • Machine: Any Windows on Snapdragon Support device
    • Chip: Snapdragon X-Elite
    • OS: Windows 11
    • Memory: 8GB or higher

2. Deployment options

Users have two options for implementing this project:

  • Using Qualcomm® Device Cloud (DC):
  • Users opting for Qualcomm DC must First complete the Qualcomm DC setup for Snapdragon X-Elite (section 4). After setting up, proceed to Build the Application (section 5).
  • Using Real Device with Snapdragon X-Elite:
  • Users with a physical windows device powered by Snapdragon X-Elite can directly begin from the Build the Application.

 

Project Walkthrough

Qualcomm DC setup for laptop with Snapdragon X-Elite

  1. Visit https://qdc.qualcomm.com/ and sign up for an account to create a new session.
  2. In the home page click on New Interactive Session. We recommend using Remote Desktop instead of web browser to interact with Compute devices.
Qualcomm-image

3. In Select a Platform section, select Compute option and click Next

Qualcomm-image

4. In Select Device Section, select Snapdragon X Elite and fill the mandatory fields to Unlock your free 1000 minutes and click on Next.

After utilizing the initial 1000 free minutes, developers have the option to request additional free minutes.

Qualcomm-image
Qualcomm-image

5. In Device Configuration check the toggle button to install SNPE and configure another Qualcomm

build and click on Next.

Qualcomm-image

6. In Test Configuration fill in the mandatory fields in Session details like Session name according to your use case. Can choose Maximum minutes per device is 420 minutes (7 hours). Choose the mode of operation out of three modes and follow the appropriate guide provided for each mode. For this use case we have selected screen mirroring only.

Qualcomm-image

7. There is a provision of Package Provider to upload assets in zip format. Zip will be extracted and pushed to C:\Temp\file\ before the session is started. Once you are done, it will enable Create Session tab, click on it and continue.

Qualcomm-image

8. The process will take some time to open the window, and you are ready to access cloud device Snapdragon X-Elite.

Qualcomm-image

Build the Application (20 minutes)

1. On device with Snapdragon X-Elite install Docker from the link provided in the prerequisite section refer to the below images as reference.

Qualcomm-image
Qualcomm-image

wsl –update

Qualcomm-image
Qualcomm-image

2. Once Docker and wsl have been installed. Pull the latest image from docker.

docker pull mintplexlabs/anythingllm
Qualcomm-image

3. Mount the storage locally

# Run this in powershell terminal
$env:STORAGE_LOCATION="$HOME\Documents\anythingllm"; `
If(!(Test-Path $env:STORAGE_LOCATION)) {New-Item $env:STORAGE_LOCATION -ItemType Directory}; `
If(!(Test-Path "$env:STORAGE_LOCATION\.env")) {New-Item "$env:STORAGE_LOCATION\.env" -ItemType File}; `
Qualcomm-image

4. Run AnythingLLM in Docker (Keep this running in one terminal)

docker run -d -p 3001:3001 `
--cap-add SYS_ADMIN `
-v "$env:STORAGE_LOCATION`:/app/server/storage" `
-v "$env:STORAGE_LOCATION\.env:/app/server/.env" `
-e STORAGE_DIR="/app/server/storage" `
mintplexlabs/anythingllm;
Qualcomm-image

5. Visit the ollama website.

  • Open your browser and go to https://ollama.com.
  • Download & install. Click the Download button, select the Windows installer and follow the prompts to complete the installation.
Qualcomm-image
Qualcomm-image

Run your model locally. Open a command prompt or terminal and enter the following command:

ollama run <model_name>

Select any Deepseek model

Qualcomm-image
ollama run deepseek-r1:1.5b
Qualcomm-image
Qualcomm-image
Qualcomm-image
ollama run deepseek-r1:7b
Qualcomm-image
ollama run deepseek-r1:8b
Qualcomm-image
Qualcomm-image
ollama run llama3.2
Qualcomm-image

Similarly, you can run other models like Phi-3, Mistral, and Gemma using similar commands - which are available in the Ollama model registry.

List of models available on https://ollama.com/library

 

Usage

1. To check if Ollama is running, visit http://localhost:11434 in your browser. If Ollama is running on the host machine and you're connecting from within a Docker container (e.g., AnythingLLM), use http://host.docker.internal:11434 as the connection URL in the AnythingLLM settings.

Qualcomm-image

2. Visit http://localhost:3001 in your browser & you are now using AnythingLLM!

  • In LLM preference – select Ollama
Qualcomm-image
Qualcomm-image
  • Complete the user setup.
Qualcomm-image
  • Create your First Workspace – by providing your workspace name.
Qualcomm-image
  • Click on your workspace name and start your conversation.
Qualcomm-image
Qualcomm-image

Snapdragon and Qualcomm branded products are products of Qualcomm Technologies, Inc. and/or its subsidiaries.

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries ("Qualcomm"). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.

Qualcomm relentlessly innovates to deliver intelligent computing everywhere, helping the world tackle some of its most important challenges. Our leading-edge AI, high performance, low-power computing, and unrivaled connectivity deliver proven solutions that transform major industries. At Qualcomm, we are engineering human progress.

Stay connected

Get the latest Qualcomm and industry information delivered to your inbox.

Subscribe
Manage your subscription

© Qualcomm Technologies, Inc. and/or its affiliated companies.

Snapdragon and Qualcomm branded products are products of Qualcomm Technologies, Inc. and/or its subsidiaries. Qualcomm patented technologies are licensed by Qualcomm Incorporated.

Note: Certain services and materials may require you to accept additional terms and conditions before accessing or using those items.

References to "Qualcomm" may mean Qualcomm Incorporated, or subsidiaries or business units within the Qualcomm corporate structure, as applicable.

Qualcomm Incorporated includes our licensing business, QTL, and the vast majority of our patent portfolio. Qualcomm Technologies, Inc., a subsidiary of Qualcomm Incorporated, operates, along with its subsidiaries, substantially all of our engineering, research and development functions, and substantially all of our products and services businesses, including our QCT semiconductor business.

Materials that are as of a specific date, including but not limited to press releases, presentations, blog posts and webcasts, may have been superseded by subsequent events or disclosures.

Nothing in these materials is an offer to sell or license any of the services or materials referenced herein.