Thank you for joining us today. I'm Dylan. I'm here today with my colleague Suji. I lead the product marketing for Nebius Token Factory, and I'm here with Suji as a developer advocate. And we're going to talk a bit about engineering open NLMs for production.
So before we jump right in, I want to give a few words about what we're going to cover today. We only have 20 minutes, so we'll try to keep this brief. We're going to give you a quick intro on who we are and what we do, then talk about what it takes to build the infrastructure for inference, a few words on model shaping optimizations, which are extremely important in what we do, and then we'll talk about model serving optimizations.
So we work for Nebius, specifically Nebius Token Factory. Nebius is a full stack AI cloud infrastructure. This means we're not only exposing model APIs, we run the actual physical AI layer and infrastructure underneath it. We have our own data centers, NVIDIA systems, bare metal capacity, managed cloud, and optimizing the serving and the inference through Nebius Token Factory. The top row here is really about scale and trust. We're a publicly traded company on the NASDAQ, headquartered in Amsterdam. We're very close with NVIDIA, who made a 2 billion investment in Nebius a couple months ago. And we're targeting 5 gigawatt of NVIDIA systems by the end of 2030.
The bottom row is really more about the control of the stack. This is quite a good edge we have. We operate our own data centers across the EU and the US, bare metal rather than shared cloud. We're a very early adopter of NVIDIA Rubin and Bluefield Storage. And we were amongst the first European clouds to run both Blackwell Ultra, HGX B300, and GB300 in production. We also have strong contracts from Microsoft and Meta agreements that show that the largest AI builders are already building this kind of capacity from us. The last point is quite important. It's really the important bridge to this talk: the vertical integration from silicon to service that we rely on.
Today we're talking about Nebius Token Factory. The idea here is to engineer AI for product. We're a managed inference company, meaning we deploy these models and optimize them for our customers. We know a few things today in the market of serving open source LLMs. Usually, most AI teams are stuck between choosing two bad options. Closed APIs are really easy to start with, but you often hit a ceiling really fast. You can't really tune the model to your specific use case. You share the info with everyone else. It operates as a black box, and the costs grow in a straight line with no way to really optimize things.
The other option here is self-hosting. Obviously, it's quite fun. It gives you full control on the model, but it's a massive engineering project. You really need a dedicated team to actually keep it running. And you're usually a month away from production before you even start your actual product. Token Factory is kind of the third path we identified. You get the control and the performance of self-hosting with the simplicity of a managed inference service. We do the heavy lifting and the hard infrastructure work, and then customers move forward focused on their product. This really unlocks three main things: performance, cost, and behavior of the models.
The gap between proprietary and open source models has been closing a lot. This is where we operate, and we feel comfortable operating. It's not only relying on the fact that this gap is closing down, but also figuring out how you actually make it work in your own production use cases. This is really the core of Token Factory. We've built a full-stack AI platform. Most platforms we've seen on the market either give you inference, training, data tooling. But we decided to connect everything under one loop. We have a bunch of tools to it that unlock this.
On the inference side, we allow you to run models in production. We have 60 plus models on the platform: Jamba, Kimi, DeepSeek, Qwen, you name them. We have dedicated endpoints. We have different flavors on the models depending on if you want to run them fast. We have different tooling like structured outputs, function calling, and batch API.
The second layer here is the data lab. This allows you to capture and structure the production logs. We see a lot of customers running these models in production, importing the completions, and wanting a way to slice and dice through these completions. We allow inference log imports, SQL-like data set filtering, data set versioning, exporting, and then batching these.
The third layer is post training. We allow you to fine tune, distill, optimize these models. This is a natural follow up with the data lab. Once you have your logs and your inference and you can generate synthetic data sets, you can bring them all to post training and use that to either through LoRA or full fine tuning, make the models much more adapt to the behavior you're expecting from them. We also allow model distillation. We do custom speculative decoding for customers who need really advanced custom speculative decoding tooling. We do on-demand, specific quantization and calibration of the model depending on your preferences. And we do our own GPO.
The fourth layer here is deployment. Once you run these models, once you train these models, you need a way to deploy them. This allows us to push the models into production on our own owned infrastructure. For most teams, this is a choice of different tools that you stitch together. But that creates a lot of friction and need for iteration. It slows the ability to iterate here. We allow the data flow from the inference to the training and the training flows directly into production. That allows you to keep a virtuous loop of your product. That's really what I think is the main difference between running a model and running an actual production AI system.
Here is a little slide about what we handle so you don't have to. Running models in production is actually quite complicated. It takes a lot of work. We approach the value here in three main layers.
The first one is optimization. We actively tune how models run so customers get much better speed and lower costs without having to figure out all of that themselves. We really do the heavy lifting around the model deployment and optimization. We do allow you to come in and just play with them. This is all around optimizing latency, throughput, and cost at the actual engine level. You could be running the same open source model on different providers and have completely different results in terms of costs. But there's a lot of technical stuff that goes on under the hood to make this work. Suji will cover that in a few minutes.
The second layer is infrastructure. The fact that we actually own the hardware, we keep it running, we own this vertical stack, gives us an edge that most providers don't have. It's the control. We really control what the model does. We handle everything underneath. We just give customers full control of the behavior and we take care of the infrastructure.
The third layer is enterprise readiness. I think this is really important here because running open source seems obvious. But you need a bunch of ways to secure it, make sure it works in a secure environment. There's a bunch of things here: security, compliance, reliability. They're all requirements that all these large companies usually have. They need those before they can ship anything into production. A lot of AI providers make you figure out all of these yourself. Our mission here is to really handle all of these so you don't have to.
Something that comes up a lot with AI teams is that they start with inference. They just get a model up and running. Then they realize pretty quickly that running it is not just as easy as it seems. It's only the beginning of your path to running open source models at scale. They really need to understand how it's actually performing in the real world. They want to improve it over time. They need to redeploy updates without breaking things. That full cycle from running to observing to capturing and to redeploying the model is really what separates teams that ship great AI products from teams that ship demos. I think that's really important here, especially when talking about open source.
Token Factory covers that full loop: inference to run the models. So as I said, Kimi, DeepSeek, all the main ones through real time inference or batch inference, through structured outputs and function calling, and on dedicated endpoints when necessary. They just get a model up and running. And then they realize that pretty quickly that running it is not just as easy as it seems. And it's only the beginning of your path to running open source models at scale. So they really need to understand how it's actually performing in the real world. And this is where we come in. They want to improve it over time. They need to redeploy updates without breaking things.
And that full cycle from running to observing to capturing and to redeploying the model is really what separates teams that ship great AI products from teams that ship demos. And I think that's really important here, especially when talking about open source. And so Token Factory covers that full loop inference to run the models. So as I said, Claude, DeepSeek, all the main ones through real time inference or batch inference, through structured outputs and function calling, and on dedicated endpoints when it's necessary.
And then moving on to the data lab to collect and analyze the real world signal, the completions, moving over to post training to improve and customize the model. And finally moving to the last step, and probably the most important one, which is the deployment, to push updates with full control over the model. And you actually really, it's really important for most of our customers to know where, how it's running, and what ships it's running on, the level of quantization and all that stuff. And that's really where we operate and are comfortable. Most teams today have to stitch different tools together to get this.
And we actually built one platform that tries and covers it end to end. So we really see this as a continuous improvement loop. Every cycle makes your AI more specific, way faster, and much cheaper. And now we'll dive into scaling open models to production. And I'll invite Suji on stage to take it over. Suji Srinivasan, Ph.D.: All right. Thank you, Dylan. All right, everyone. So I'll zip through a few of these, but I'm happy to have a discussion afterwards. So come and find us if you have any questions. So we believe great inference starts with great models, but that's not enough. You need great infrastructure behind the scenes to get the best performance.
And I believe that's what Nebius Token Factory provides. I get asked a lot, so this is great. You guys host open models. But how good are the open models really? And I'd like to show you this benchmark here. This is from Artificial Analysis. The black ones are proprietary models, and the blue ones are open models. And the cool thing you can see here is how the open models are actually very competitive, sometimes even better than a lot of the proprietary models. So the gap between proprietary and open models is very narrow. So we don't really have to chase proprietary models all the time for the intelligence.
You can just as well choose an open model that's just as smart and also ends up being much cheaper in most cases, which is pretty cool. So what does it mean for customers? You get choice, right? You can run these open models in any provider, hopefully Token Factory. But so there's no vendor lock-in, and also you end up saving a lot of money on tokenomics. And here's a few examples of models we host. The top table is like the large models. We call them sort of the teacher models, right? They are very capable, very smart, but also kind of large. You can also use the large teacher models to train the smaller student models.
So you sort of see both large models and small models posted. So I want to sort of structure the talk a little bit, sort of from the hardware layer, the serving layer, and the optimizing layer. So Dylan talked a little bit about hardware. We work very closely with NVIDIA. We get the latest GPUs. And not just the latest, we also optimize kernels and runtimes. So the models run really, really well. For example, something like the NVIDIA floating point four standard, we embraced it. It gives us really good model performance on latest NVIDIA chips. And if you think about model serving, that kind of takes us to the middle layer.
And there are a few optimizations I will talk about, starting with the engines. Because you need an engine to serve the model. We utilize a lot of the open source engines. We have our own internal fork that we continuously tweak and optimize. And we will deploy the model on the best engine possible. You know, not all the models run equally well on all the engines. So we figured out which engines run well and will deploy the models accordingly. So as a customer, you can just use an API, not having to worry about which kind of GPU, which engine, because we take care of all that work behind the scenes.
And when you have hundreds of thousands of GPUs running models, load balancing and routing becomes an issue. So a lot of the time people say, well, that's easy, right? We just put a load balancer in front, send traffic randomly to different GPUs. That's not how it works in LLMs, because the workloads are slightly different. For example, just to give you an idea, in the early days of LLMs, the inputs are small. I could just say, right, like a one-liner. And the output is all small. But now we are seeing your input could be pretty large. Like we are sending large code bases using coding agents to do refactor or summarize or analyze, right?
So the output, as you can see, can vary from large to small, large to large. And routing them accordingly will give you, you know, it's not trivial. So what we employ is we employ routers that actually are cache aware. What I mean by that is like, if you look at the left side here, you will see that my cache, like different colors, it's kind of fragmented all over. So our cache rate isn't all that great because my request is landing randomly at different GPUs that may or may not have the cache. But if you look at the one on the right, you can see that now the cache is much more coherent. See the colors are kind of together.
And the router knows where the caches are stored and it will route them accordingly.
So when you actually do the inference, you get pretty good cache rate and very good speed. Another thing, and this is something we are really excited about, it's called speculative decoding. So the challenge is LLMs, they generate tokens one by one, one, two, three, four, right? And large models take a long time to generate these tokens. So the idea for speculative decoding is how about we employ a smaller model, which is a lot of the time faster and cheaper to generate the tokens, but then have the large model verify at the end.
So it's kind of like if you're a senior engineer, you're kind of farming out the work to a junior engineer, so they're kind of doing the heavy lifting and then you are verifying the work. And this actually surprisingly scales really well. So the smaller models can generate tokens very quickly and the large model can verify. And if it's good, we are done. If the large model doesn't like the answer, it will actually regenerate the tokens. So that's kind of the worst case scenario. But most of the time, you will get pretty good performance out of this by mixing in small models and large models.
And this is actually a feature we actually baked into Token Factory that gives you pretty good optimization speed. So one of the things we experimented, we sort of trained draft models. You can train them using synthetic data. Even if you train them using generic data, you get, you know, we are seeing up to 30% improvement. But it gets even better if you can train the smaller model using your own data. Right? So we did a lot of experiments here. And we are launching a feature. You can actually train these draft models almost with one click. And, you know, we will capture your production data and train the draft models for you, which is pretty cool.
Another optimization behind the scenes is KV cache. This is probably one of the biggest ROI in doing inference because creating tokens is expensive, especially when you are doing one at a time. And the common sense is once you generate a token, it doesn't change. So there's no need to keep regenerating the same token over and over again. So the idea is we cache the tokens. So just to kind of give an example here, let's say this is my prompt the cat sat on. Right? Let's say those are my prompt and I'm creating the next word. And as soon as we create the next token, we cache it. And the next time we need to look up, we don't have to regenerate it. We just look up the cache.
Very easy. And this actually speeds up quite a bit. So just to kind of give you some ideas, we are seeing speedups anywhere from 5 to 10x, not just 5 to 10%, actually 10x, right? Because caching really works well. The thing about caching is it takes a lot of memory, right? Because, you know, especially with our large inputs and large token windows. And one thing we've been implementing in Token Factory is when we do caching, we can actually, because GPU memory is very precious, So the idea is we patch the tokens. So just to give an example here, let's say this is my prompt: the cat sat on. Right? Let's say those are my prompt and I'm creating the next word.
And as soon as we create the next token, we cache it. And the next time we need to look up, we don't have to regenerate it. We just look up the cache. Very easy. And this actually speeds up quite a bit. So just to give you some ideas, we are seeing speedups anywhere from 5 to 10x, not just 5 to 10%, actually 10x, right? Because caching really works well. The thing about caching is it takes a lot of memory, right? Because especially with our large inputs and large token windows.
And one thing we've been implementing in Token Factory is when we do caching, we can actually, because GPU memory is very precious, so we can offload caching out of GPU memory automatically, save it in regular memory, and then bring it back. So we don't throw away the cache we spend a lot of time building. We actually offload it and bring it back. And all of this is done automatically. So you don't have to worry about managing cache. This is done for you behind the scenes. So this is one of the important optimizations we have done to speed up inference. Another one is called decoding. So the way you think about this is there are two stages to LLMs.
One of them is filling the context that is very CPU intensive. And then another one is actually decoding that is very memory intensive. And a lot of the time if you do them in the same GPU, they are competing for resources. So what we have done is separate those two phases out. So one GPU set does pre-fill. They are very compute efficient. And the other one does decoding that's very memory efficient. And then they transfer the KV cache in between. And we have seen this is actually working out pretty well. And another thing we do, and this is already baked into our platform, we also quantize the models. And when we do quantizing, we are reducing the precision.
But we don't want to go too far, right? Because then your model starts degrading in quality. So what we do is we do a lot of experiments to figure out what's the sweet spot of quantization. So you can run the models efficiently, but not degrade the performance too much. So all of these things are already built in. And there's a few more, and in the interest of time, I'll wrap this up here. And these are some of the things we covered. Spec decoding, KV cache, and when you do caching, doing routing that is actually cache aware. And also pre-fill, separating pre-fill and decoding phases.
And if you're using an API, you might not realize all these blocks going behind the scenes, but they are, right? And this is what makes an inference platform really great, especially for the large models we are seeing, like the one trillion models we are seeing. And finally, I want to quickly give this out. So probably this is the most important slide of the presentation. So we can take a quick picture or scan the code. This will give you some credit on Token Factory platform. So we allow for you guys to try it out. We have all the latest open source models, GLM-52, K-27. Try them out. I've been using them a lot for coding lately, and they work really well.
So if you're using Cursor or Open Code, you can very easily incorporate our models for coding work. Try them out. Let us know.
And there's a Discord channel at the bottom. If you have any questions, you can post them there. Or you can message me or Dylan. We will be happy to answer your questions. So I'll stop here. We are like 10 seconds. So all right, on time. But we'll be around. Please come and talk to us if you have any questions. We'll be happy to chat more and then take your questions. Thank you all. And if it's good, we are done. If the large model doesn't like the answer, it will actually regenerate the tokens. So that's kind of the worst case scenario. But most of the time, you will get pretty good performance out of this by mixing in small models and large models.
And this is actually a feature we actually baked into TokenFactory that gives you pretty good optimization speed. So one of the things we experimented, we sort of trained rough models. You can train them using synthetic data. Even if you train them using like generic data, you get like, you know, we are seeing like up to 30% improvement. But it gets even better if you can train the smaller model using your own data. Right? So we did a lot of experiments here. And we are launching a feature. You can actually train these draft models almost like with one click. And, you know, we will capture your production data and train the draft models for you, which is pretty cool.
Another optimization behind the scenes is KVCache. This is probably one of the biggest ROI in doing inference because creating tokens is expensive, especially when you are doing one at a time. And the common sense is once you generate a token, it doesn't change. So there's no need to keep regenerating the same token over and over again. So the idea is we patch the tokens. So just to kind of give an example here, let's say this is my prompt the cat sat on. Right? Let's say those are my prompt and I'm creating the next word. And as soon as we create the next token, we cache it. And the next time we need to look up, we don't have to regenerate it. We just look up the cache.
Very easy. And this actually speeds up quite a bit. So just to kind of give you some ideas, we are seeing speedups anywhere from 5 to 10x, not just 5 to 10% actually 10x, right? Because caching really works well. The thing about caching is it takes a lot of memory, right? Because, you know, especially with our large inputs and large token windows. And one thing we've been implementing in Token Factory is when we do caching, we can actually, because GPU memory is very precious, so we can offload caching out of GPU memory automatically, save it in a regular memory, and then bring it back. So we don't like throw away the cache we spend a lot of time building.
We actually offload it and bring it back. And all of this is done automatically. So you don't have to worry about managing cache. This is done for you behind the scenes. So, and this is one of the important optimizations we have done to speed up inference. Another one is called decoding. So the way you think about this is like there are two stages to LLMs. So one of them is like sort of filling the context that is very CPU intensive. And then another one is actually decoding that is very memory intensive. And a lot of the time if you do them in the same GPU, they are kind of computing for resources. So what we have done, we sort of separate those two phases out.
So one GPU set does pre-fill. They are very, you know, compute efficient. And the other one does decoding that's very memory efficient. And then they sort of transfer the KV cache in between. And we have seen this is actually working out pretty well.
And another thing we do, and this is already baked into our platform, we also quantize the models. And then we do quantizing, you know, we are reducing the precision. But we don't want to go too far, right? Because then your model starts, you know, quality starts getting degrading. So what we do is we do a lot of experiments to figure out like what's the kind of the sweet spot of quantization. So you can run the models efficiently, but not degrade the performance too much. So all of these things are already built in. And there's a few more, and in the interest of time, I'll sort of wrap this up here. And these are some of the things we kind of covered.
Spec decoding, KV cache, and when you do caching, doing routing that is actually cache aware. And also pre-fill, you know, separating pre-fill and decoding phases. And if you're using an API, you might not realize all these blocks going behind the scene, but they are, right? And this is what makes an inference platform really great, especially the large models we are seeing, like the one trillion models we are seeing. And finally, I want to quickly give this out. So probably this is the most important slide of the presentation. So we can take a quick picture or scan the code. This will give you some credit on Token Factory platform. So we allow for you guys to try it out.
We have all the latest open source models, GLM-52, K-27. Try them out. I've been using them a lot, a lot for coding lately, and they work really, really well. So if you're using a cursor or open code, you can very easily incorporate our models for coding work. Try them out. Let us know. And there's a Discord channel at the bottom. If you have any questions, you can post them there. Or you can, you know, message me or Dylan. We will be happy to answer your questions. So I'll stop here. We are like 10 seconds. So, all right, on time. But we'll be around. Please come and talk to us if you have any questions. We'll be happy to chat more and then take your questions.
Thank you all. Nate Nate Nate Nate Nate Nate Nate Nate Nate Nate Nate Nate Nate Nate Nate Nate