VOOZH about

URL: https://thenewstack.io/when-cloud-meets-intelligence-inference-ai-as-a-service/

⇱ When Cloud Meets Intelligence: Inference AI as a Service - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2023-10-10 11:44:35
When Cloud Meets Intelligence: Inference AI as a Service
sponsor-gcore,sponsored-post-contributed,
AI / DevOps / Operations

When Cloud Meets Intelligence: Inference AI as a Service

Unlock the power of real-time decision making with inference AI as we guide you through the complexities of model deployment, using the Gcore platform as your roadmap.
Oct 10th, 2023 11:44am by Mikhail Khlystun
👁 Featued image for: When Cloud Meets Intelligence: Inference AI as a Service
Image from Gcore.
Gcore sponsored this post.
As organizations increasingly look to implement AI solutions without the computational burden, inference AI as a service is emerging as a go-to option, offering the power of real-time decision-making without the need for in-house hardware and expertise. By outsourcing the inferencing workload to specialized cloud services, companies can save on the costs associated with building and maintaining on-premises infrastructure and simultaneously benefit from the latest advancements in AI technology, ensuring optimal performance — and a leg up on the competition. Does that mean you should plunge right into outsourcing the computational burden that comes with managing the deployment of an AI inference model? How do you ensure that managed inference AI service is the right choice for you? You’ll often find cloud service providers talking about numerous benefits and advanced features of a managed AI solution, however, they seldom offer you a clarity about what managing an AI production pipeline actually entails. Let’s understand what the journey from model training to deployment actually looks like, how to traverse this route and how Gcore deploys an inference AI model.
Gcore is the global edge AI, cloud, network, and security solutions provider. Headquartered in Luxembourg, with a staff of 600+ operating from ten offices worldwide, Gcore provides its solutions to global leaders in numerous industries.
Learn More
The latest from Gcore

AI Model Training and Inference

In the world of AI, there are two key operations: training and inference. Regular AI encompasses both of these tasks, learning from data and then making predictions or decisions based on that data. By contrast, inference AI focuses solely on the inference phase. After a model has been trained on a dataset, inference AI takes over to apply this model to new data to make immediate decisions or predictions. This specialization makes inference AI invaluable in time-sensitive applications, such as autonomous vehicles and real-time fraud detection, where making quick and accurate decisions is crucial. For self-driving cars, this service can swiftly analyze sensor data to make immediate driving decisions, eliminating latency and increasing safety. In real-time fraud detection, inference AI can instantaneously evaluate transactional data against historical patterns to flag or block suspicious activities.

The Need for Streamlined AI Production Management

Managing AI production involves navigating a complex matrix of interconnected decisions and adjustments. From data center location to financial budgeting, each decision carries a ripple effect. In my experience as head of cloud operations at Gcore, I can say that this field is still defining its rules; the road from model training to deployment is more of a maze than a straight path. In this section, I’ll review the key components that every AI production manager must carefully consider to optimize performance and efficiency. Location and latency should be your first consideration in AI production. Choose the wrong data center location, and you’re setting yourself up for latency issues that can seriously degrade user experience. For example, if you’re operating in the EU but your data center is in the United States, the transatlantic data travel times can create noticeable delays — a non-starter for inference AI. Resource management demands real-time adaptability. Elements like CPUs, memory and specialized hardware — GPUs or TPUs — require constant tuning based on up-to-the-minute performance metrics. As you switch from development to full-scale production, dynamic resource management becomes not a luxury but a necessity, operating on a 24/7 cycle. Financial planning is tightly linked to operational efficiency. Accurate budget forecasts are crucial for long-term sustainability, particularly given the volatility of computational demands in response to user activity. Unlike the more mature landscape of software development, AI production management lacks a standardized playbook. This means you need to rely on bespoke expertise and be prepared for a higher error rate. It’s a field propelled by rapid innovation, and trial and error. In this sense, the sector is still in its adolescent phase — reckless, exciting and still figuring out its standards.

How to Deploy an Inference AI Model

Now that we understand the key components of AI production management, let me walk you through a step-by-step guide for deploying an AI inference model, focusing on the integration of various tools and resources. The aim is to build an environment that ensures swift, efficient deployment and scaling. Here are some tools that will be essential for success:
  1. Docker: An industry standard for containerization, aiding in the smooth deployment of your model.
  2. Whisper: A leading AI model for speech-to-text that serves as the foundation of our service.
  3. Simple Server Framework (SSF): This Graphcore tool facilitates the building and packaging (containerizing) of applications for serving.
  4. Harbor: An open source artifact storage software used for preserving Docker images, instrumental in our setup. Use the official docs to get set up.
Here’s what the pipeline looks like: 👁 AI inference pipeline

Preparation

  • Model: For this guide, we use a pre-trained model from Hugging Face. Training the model is outside the scope of this article.
  • Environment: We have a designated cluster for model building. All commands will be executed via SSH.

Step 1: Set up a Virtual Environment

Create a virtual environment:
virtualenv .venv --prompt whisper:
Activate it:
source .venv/bin/activate

 Step 2: Install Required Packages

Install SSF:
pip install https://github.com/graphcore/simple-server-framework/archive/refs/tags/v1.0.0.tar.gz
Install additional plugins for Docker:
wget https://github.com/docker/buildx/releases/download/v0.11.2/buildx-v0.11.2.linux-amd64
mkdir -p ~/.docker/cli-plugins
mv buildx-v0.11.2.linux-amd64 ~/.docker/cli-plugins/docker-buildx
chmod u+x ~/.docker/cli-plugins/docker-buildx

Step 3: Codebase

Clone the Gcore repository that contains all the necessary files:
git clone https://github.com/G-Core/ai-code-examples.git
Change the branch:
cd ai-code-examples && git checkout whisper-lux-small-ssf


Two key files here are `ssf_config.yaml` and `whisper_ssf_app.py`. `ssf_config.yaml` is crucial for configuring the package that you’ll build. It contains fields specifying the name of the model, license and dependencies. It also outlines the inputs and outputs, detailing the endpoints and types of fields. For instance, for the Whisper model, the input is a temporary file (TempFile) and the output is a string (String). This information sets the framework for how your model will interact with users. Example for Whisper:
26 endpoints:
 27
 28 - id: asr
 29 version: 1
 30 desc: Simple application interface for Whisper
 31 custom: ~
 32
 33 inputs:
 34
 35 - id: file
 36 type: TempFile
 37 desc: Audio description text prompt
 38
 39 outputs:
 40
 41 - id: result
 42 type: String
 43 desc: Transcription of the text
SSF provides support for various data types. Detailed information can be found in its documentation. `whisper_ssf_app.py` acts as a wrapper around your Whisper model, making it compatible with the Simple Server Framework (SSF). The script contains several essential methods:
  • `build`: This is where the model’s computational graph is constructed. It must run on a host with an IPU.
  • `startup`: Manages preliminary tasks before the model can begin serving user requests.
  • `request`: This is the heart of the system, responsible for processing user requests.
  • `shutdown`: Ensures graceful termination of the model, like completing ongoing requests.
  • `is_healthy`: This method allows the model to function both as a standalone Docker container and as part of larger, more complex systems like Kubernetes.
Within the build method, the function `compile_or_load_model_exe` is invoked. This is pivotal when constructing a model’s computational graph on IPUs. Here’s the catch: Creating this graph requires an initial user request as input. While you could use the first real user request for this, keep in mind that graph-building could consume 1 to 2 minutes, possibly more. Given today’s user expectations for speed, this delay could be a deal-breaker. To navigate this, the build method is designed to accept our predefined data as the first request for constructing the graph. In this setup, we use `bootstrap.mp3` to mimic that inaugural request.

Step 4: Building and Publishing the Container

Build and publish the container, specifying your own Docker registry address and credentials:
gc-ssf --config ssf_config.yaml build package publish --package-tag harbortest.cloud.gcorelabs.com/whisper/mkhl --docker-username gitlab --docker-password XXXXXXXXXX --container-server harbortest.cloud.gcorelabs.com
The resulting container holds all necessary components: the model, a FastAPI wrapper, and the bootstrap.mp3 for initial warmup. It will be pushed to the Harbor registry.

👁 Image

Step 5: Deploying to Edge Node

For deployment on the edge node, the following command is used:
gc-ssf --stdout-log-level DEBUG deploy --config ssf_config.yaml --deploy-platform Gcore --port 8100 --deploy-gcore-target-address ai-inference-cluster-1 --deploy-gcore-target-username ubuntu --docker-username gitlab --docker-password XXXXXXXXXXX --package-tag harbortest.cloud.gcorelabs.com/whisper/mkhl:latest --deploy-package --container-server harbortest.cloud.gcorelabs.com
`gc-ssf` deploy uses SSH to run commands on the target host, so you’ll need to access it using `ssh-key` between nodes. By following this pipeline, you establish a robust framework for deploying your AI models, ensuring they are not just efficient but also easily scalable and maintainable.

Inferring a More Intelligent Future

Inference AI’s growing role isn’t limited to tech giants; it’s vital for any organization aiming for agility and competitiveness. Investment in this technology constitutes a strategic alignment with a scalable, evolving solution to the data deluge problem. Inference AI as a service is poised to become an indispensable business tool because it simplifies AI’s technical complexities, offering a scalable and streamlined way to sift through mountains of data and extract meaningful, actionable insights.

How Gcore Uses Inference AI

Despite the surge in AI adoption, we recognize there’s still a gap in the market for specialized, out-of-the-box AI clusters that combine power with ease of deployment. Gcore is engineered to provide infrastructure and low latency services in order to go global faster. This solves one of the most significant challenges in the machine learning landscape: the transition from model development to scalable deployment. We use Graphcore’s Simple Server Framework to create an environment that’s capable not only of running machine learning models, but also of improving them continuously through Inference AI. For a deeper understanding of how Gcore is shaping the AI ecosystem, consider a visit to our blog and AI infrastructure documentation.
Gcore is the global edge AI, cloud, network, and security solutions provider. Headquartered in Luxembourg, with a staff of 600+ operating from ten offices worldwide, Gcore provides its solutions to global leaders in numerous industries.
Learn More
The latest from Gcore
TRENDING STORIES
Mikhail Khlystun is a seasoned cloud engineer with over a decade of experience building infrastructure for public and private providers. Recently, Mikhail has focused on artificial intelligence, crafting powerful infrastructures for training and inference models using GPU from NVIDIA and...
Read more from Mikhail Khlystun
Gcore sponsored this post.
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Pragma, Docker.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.