16.10.2026

What Is the PARK Stack? – O’Reilly

Background: Stacks with four-letter acronyms

Based on Wikipedia, the LAMP stack was coined in 1998 by Michael Kunze to explain what had emerged as a preferred open supply software program stack for web sites. When the World Broad Net exploded in reputation earlier within the ’90s, organizations used an advert hoc combination of proprietary instruments and working programs, together with some open supply software program (OSS), to construct web sites. The LAMP stack shortly turned the preferred set of totally OSS parts for this objective.

LAMP is an acronym that stands for the next:

  • Linux – the working system
  • Apache HTTP Server – the net server
  • MySQL – the database
  • Perl, PHP, and/or Python – the applying programming language

It’s onerous to imagine this in the present day, however on the time, the thought of counting on open supply software program was controversial. Issues about help and vulnerability for the reason that supply code is seen to everybody had been ultimately resolved. Open supply was irresistible due to the good flexibility, value efficiencies, no vendor lock-in, and fast evolution of capabilities offered by widespread OSS tasks. The LAMP stack turned one in all t​​he predominant drivers of enterprise adoption of open supply.

The PARK stack

Just like the rise of the net, the sudden explosion of curiosity in generative AI with massive language fashions (LLMs), imaginative and prescient fashions (VMs), and others has pushed curiosity in figuring out the very best core OSS parts for a software program stack tailor-made to the necessities for generative AI. This period now has the PARK stack. It was first instructed by Ben Lorica in “Traits Shaping the Way forward for AI Infrastructure,” in November final 12 months.

PARK stands for the next:

  • PyTorch – for mannequin coaching and inference
  • AI fashions and brokers – the center of generative AI
  • Ray – for fine-grained, very versatile distributed programming
  • Kubernetes – the industry-standard cluster administration system

Right here, I’ll present a short description of every one and the necessities it meets.

PyTorch

The AI stack wanted by mannequin builders gives the flexibility to coach and tune fashions. Utility builders want environment friendly, scalable inference with fashions and the brokers that use them.

PyTorch began as one in all many instruments for designing and coaching a wide range of machine studying fashions. It’s now the preferred selection for this objective. It’s used to design and practice most of the world’s most outstanding generative AI fashions. Alternate options embrace JAX and its predecessor, TensorFlow.

PyTorch was developed and open-sourced by Meta. It’s now maintained by the PyTorch Basis. The ecosystem has expanded to incorporate different tasks, reminiscent of for inference (vLLM), distributed coaching and inference (DeepSpeed and Ray), and plenty of libraries.

The price of mannequin inference drives the necessity for specialised and extremely optimized inference engines, like vLLM. So, PyTorch isn’t used alone for inference, though the favored inference engines use PyTorch libraries.

By the way, the rise of generative AI has additionally induced a resurgence in reputation for Python, partially as a result of Python has been the preferred language for knowledge science, of which generative AI is a pure half.

AI fashions and brokers

The distinctive capabilities of generative AI purposes are offered by a number of fashions and brokers that use them. The primary wave of AI purposes, typically easy chatbots, used a single mannequin that had been educated to know human language very properly, particularly English, then tuned in varied methods to make use of that language talent extra successfully, reminiscent of answering questions, avoiding undesirable speech, offering factual output, and many others.

Mannequin structure has quickly developed, together with making smaller, extra succesful fashions and utilizing collections of fashions (such because the combination of specialists structure) that present higher effectivity whereas sustaining outcome high quality.

Nevertheless, fashions have some explicit shortcomings. For instance, they know nothing of occasions that occurred after they had been educated and they don’t seem to be educated on all potential specialist knowledge wanted to be efficient for each potential area. Therefore, utility patterns quickly emerged to enhance the strengths of fashions. The primary sample was RAG (retrieval-augmented technology), the place a repository of knowledge is queried for related context data, which is then despatched as context with the consumer question to a mannequin for inference.

The extra normal strategy in the present day is brokers, which have been outlined this manner, “software program programs that use AI to pursue targets and full duties on behalf of customers. They present reasoning, planning, and reminiscence and have a stage of autonomy to make selections, be taught, and adapt.” Pursuing consumer targets can imply discovering and retrieving related contextual knowledge, evaluating the standard and utility of retrieved data, summarizing findings, gracefully recovering from errors, and many others.

There isn’t any one dominant mannequin selection and even “household” of fashions. Equally, there isn’t any one agent framework to rule all of them. This displays each the very fast evolution of fashions and agent design patterns but additionally the variety of potential AI purposes, which makes it unlikely that anybody selection will meet all wants.

Need Radar delivered straight to your inbox? Be part of us on Substack. Enroll right here.

Ray

Mannequin coaching, varied types of tuning, and inference of fashions require totally different distributed computing patterns that require extremely optimized implementations, given the big power consumption and associated prices related to generative AI. Single GPU programs are too small for these duties for the biggest generative fashions. Even for smaller fashions, large parallelism permits these processes to scale extra successfully.

For mannequin coaching and tuning processes that contain further coaching with new knowledge, a large variety of iterations are used, the place in every loop, knowledge is handed by way of the mannequin, and the mannequin parameters (weights) are adjusted incrementally to scale back errors. These iterations have to be quick and environment friendly. When the mannequin parameters are distributed over a number of GPUs, very excessive bandwidth alternate of updates is required. Coaching iterations have massive reminiscence footprints and big knowledge exchanges.

Reinforcement studying is one other a part of tuning, used to enhance extra advanced behaviors for domains. RL additionally requires large quantities of quick iterations, however the measurement scales and knowledge entry patterns are usually smaller, extra fine-grained, and extra heterogeneous.

Lastly, inference distributed computing patterns are the identical as step one in a coaching iteration, the place knowledge flows by way of a mannequin, however there isn’t a parameter replace step.

Ray gives the pliability for these disparate necessities. It’s a fine-grained distributed programming system with an intuitive actor mannequin abstraction. Ray was developed by researchers on the College of California, Berkeley, who wanted an environment friendly and easy-to-use system for scaling up computation required for his or her reinforcement studying and AI analysis. The pliability of Ray’s abstractions and the effectivity of its implementation makes Ray properly suited to the brand new distributed computing necessities generative AI has launched.

Anyscale is a startup targeted on productizing Ray. Ray’s core OSS was lately donated to the PyTorch Basis, as talked about above.

Kubernetes

Massive scale mannequin coaching and tuning, in addition to scalable utility deployment patterns, introduce many sensible necessities, together with administration of clusters of heterogeneous {hardware} and different sources, in addition to the processes working on them. Kubernetes has been the {industry} customary for cluster administration for a decade, rising from Google’s work on Borg, together with contributions from many different organizations. Kubernetes is a part of the Linux Basis. The principle alternate options to Kubernetes are the administration instruments provided by the cloud distributors, AWS, Microsoft Azure, Google Cloud, and others. The benefit of Kubernetes is that it runs seamlessly on these platforms (provided as a service or you may “roll your individual”), in addition to on-premises, offering the advantages of the cloud providers however with out vendor lock-in.

At first look, it’d seem that the distributed capabilities of Ray and Kubernetes overlap, however actually they’re complementary. Ray is for very fine-grained and light-weight distributed computing and reminiscence administration, whereas Kubernetes gives extra coarse-grained administration and a broad suite of utility providers required in fashionable environments (like safety, consumer administration, logging and tracing, and many others.). It’s common for a containerized Ray utility to run its personal idea of clustered processes inside a set of containers in a Kubernetes cluster. Ray and Kubernetes carry complementary strengths. The truth is, there may be the open supply KubeRay operator which lets you use Ray on Kubernetes with out having to be an knowledgeable in Ray or container administration.

What’s lacking from PARK?

LAMP was by no means meant to offer all the pieces wanted for web site deployments. It was the core upon which further providers had been added as required. PARK is analogous, though the presence of Kubernetes covers loads of the general-purpose service necessities!

For generative AI purposes, PARK customers must take into consideration new necessities, along with all the usual practices now we have used for years. Let’s talk about a couple of subjects.

Information and knowledge administration

Typical knowledge administration necessities and practices nonetheless apply, however AI brokers are driving adjustments too. Ben’s submit on knowledge engineering for machine customers discusses a variety of tendencies. For instance, some suppliers are seeing brokers dominate the creation of recent database tables and people tables are sometimes ephemeral. Brokers are much less tolerant of database question issues in comparison with people and brokers are much less cautious about safety considerations.

Unstructured, multimodal knowledge is rising in significance; video and audio in addition to textual content. Use of specialised types of structured knowledge can be rising, like data graphs and vector databases for RAG purposes, and have shops for structuring knowledge extra successfully.

Agent orchestration

Any distributed system wants cautious administration of the interactions between parts, for functions of safety, useful resource administration, and efficacy. The Mannequin Context Protocol (MCP) and the Agent2Agent Protocol (A2A) are two of a number of rising requirements to permit fashions to find out there agent providers and learn to use them mechanically. These promising capabilities additionally increase many considerations about safety and the necessity for cautious management, which is driving the emergence of recent gateway and repair tasks tailor-made to the precise wants of agent-based purposes, for instance, ContextForge. Equally, supporting options are being added to established instruments to satisfy the identical wants.

Reminiscence administration

Brokers should handle and use the knowledge they’ve acquired. This contains working inside the out there context limitations for his or her fashions and specializing in probably the most helpful data, to optimize their use of sources and effectiveness. AI agent reminiscence is an ongoing analysis subject with tasks and startups rising, like MemVerge and Mem0, which emphasize the efficient use of short-term (i.e., single session) reminiscence. Established persistence instruments are additionally being utilized to the issue, e.g., Neo4j and Redis, which additionally help longer-term reminiscence throughout periods.

Dex is a brand new strategy that addresses a specific problem brought on by MCP and A2A: the explosion of knowledge that will get added to the inference context reminiscence. This reminiscence is restricted and efficiency shortly degrades when the context grows too massive. Dex takes what an agent learns the way to do as soon as, like utilizing MCP to learn to question GitHub for repo data, and turns that data into reusable code that each eliminates pointless repetition of the training step and executes the duty deterministically exterior the mannequin context. Dex additionally gives a type of long-term reminiscence.

What’s subsequent?

What are your ideas in regards to the PARK stack? What do you consider the 4 parts versus alternate options? What AI utility necessities do you assume want extra consideration? Tell us!

POVEZANE VIJESTI

LEAVE A REPLY

Please enter your comment!
Please enter your name here

POVEZANE VIJESTI

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
100% Free SEO Tools - Tool Kits PRO