SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Using small language models on SAP AI Core

In this tutorial we are going to learn on how to deploy a custom LLM on AI core using Ollama for the example we would be taking Gemma as a model from hugging face and deploy it on SAP AI core.

Overview

🎓 beginner 45 min. SAP Ai CoreBeginnerArtificial IntelligenceMachine LearningSAP Business Technology Platform

You will learn

  • How to Deploy Ollama on AI core
  • Add models to Ollama and inference models
Dhrubajyoti Paul D Dhrubajyoti Paul April 18, 2025
Created by December 17, 2024
Contributors

Prerequisites

Prerequisites

Ai core setup and basic knowledge: Link to documentation Ai core Instance with Standard Plan or Extended Plan Docker Desktop Setup Download and Install GitHub Account

Steps

Step 1 Architecture Overview

In this tutorial we are deploying Ollama an open-source project that serves as a powerful and user-friendly platform for running LLMs on on SAP AI core. which acts as a bridge between the complexities of LLM technology and the desire for an accessible and customizable AI experience.

image

We can pick any model from the above model hubs and connect it to AI core for the example we are going to deploy Ollama on AI core and enable Gemma and inference the same.

Step 2 Adding workflow file to github
+
Step 3 Create a Docker account and generate a Docker access token and Install Docker
+
Step 4 Storing docker secrets to AI core
+
Step 5 Onboarding GitHub and application on AI core
+
Step 6 Creating configuration
+
Step 7 Deploying Ollama to AI core
+
Step 8 Pulling llava-phi3 and Performing Inference
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 8
1. Architecture Overview 2. Adding workflow file to github 3. Create a Docker account and generate a Docker access token and Install Docker 4. Storing docker secrets to AI core 5. Onboarding GitHub and application on AI core 6. Creating configuration 7. Deploying Ollama to AI core 8. Pulling llava-phi3 and Performing Inference

Learn more →