跳到正文
InfoQ· Dio Rettori·· 7 小時前AI 評分47

演講:企業推理

Presentation: Inferencing for Enterprises

AI 導讀

Dio Rettori 分享大型企業進行 AI 推理時須考慮的六個議題:技術難度、成本、數據主權、依賴關係及監管等。演講亦區分訓練與推理,指出訓練較接近大規模 HPC 工作負載。

正文

Transcript

Dio Rettori: I'm super excited to be in an AI conference, because the best thing about being in an AI conference is that we pretty much don't need to do any work anymore. Because AI is doing all the work for us. AI brought you here, maybe? Even as a speaker, it's a pretty easy life to just speak in today's world, because AI can do the entirety of your presentation for you. I actually didn't do anything. I'm just going to do right now my presentation for this. I'm going to hope that's going to do well. Yes, 26 sounds good, 6 themes. I like where this is going. Cost analysis, that's a good one to add. Good job. Yes, compare with AWS, makes sense. Is there going to be a demo thing? That's brave, live. NVIDIA badges. Why did it do that? Good. Now that my presentation is ready, it took me about maybe 9 seconds. We're going to talk about, what does it say again? Give me a presentation on AI inferencing for enterprises with slides, demos, and real benchmark data. That's where we are. I'm ready to go to the next step. Let's see. It looks good. That's what it did.

My name is Dio Rettori. I work at JPMorganChase. I have been there for nearly seven years. It's funny, when I joined JPMorganChase seven years ago, I told myself, I'm just going to be a couple of years here. I'm going to learn about what these famous large enterprises look like. Then I'm going to use that knowledge, go back to a vendor, and then it's going to be easy. My job is going to be to sell to enterprises. I know exactly how they work. That's what I told myself. I was lured in to stay many times. Here I'm still there. I'll tell you what I appreciate probably the most about working at a very large enterprise, is how much your customer data is important to us. As a customer, you should feel comfortable that we do take an absurd amount of care for your customer data. Also, the complexity of the business.

If I want to say a little bit of complexity, it's some of the things that I'm going to talk to you today here. They are highly related to the complexity of large enterprises as it pertains to inferencing. This talk is not necessarily a talk about solving complex technical problems for inferencing. How do I get that extra half token per second in my call? That's not certainly there. From the perspective of an enterprise, I want to bring, what does it mean to enterprises like JPMorgan to do inferencing? A lot of what I'm going to talk to you is industry observation. You shouldn't necessarily read every single statement or hear every single statement that I say to you as a position that JPMorgan has on this stance. There might be scenarios where the position might match, and there might be scenarios where the position doesn't necessarily match my personal position. I appreciate that you have that in mind, that, again, not every single thing necessarily will or can resonate with the firm. A lot is also my personal observations on this.

Six Things Inference Is, and Why They Matter for Enterprises

There are six things that we're going to introduce to you. I think introduce is probably the right word, because each and every one of them, it's a life in their own. It's a highly complex space in their own. Again, I want you to leave here more knowledgeable about inferencing for enterprises and things you should care about. There are some tidbits of technical elements, but there's a lot of like, what should an organization that is highly distributed, global, large scale, what should an organization be interested or careful about when considering inferencing? I think we're aligned on thematic there. I'm going to introduce you to the six themes. One is that inference is indeed a hard technical problem. I know Meryem from Doubleword here can say that inference is a very hard technical problem. She would love to talk to you about how hard that is and how they can make that easy.

It is an expensive problem. Being on the enterprise side, being on the side of a company that wants to essentially continue to operate. Cost, it's always a thing. We work for a bank and money is a language we deal with really well. Understanding that things are expensive, it's important. This is obvious to us, but it's needed too, the data sovereignty problem as well. A dependency problem and also a regulatory problem. If I want to address why I think inference is hard, is this. I'm going to get you a little bit into each and every one of them because I said each of them, it's a life of work in their own. If you leave now with an expanded understanding that when you're talking about inferencing, no longer what matters is just the generation of tokens, or how fast you can do that, or how good they look, or if the results are ok. I want you to understand and leave this with like, so it's way more than I thought it is.

Training vs. Inference

This is an AI conference, but I want to establish a little bit of like a quick baseline differentiation into training versus inference so that we baseline ourselves like what does a training workload look like and what does an inference workload look like? I want to demystify a little bit and essentially, I want to say that they're highly different things. Why? Training is more akin to a large-scale HPC workload. What matters is core training stack, distributed framework, experiment management, priority queues. Probably priority queues is one of the things that matter most in training because you have possibly finite training capacity. Then when the ask from the CEO come in to train something, you need to just stop everything else, preempt, save storage, save checkpoints, and then continue working on whatever you're supposed to be doing. It is an infrastructure problem, obviously, because you need GPU clusters.

You need GPU clusters that talk extreme fast speed with each other. You need storage that can deal with that speed. You need to be topology aware because, again, GPU clusters, they will be different from each other, you're not going to have homogeneity in your GPU clusters at all. Not the entirety of the clusters is going to be homogenous, you're going to have very likely GPU clusters that look very different from each other, and then your job is, how do you optimize the type of workload that you bring to each cluster that can take advantage of those specializations or the specificities of that cluster? This is what generally training looks like, and what matters for operations is like utilization, epoch time, or loss curve reduction, cost per run, and QA. These are things that often are a concern when doing training.

There's one variable that both training and inference wants to optimize. Ultimately, I want to talk about the one variable is that you want to optimize utilizing the resources that you have. What is the most expensive resource that you have in the case of training and/or inferencing? What comes to your mind? The GPU. In both training and inferencing, probably the most expensive assets that you have is the GPU. Both of them want to maximize the utilization of that GPU so that you get your money back. If you're not being intelligent about optimizing for utilization, it's very expensive waste. It's not that like, I left a couple of EC2s running overnight and now I'm $5 less or $20 less. Like, I accidentally spun up this machine and it cost me $35. That's not the waste that we're talking about. Again, inferencing, what matters is like inferencing is a real-time, user-facing workload, latency-sensitive, stateful, and bursty.

Then the core challenge is like, you want the response speed with stability against also finite serving capacity. You want to be able to have latency-aware routing, session affinity, QPS. The two golden metrics, time for first token and token throughput, you want to look into that too. Again, you want to have memory-optimized accelerators. Accelerator is just another word for GPU. KV cache-aware serving, high throughput, low latency, security, governance, again, isolation, prompt output safety controls, garbage retrieval. These are the differentiation between both. Again, for operations, you want definitely latency tokens per second on that. I just want to differentiate the two types of problems because what's happening in the industry is that the hardware and the serving infrastructure, it's also being specialized. Before, you pretty much had the same GPU clusters that you utilize for training. You would do what you could do best to utilize the GPU clusters for inferencing.

Now the industry is going in a specialization route with inferencing-focused chipsets. NVIDIA last year announced their partnership with Grok, which has an inference-focused chipset. This is not an endorsement of any company or the others. I'm just giving industries. There is another company called Cerebras that I think do an interesting job into very large silicon dies. They tried to have the biggest die you could have so that the actual chip looks like this big. The actual processor where your GPU processor is like maybe 1.5 inch by 1.5 inch. This company, they have this. The reality is that with that much, you can just round it with way more memory and just have inferencing done at way more speed. Then you naturally incur like, what if that one large thing fails? That means you have a very large, expensive thing fail. It's never one versus the other solution. It's always a combination of things.

Inside an inferencing call, this is what an inferencing call looks like. If you've never seen the internals of a transformer for inferencing call, this is a general view. It will depend on the model that they're utilizing. Some models are adding, for example, Gemma 4 just introduced the sliding attention window, which is great. Then this is generally, yes, there is input, your text or whatever your input is, which is tokenized. What I want to show you is a different thing, is that part of it is actually GPU workload, and part of it is CPU workload. The tokenization, it's actually done on the CPU and not on the GPU. If that never occurred to you that within inferencing you needed both CPU and GPU, you do need both CPU and GPU. Part of it is CPU, part of it is GPU. Then there's obviously embeddings that happen.

You're looking at the weights table and you have the multi-attention, just going at the weights nonstop until it finally goes through all the layers, and there's a final way that projects. Ultimately the very last step is like what is the next ideal token for this scenario that just happened here. Again, this happens token by token. This is just technically what happens inside. The line that you see on pink, that is actually it. That is the things that happen within the GPU. The part of inferencing on the technical side is how do we optimize or utilize as much as we can of the GPU. That means in any of those interactions between the blocks of work, anytime that the GPU is starving, you're just wasting money there. You don't want the GPUs to starve for data at any point in time. There are many things that are done in each of the layers so that you continuously feed, you have data ready for the GPU to be processed at a fast pace.

If we go back, like what are we talking about? We're still talking about that inference is a hard technical problem. We're still in the theme of inferencing is a hard technical problem, before we go crazy about other themes. I want you to know that it's not trivial. Then when you think about doing this at scale, concurrent calls, then things like definitely KV cache come into mind, so that if you process that exact query before, then you already know what the output should look like. You shouldn't need to process that exact query again.

Inference is a Hard Technical Problem

Inferencing is a hard technical problem, so we know, and let's now go over why a little bit. KV cache grows with context length. You've got to manage what fits in GPUs. Anytime you go to a CPU during an inferencing call, you're just bogging that processing. It's going to be super slow and it's not going to be fun for anyone. There are many techniques that apply when you're doing inferencing to reduce the amount of memory you're utilizing, but it's hard to say with 100% of certainty that there isn't loss. There's a recent paper on TurboQuant that talks about near zero loss or zero loss according to the paper when you quantize. When you quantize, you just reduce the precision. How many of you feel familiar with what quantization is? You're just reducing the precision so that it's occupying less space in memory. Batching and scheduling, it's a technical problem as well, because batching, essentially, I'm making multiple calls.

Within inferencing, it's just called batching. Everywhere else, it's just called multiple requests to the same place. It does make sense to talk about batching because if we think about inferencing, you might have systems that require inferencing calls to be run immediately, and you might have systems that can run every night, for example. Optimizing the type of problem that you have for the type of infrastructure, and if utilization is ideal. If, for example, you can't wait for your calls to be processed at night when the system is not being used for live transactions, let me just say, then you're probably making good use of the resources that you have if you have batching calls. If you have calls that can be batched and not necessarily synchronous. Agents make this all go crazy because it's just multiplying everything. What I want to say from a technical element is inferencing is deep system engineering, distinct from all the training, and the skill set doesn't necessarily overlap. An HPC person would do really well with training. A person that is familiar with systems that handle thousands of requests will be probably way more familiar with the inferencing problem than the training problem.

Inference is an Expensive Problem

Inferencing is an expensive problem. This is probably my least favorite, or my favorite, depending on how you look at it. Let's just leave that number for now. I want to talk about general utilization of GPUs. I'm not sure how much you have read about how much GPUs are utilized? There's this company, Cast AI, they did a report on utilization of GPUs across the systems that run and they saw, unfortunately, only 5% utilization of the GPUs that they had. Meryem's very sad right now because that is a waste of money. She's sad because she could have used those GPUs for something else. I can see that. We're also over-provisioning CPU. Same report talks about that we're getting way more CPU than we should. Five percent for failures. UIUC/IBM did research on percentage of hardware failures, like the actual hardware, the actual equipment failing. GPUs, they fail way more often than that.

Again, cost is real. The way I want to keep the 10% there is that I was talking to a vendor, a great company that works with us. I was having an informal conversation about just hardware failure and their number was actually 10%. I think that you buy 64 GPUs and 6 of them are going to fail. Or within the stack, 10% of the stack is going to fail. GPUs are way more fragile than any other systems. They are more susceptible to temperature variations. They are more susceptible to radiation. Solar flares can affect GPU performance, like something that you think has nothing to do. Because of that, they fail. If you think I'm going to scale my system, you're going to have to buy more than what actually you think you need. They are very expensive failures. Ultimately, I think the number that I hear is if companies do get a 5% failure, they're going to be ok with only 5% of the resources that they have failing. That means like, they fail, I need a replacement. The problem with replacement is that if you don't plan for the failure, it doesn't mean that you're going to get a replacement immediately, because are you going to just buy the GPU that everybody wants, that's extremely scarce in the market. Have that in mind.

A quick game for us here. You don't need to answer right now. Just have the answer in your brain. This doesn't mean that this is what JPMorgan paid by any means. This is just like a cost estimate. It's not far from reality, but I'm not making any specific numbers about the cost for us. Just have in mind, what do you think the system on the top, 64 NVIDIA B200s with a three-year total cost of ownership, where do you think that runs for a three-year ownership? Just have an answer in your mind. Now I'm going to ask you, if you think it's the first one, second one, or third one? It is this one, $16 million to $20 million. The actual GPUs themselves are one factor in this. Why is this one factor? What do you need? You need obviously the hardware with the GPUs. You need the software licenses that come with it.

You need parts and spares. You need services to assemble, start, and operate. Any single vendor that's going to come to you and try to sell and operate, they're going to cost a lot of money too, because this is highly specialized knowledge, and they know that the asset they work with, it's highly specialized too. Power and cooling, this is general industry observation on just how much it will cost every year to do power and cooling. There are things that I'm not considering here. This is the rough numbers that I have. What this buys, the inference capacity, data never leaves your perimeter, so there are advantages. The platform, you can fine-tune. This is just the cost of the equipment. It doesn't buy you the inferencing technology necessarily. It doesn't buy the team to operate it. If you're licensing a specific model that comes with a licensing cost, it does not get you that.

Then there is a big differentiator that I see, I think these GPUs, they can last for more than three years, and once they are amortized, then they have already entered your balance sheet, and then they pretty much win from that moment on. Have that in mind. I'm not making a statement on which is best, if it's on-prem is best, or if on-cloud is best, or if an API is best. That's not the statement I'm making today. I want to make the statement that a sound, solid company will have all of it, will have the business protection to be able to ensure that the business is not going to stop operating because you chose a single vendor policy for your company. It's not a sound business practice to have single vendors for mostly anything. Again, pay-per-token could be an option. On-cloud can be an option. That's roughly the cost of P6-B200s on AWS with capacity blocks.

Capacity blocks already assume that you're going to come in reserved. That is just over just an estimation of what it would cost on-prem. Today, cloud and on-prem, they land on the same price. If you're renting the same amount of GPUs for three years from AWS with a commitment to stay there for three years, reserve capacity for three years. If you're acquiring that for your own data center, the general cost is roughly the same. It's very expensive. That means that if you go back to the first couple slides about what is the thing that we want to optimize? We want to optimize virtualization. The reality is, a cluster with 64 GPUs, it's a very small cluster. I think I read that the model that Elon Musk is training uses 220,000 GPUs. It's a very different cost scale problem and there are different types of business than most of us still. Obviously, it doesn't mean that they are buying. They're probably renting from multiple. You just can't buy that today.

Inference is an Ever-Changing Space

Let's talk about inferencing, that it's an ever-changing space. This is, I think, the most obvious one to all of us. Every three months, there is the model that is the best next model than the model that was prior. It's just like Apple saying the fastest iPhone we've ever made. I'm glad that you're continuing to make something that is faster than your previous generation. That is the same mindset. The next, so we just had Opus 4.8. It's better than 4.7. It's probably better than all the others. Very soon, we're going to have another model that's going to be better. That's just like the reality of the space. For you, you need to embrace that for a long time. That's going to be the case until we get into diminishing returns, until the changes in performance start to not justify any migration for you. You need to have in mind that the next model that's going to come will probably make you better, faster at your job, and cheaper.

How you design and plan for that is something that you need to have in mind. Again, they have been doubling every 6, 12 months. Price has been changing, ups and downs, depending on where you go. There are many things that can be done to make things faster. We have new hardware coming in. A decision that you made today based on current constraints may be wrong in six months. Probably what I want to say is that you need to have somewhere, you're contracting from somewhere the knowledge to help you with those decisions. Either you hire someone that will have the knowledge for those decisions or you're contracting that knowledge for those decisions with someone. They can't be accidental decisions that you land with a model. You have to be very intentional on what you choose, whether you're running on-prem, whether you're running on the enterprise.

Inference is a Data Sovereignty Problem

Inference is a data sovereignty problem. Every inference call to an external API is a data transfer decision, whether or not you treat it as one. You might have a contractual clause with your inferencing provider that prevents that inferencing provider from using any of the data that you're giving to their training. You might have that in place. I recommend that as a practice, but that does not mean that your data is not leaving your perimeter. If you care about data leaving your perimeter, or if you're like a globally distributed enterprise, that where the data resides is extremely important, then you need to be very certain that when data leaves, data left your perimeter. Reality is people are bringing in the most important information to that. They will give you a customer report and say, help me rewrite this report in a way that's more interesting for the customer.

There you have customer assets information, customer data, and that thing intentionally or accidentally left your firm. If you don't know what's going on, you need to know what's going on. I recommend any company that relies on SaaS to be extremely careful about third-party outsourcing as well. Every single SaaS that you contract contracts 25 other third parties. That graph has no end. If you don't have good due diligence in your vendor and partner oversight, it means that you lost control where your data is going. It's not a good thing. I don't recommend. If you work for a company that does this, tell me so that I don't do business with you. It's that serious. Obviously, things that come into this, your prompt contains data, in a RAG pipeline is retrieved, yes, we can do RAG. For globally distributed organizations, controlling where inference runs is an infrastructure requirement, not just a preference.

We do have very specific expectations today to where our data is and where it's computed. Same thing for inferencing. Global business need global endpoints. Again, most of your cloud API endpoints may not satisfy the data requirements for that region. I think self-hosted can be the answer. When inference runs in your company in your environment, data never leaves your perimeter. Compliance questions become trackable.

Inference is a Dependency Problem

Inferencing is a dependency problem. Most enterprises run through small foundation model providers that concentrates risk you don't control. You, unfortunately, have very little say into what changed between Opus 4.6 or 4.7 or 4.8. Might be just great, very good changes for the good of everybody. You have no control over what changes. As a business, you need to be continuously mindful of that. Pricing risk, I talked about this as well. Capacity risk, when everybody wants, everybody wants. When everybody wants, not everybody gets. Capability, we talked about model version. It might seem like I'm making a stronger case for self-hosted inferencing here. I'm making that a little bit. I think I'm probably making the case for us to not blindly make decisions on inferencing. It's very easy to just get a key for your favorite API endpoint and just use it and not care about what happens after that. My case is to just be very rational about those decisions.

Inference is a Regulatory Problem

Inference is a regulatory problem. This is super interesting. There are many regulations today that are requiring specific regulatory oversight on inferencing. The EU Act is one on specific logging, on proving how you made a decision, on what percentage of human or AI was utilizing that decision. I think more of that is going to happen. As a business, you need to be able to respond to that. You need to also be able to prove that. I was talking to a vendor, Vijil, they had a good story for what I can see in terms of understanding agentic governance. Because they talk about things that are regulatory items that you must comply, you don't comply, you get a fine. Things like that. If it does feel like that, the industry is looking at the right things. The U.S. had AI regulations. Then the new administration decided not to have, which doesn't mean anything about future.

Maybe the next administration will say, bring back at the federal level the regulations for things. Currently, we're not there. Maybe it's saying bring back. For companies that are globally distributed and enterprise, you're probably going to pick the most restrictive one to comply to, because then the others just become second nature to you. I think the state of Colorado, state of New York, state of California, are following similar patterns as the EU AI Act, so that if you do business in those states, or if you have compute happening in those states, they're very likely going to have to start considering this, too, for inferencing. This is legal, more than anything, because it's a policy that you must comply with.

Problems in Real-Life

I want to do a demo of one of the problems that I see with inferencing. I'm going to run a model on my own machine. It's a Gemma 4 with 4 billion active parameters. This has sliding windows, which is great. I did apply TurboQuant quantization on this. When I started preparing for the presentation, Llama didn't have TurboQuant in its kernel, so I had to find a random person from a random GitHub that had implemented the TurboQuant paper into Llama so that I could use. Thanks to that person and Claude, I was able to do it. What this TurboQuant does is essentially allows you to store way more context in memory. It does bring a penalty in processing, so it does process things slightly slower. It allows you to store a longer context. My machine is a notebook with an RTX 5080. We've got 16 gigs of VRAM.

I can run a 24 billion parameter model with 4 billion active parameters and with a good amount of context in it. This is general speeds that I got in this machine, for this. Again, this is just examples of running a model in my machine. I want to give you just a quick benchmark for one of the problems that I see today. The problem is deterministic inferencing. I have six agents on a specific query, and that is the query that you see, key considerations for running on-prem, open-weight LLMs, regulated financial services, particularly around data residency. I'm sending just this query through six agents to see what happens. This is the moment where things often break. That is my six agents there. This is a real thing. Let me just check if it's a real thing or not. Maybe you can all see through this that it's a real thing.

This is my nvidia-smi. I'm running my machine with the date. Great, that looks good. I'm going to first just get my demo ready for us so that I can do. What I'm going to do here is that I'm going to run a query on OpenAI that's going to go through six agents on what we talked about. I'm just going to do six runs. I'm running a similar query through six agents. This is going to take a couple minutes. This is the moment where things just happen. You have no idea what's going on. Maybe one thing that you're seeing already is that the processing time for the calls, it's varying. There's variation in the processing time for the calls.

A lot of the workloads that we see with agentic workloads, they are replacing humans. There's a human that was doing a piece of work. That human could have taken 5, 10 minutes, 20, 30 minutes a day to do that work. When you transfer those 4 hours of work into a few seconds, we're probably ok with that, because you're replacing a human that was doing that work. This is probably my own position in this space. My own position is that the majority of the agentic workloads are going to be actually system to system. We already have agentic workloads that are replacing humans, but we need the agentic workloads that are going to start replacing the rationalization that exists on systems today. For that, they are way more sensitive to latency changes and variations. Think about if you have a payment workflow and that payment workflow can take from 1 to 35 seconds to process, from like an unknown number of seconds, like we don't want that.

We have accepted that it is ok to have a non-deterministic or highly varied processing for agentic systems because we're also replacing humans that are highly variant. We're used to systems that are more precise. This is what happened here. You can see that the average for this one was 3 seconds. The minimum was 1 second. The maximum was 6 seconds. You can claim a little bit of variation to the network. I am wired here, but you can claim variation to many things. That is the reality. You are working with non-deterministic. This is a multi-agent call. It's a synchronous call, so it's like one after the other. This is not certainly an agent graph that's being called. I have the same demo that's running on my own machine. This is just running the exact same demo on my own machine five times using this model. I had to tweak a little bit top-K and temperature, so that this will run faster.

I hacked it a little bit to make my case. The reality is that it's still highly like telling that when you control the infrastructure of where things are running, you want the levers. You want the levers towards what you want to optimize. As you can see here, not a lot of variation between all the calls between all agents. That is why, because I'm controlling the entirety of the infrastructure where inference is running. I would feel more comfortable running agentic systems that are transactional, that have to comply with a specific certain latency expectation, if I was controlling the infrastructure. When I say controlling, I'm not just saying you got to buy the hardware, you got to have it on-prem. Ultimately, you have to have a way, either contractual, with whoever you're buying inferencing from to have that determinism in the response time. I know companies, they do sell that. Most of the inferencing companies allow you to have more specific or deterministic response times at a cost. OpenAI 5.4 mini and regular, non-pro. Pro would add a lot more.

Determinism is hard. This is when I did the demo to save the data. The variation for when doing the call on cloud was 41%. The variation when running on-prem was 5.2%. It matters. When you're talking about systems talking to systems, this matters a lot. There's many reasons, again. There's many areas where cloud variance would come from if you're on the cloud. On-prem variance comes from a lot of things that you can control. Remember, it's less about whether it's on-prem or where you're contracting, but you got to be able to control that. There's a deeper problem. This is just a plus on people that love RAG so much. RAG is the next best thing there is after sliced bread. Obviously, more tokens, more money. Ultimately, what everybody says is like, no, that's ok, I don't have to bring all the data to my context because I can just RAG the data and that will be perfect.

I can just never-ending forever RAG the data, and it is, it's solved. I can bring any context to that, and whatever augmentation I'm bringing, I'm keeping that within the context of the model, then we're good. I know everybody is like, RAG solves everything, but wait. RAG doesn't fix the problem. I'm getting towards the end of the presentation to say where I think industries should be focusing effort or having focused effort. There's a problem with RAG. RAG, as much as we want to say that it is semantic search, it is a statistical search, not certainly a semantic search. There's a paper by Google done last year actually, it was December, I think, that RAG has a mathematical ceiling. Once you bring 50,000-plus documents into a RAG, if the documents tend to be similar to each other, and you're looking for that specific variation, you're not going to get it.

Because we know that in the process of RAG, what we get is a chunk of text, we get a dense vector representing that chunk of text. We know the size of that vector. I think the OpenAI embedding is 1500 dimensions. When you get the number of documents within a certain amount of similarity between each other, the vector just doesn't have enough space to represent the differences. I know there are techniques you can apply, you can have multiple databases. Probably the Redis person will have ideas for this, like break it into chapters, break it into sections to overcome the limitation. I'm saying that RAG is not the solution. I want to talk about something that should be more of interest, which is the problem of how do you bake business ontology into the models that you run every day? That's probably the biggest question. That is a question that means having control of the model, having control of the infrastructure, so that ultimately the model has the business ontology and the knowledge about your business, so that you don't have to just keep going out for that.

Retrieval does not understand a lot. I'm making a case here for reinforcement learning with human feedback, that we have super quickly decided that context is somewhat infinite because we can just query things from a database. While you can query things from a database, ultimately there's also ceiling to that. If the model knows about your business, then that can be very helpful. I do think that reinforcement learning and just reinforcement learning pipelines are going to explode, that's my personal take, just because of our need to embed business ontology and process ontology into what the models know, so that you reduce the speed to process, you reduce agent calls, you reduce RAG, and the model already knows how to answer the most important things for your business. I state here, you cannot fine-tune a model you don't know, that's a big issue. On data, you cannot share, and then the ontology of your business will change often.

Takeaways

What to do with all this? Maybe you already picked up some things that you want to leave with, I just want to call out four things on inferencing for enterprises that I think are meaningful. If you're leaving this knowing that you probably have to think way more than what you thought so far about inferencing, or at least you're going to be careless with intention. Before you were accidentally careless, and now you're going to be intentionally careless. As long as you intentionally make the decision, then that's ok, because that means you're weighing in the risks and consequences. I think inference is a capability you build. That is whether you use someone, you got to build the capability of knowing what it is, of knowing what it means, and of knowing what happens. If you don't have someone in a team that knows what happens inside a transformer when an inferencing call happens, you probably need to start there.

Because I unfortunately see many developers that complain about the response. When we know that the one thing every single model is trained to is to give a response, not to give the right response, is to give a response. That is obviously a statistical response based on data that flows through memory layers. It's a mathematical statistical response that at the very end of the step, it gets converted from a number into a text. The first thing that happened in the model is convert text to numbers. The last thing that happens is convert numbers to text. Everything in between is just mathematical computation and statistical computation. When your model is not doing what you want, remember, it's just doing math based on what I think it should be doing math on. I do believe that there is a value in self-hosted. I would say, or probably caveat, self-hosted with understanding owning control. The space is unstable. I would say, individuals should be investing in trainable models.

Questions and Answers

Participant 1: It's a great breakdown of the real enterprise, get your own hardware. I was just curious about the middle ground, like the base tenants and the fireworks and the places that you can host a Kimi K or a Qwen and then have infrastructure for fine-tuning and things like that. I was just curious how you feel about those middle of the road solutions for a small startup to start playing around with these various layers. What would you push a person to be doing? Is it SFT? Is it fine-tuning? I'd be curious where you'd have a company that's building their own agent get going with a managed API in this context.

Dio Rettori: I think I would start with the data. I need to go back to the six angles that I presented in the beginning. That is, if what you just want is cheap token throughput, the question is like, what are you exchanging for that? Each of those decisions of what you're exchanging, you need to know why you're making those decisions. Sending your data to a provider maybe means that that provider is going to use your data to train, and that's why it's cheap. I'm not saying it is the case, but you need to know what the case is for each of the tradeoffs you're making. Blindly picking one is not the right thing. Maybe that's the whole point of the talk, don't just blindly pick one. Know what's going on. For that, you need to build the capability to make the rational decisions on what to do.

In terms of fine-tuning. I think fine-tuning, it's potentially a way to break you through from models, and then have models that respond to the specific problems that you're using the models for. That means picking an open model that's rather small. Fine-tuning that model is still going to be expensive, because again, generally training's more expensive than inferencing. For me, I have a hard time saying an answer that doesn't take into consideration the angles, or just acknowledging you while ignoring the other gives me a little bit of unease. That's maybe my point there.

Participant 2: Just touching up on your fourth point here, the taxonomy and the product ontology. Often, I've seen when this is the most ignored area in the organization, people primarily focus on the tech stuff and all that, but often just miss the taxonomy and the ontology. In your experience, how much focus is out there, or this is something which can also be solved by the help of AI?

Dio Rettori: I think it's starting. The way I would ask you to measure is check how many companies have an agentic governance job posted. Unfortunately, there's going to be a few. Luckily, the one that I do have. I think the problem, especially for agentic AI, that replaces humans, is that when we humans join a company, we sign the contract with the company. We have a code of conduct that we adhere to. We have to re-sign every period of time. Agents don't have any of that. When you're replacing humans, there is a lot of reinforcement learning in the human's brain, because I don't want to lose my job. That means I naturally apply guardrails all over my work, because that's what humans do. They do that well. Agents, they don't know any of that. Codifying every single policy that a human applies needs to be done to be successful in this space. That's my take on this.

See more presentations with transcripts

來源:InfoQ · infoq.com