[00:00:06] Hello, everyone. Let's talk about local [00:00:08] AI and amazing scenes that we can do [00:00:11] with models using Foundry Local, Ollama, [00:00:14] and more. [00:00:15] My name is Bruno. I'm part of the DevRel [00:00:16] team in GitHub, and today I really, [00:00:18] really want to to show with you a couple [00:00:21] of nice demos because we all seen all of [00:00:24] these great demos of chatbots running [00:00:27] locally with Llama, Qwen, Phi models. [00:00:31] But now we have more options. Now we [00:00:33] have the chance to start to use very [00:00:35] specific [00:00:36] focuses model locally that can be great [00:00:39] to support a different set of scenarios. [00:00:41] I don't want to make a spoiler about [00:00:43] what I am going to show. But in order to [00:00:45] do that, we need to have support to run [00:00:47] these models locally. So this is the [00:00:49] moment that I really, really want to [00:00:51] show you how we can do this with .NET. [00:00:53] And by the way, because this is .NET, we [00:00:55] are going to run this in Linux, in Mac, [00:00:58] in Windows, and more. And the idea for [00:01:00] today is that we are going to work with [00:01:03] Foundry Local. Foundry Local it's one [00:01:05] amazing technology that you can install. [00:01:07] Let me show you here. There's a full [00:01:08] documentation about what we can do, but [00:01:11] this literally a manager that allows you [00:01:13] to install [00:01:14] models locally and it's also help you [00:01:16] with the hard part, which is how you can [00:01:18] use this model locally. So there is a [00:01:20] full set of documentation available. [00:01:22] Take a look at that. And I already have [00:01:24] it installed here. And if I take it I [00:01:26] want to take a look of the [00:01:28] models that I can run locally. This also [00:01:30] this is important because Foundry will [00:01:32] Foundry Local will show you the models [00:01:34] that you can run in your machine. You [00:01:36] can see here that I have standard set of [00:01:38] chats models like Qwen, DeepSeek, and [00:01:41] more. But I also have multimodal models [00:01:44] when I can do activities with audio or [00:01:46] images. I have a speech models that we [00:01:49] are going to start here today, and I [00:01:51] also have embeddings models. So Foundry [00:01:53] Locals do everything for us. And I have [00:01:55] also the chance to work with CPU, GPU, [00:01:58] some of these models tools, [00:02:01] source other supports cache. [00:02:03] If you have an NPU, you can use your [00:02:05] NPU. Found in local literally help us a [00:02:07] lot. So today what I want to do with [00:02:10] with us is [00:02:11] to start with the speech, speech to [00:02:13] text. And this is kind of a nice and [00:02:15] simple scenario. Everybody, you probably [00:02:17] done this in the past. You pick up an [00:02:19] audio and you want to have the [00:02:21] transcription of an audio. So I have [00:02:23] here so um I need to send the report by [00:02:26] Friday, yada yada yada. So the way that [00:02:28] we are going to do this is we are going [00:02:30] to open one [00:02:33] one audio file and we are going to [00:02:34] process the file. And the text is the [00:02:36] code is very very simple. We are going [00:02:38] to basically pick up chunks of the [00:02:40] audio. [00:02:41] We are going to send those chunks of the [00:02:43] audio to the model that we initially [00:02:45] load with Foundry Local and then we are [00:02:48] going to get the transcription. [00:02:50] And it's 20 lines of code. When you take [00:02:52] a look at the source code and the sample [00:02:54] code is going to be bigger because I [00:02:55] have a lot of comments and explanation, [00:02:57] but in 10 lines of code you can do this [00:02:59] and it's very very fast. And I am using [00:03:02] a model locally which is called [00:03:03] Nemotron, one model that came from [00:03:05] NVIDIA. So let me open here my demo [00:03:08] number one. Let's go to the code here. [00:03:10] Let's go to the top and enable. So I am [00:03:13] using Nemotron speech here which is [00:03:16] is one of the model that is supporting [00:03:18] Foundry Local. This is this model is [00:03:20] also run for CPU. Even if I have a [00:03:23] decent GPU, it's fast enough in CPU so I [00:03:26] want to use it there. [00:03:27] And I have here my WAV file which is a [00:03:30] very simple and let me see if we can [00:03:33] take a listen to the file and it's very [00:03:36] simple. [00:03:37] >> um I need to send the report by Friday. [00:03:40] No, wait. Make that Thursday at 3:30 [00:03:44] p.m. [00:03:45] Please update the project notes before [00:03:47] the meeting. [00:03:49] >> Okay. Yes, it's an an AI generated voice [00:03:52] and audio, but it's very similar how I [00:03:54] speak with a lot of fillers and pauses [00:03:57] and more. We are going to get there [00:03:59] soon. But But back, I have my model, I [00:04:02] have my audio file. What I am going to [00:04:04] do a couple of defensive coding here, [00:04:06] validate that everything is in the path [00:04:08] that it needs to do. Then we are going [00:04:09] to read the WAV file, right? [00:04:11] Audio file, it's everything there and [00:04:13] then we create [00:04:14] the Foundry Local Manager. And the [00:04:16] manager is going to be the one that is [00:04:18] going to do everything for us. And [00:04:19] that's why I like Foundry [00:04:22] local a lot because we are going to be [00:04:24] able to say, hey Foundry, give me that [00:04:25] model, give me this model. The motron [00:04:27] can't remember the version that I am [00:04:28] using. [00:04:30] And Foundry local is going to say, hey, [00:04:31] do I have the model? No. So the first [00:04:33] time is going to download the model and [00:04:35] it's going to save the model in the [00:04:36] cache. [00:04:37] And the second time, if I run this [00:04:39] application again, it will check, I have [00:04:40] the model? Yes. So here it is. You have [00:04:42] the instance of the model. [00:04:44] And everything that we need to use the [00:04:45] model is going to happen in the back for [00:04:46] us and we don't need to handle that, [00:04:48] which is very important. Otherwise, we [00:04:50] need to download the model, place it in [00:04:51] the [00:04:52] We need to do a lot of [00:04:54] foundational stuff that I really don't [00:04:56] like. But once we have the model, we are [00:04:58] going to load the model and that's it. [00:05:01] We load the model, this goes in memory [00:05:03] and we start to use it. This is the [00:05:05] moment that we can start to create a [00:05:07] session, an audio session, enable the [00:05:09] streaming of the session, [00:05:11] pick up the audio that we have from the [00:05:12] audio file and then doing chunks, [00:05:15] iterate so in the audio and when we get [00:05:18] there, show the streaming response. And [00:05:20] the cool part about this is this work [00:05:22] with streaming. So what we can do now, [00:05:25] we can literally say, hey, give me [00:05:27] the transcript of the audio as soon as [00:05:30] we are starting to read the audio. So if [00:05:32] I go back here to the console and I run [00:05:34] this, let me go to demos, 01 and here [00:05:38] let's do a .NET run. We are going to see [00:05:41] how the WAV file, the audio file is [00:05:44] going to arrive here chunk by chunk. We [00:05:46] initialize Foundry. I already have the [00:05:48] model and we can see here that literally [00:05:52] word by word is working and I like it [00:05:54] and it's fast and it doesn't use a lot [00:05:56] of resources. So local audio to speech [00:06:00] to text is something that is valuable. [00:06:03] However, how about if we want to the [00:06:05] same, but with our microphone? If we [00:06:07] want to do the same stuff but using our [00:06:09] microphone, [00:06:11] something that a lot of people is doing [00:06:13] today, speaking to your machine and [00:06:14] getting the transcript, is literally the [00:06:16] same. Is literally the same code. We [00:06:18] only going to change here is the way [00:06:20] that we pick up the audio. [00:06:22] So here, if I go back to the beginning, [00:06:25] is going to be literally the same, but [00:06:28] we are going to load the model and then [00:06:31] we are going to access to the microphone [00:06:33] in my machine. I am access to my default [00:06:35] microphone. I have several here. I don't [00:06:37] know which is the good one that I have, [00:06:39] but when I have here and I have data, I [00:06:41] am going to start to put these [00:06:44] chunks of data directly to [00:06:47] the model and I am going to have the [00:06:49] live transcription when we have this. So [00:06:51] I am running with events, so I have a [00:06:52] couple of tasks. One task to get the [00:06:54] micro to input, another task every time [00:06:56] that I have an input from the [00:06:57] microphone, I will send it to the [00:07:00] to the model. So I'm going to show the [00:07:02] streaming live and I am going to stop at [00:07:04] the end. So if I go back here, let's go [00:07:06] to my demo number two. Let's do okay, I [00:07:10] am here in Foundry Live. I am going to [00:07:12] run this. Let's clear this so it's [00:07:14] easier to read and let's do a dot net [00:07:17] run. [00:07:18] So right now, [00:07:19] like before, Foundry Local is going to [00:07:21] load the model still using Nemotron 6 or [00:07:24] something and then I am going to start [00:07:26] to speak. Is going to pick up the audio [00:07:28] from my speak and is going to see as we [00:07:31] see as going to do as we see here [00:07:34] the transcription of my voice. And it [00:07:35] works great. It's nice and is fast and [00:07:38] my machine is literally relaxed today. [00:07:40] It's not doing anything, so I can take [00:07:42] advantage of this. At any moment I can [00:07:44] stop and I will stop the transcription [00:07:47] and that's great. [00:07:49] And one scenario that a lot of people [00:07:50] use this and it's very popular and and [00:07:53] and useful is hey, I have a podcast or [00:07:55] have a video and I want to have the [00:07:57] transcription. You can use a local model [00:07:59] to do this and the newest model [00:08:02] Whisper, Nemotron and more are going to [00:08:04] give you very good results. And then [00:08:06] there are other scenarios where, okay, [00:08:08] now I have my podcast transcriptions, I [00:08:11] want to have the timestamps. So I want [00:08:13] to create my subtitles file or whatever. [00:08:16] There are other scenarios where you can [00:08:18] do that. However, for me, personally, [00:08:21] what I need to do is I need something [00:08:23] that helped me to move forward when I am [00:08:26] speaking with my machine, usually with [00:08:29] large language models, and I want to [00:08:31] provide an idea because I I have three [00:08:34] different speeds. I type in one speed in [00:08:36] one speed, I speak in another speed, and [00:08:38] I sink, my mind works in another speed. [00:08:41] So sometimes when I'm speaking, I sink [00:08:43] something go back here and there. So we [00:08:45] have what we call normalization models [00:08:49] that basically allows us to get clean [00:08:53] text. And clean text is a [00:08:56] There are different ways to do this. [00:08:57] There are different approaches, there [00:08:58] are different models, and there are a [00:08:59] lot of ways to do this, but [00:09:02] let's focus on a couple of scenarios. [00:09:03] Like in example, remove fillers, the um, [00:09:06] the duplicated words, or when I say [00:09:09] something and say, oh, no, no, wait, [00:09:10] something else. So everything that it's [00:09:13] going to make a noisy prompt, think [00:09:16] about the prompt, is going to be filled [00:09:18] by this model. [00:09:19] And the way that they work is we provide [00:09:21] the transcript in example, and they're [00:09:23] going to analyze the transcript and [00:09:24] they're going to provide a better one. [00:09:26] And usually, in my experience, this is [00:09:28] good because we are going to save tokens [00:09:31] here. If I have a big transcript with a [00:09:33] lot of back and forward filler words and [00:09:35] more, and then I normalize this, hey, [00:09:37] this is a good moment to have a better [00:09:40] experience. So what we have here is the [00:09:42] chance that if you are speaking [00:09:44] to a large language model, you can use [00:09:47] one of these models to do this. [00:09:49] The challenge here when we have this is [00:09:52] that in example today, we don't have [00:09:54] models available in Foundry Local to do [00:09:57] this. [00:09:57] One of the popular models that we have [00:10:00] is S one mini. S one mini is a local [00:10:03] model. [00:10:03] I'm going to get there. [00:10:05] And S one mini can pick up a sentence [00:10:06] like the one that you see here and it's [00:10:08] going to remove the um, the [00:10:10] the third party, is going to make [00:10:12] everything looks nice in the output. [00:10:15] However, we have a challenge here is how [00:10:18] we use this model. Because step one is [00:10:21] the one that gives you pick up an audio [00:10:23] and get the text. Step two is I want to [00:10:26] normalize this text and I have options [00:10:28] here. I can say the style, semi-formal, [00:10:30] and what is the the structure that I [00:10:32] want to have here, what is the context [00:10:35] that I am working on here. But the [00:10:37] challenge that we have when we use this [00:10:39] model is how do we get here? How do we [00:10:41] use these models? [00:10:43] So let me show you [00:10:45] where we where we start. So here the the [00:10:48] model is an open source model, open [00:10:50] weights model, sorry, that you can get [00:10:52] in Hugging Face. It's from [00:10:54] Super Whisper, which is a company that [00:10:56] they give a tool that you can use in [00:10:58] Windows, Mac, and more. I can't [00:10:59] remember. But this is a tool that [00:11:01] basically pick up your audio and [00:11:02] generate text. And they have this [00:11:04] normalize or cleaner mode, which is a [00:11:07] great model. However, it's not ready to [00:11:09] be used in .NET because it's in a format [00:11:12] that we can't handle in .NET. So what I [00:11:15] did, I pick up the model and I create [00:11:18] our Onyx version of the model. Onyx, [00:11:21] which is a standard that we can run in [00:11:23] Windows, Linux, and Macs. We have a lot [00:11:25] of libraries in the Windows machine [00:11:27] learning libraries that we can use Onyx [00:11:30] models in a very good way. So I have the [00:11:32] original model, I comply with the [00:11:34] license and more, and I create an Onyx [00:11:35] version. And then I create a library. I [00:11:38] create a library in .NET that is going [00:11:40] to allows me to do this. It's going to [00:11:42] allow me to use this model to do the [00:11:44] normalizing. So the way that is this is [00:11:47] going to work is if I go to the [00:11:50] to the third [00:11:51] scenario is let's do the word wrap here. [00:11:55] We are going to have my library. Bear [00:11:58] with me. There are better ways to do [00:11:59] this. My library [00:12:02] found the local to normal to get the [00:12:04] transcript, log in Nwave to get the [00:12:08] the audio files and more. And this is [00:12:09] the same code that we have before. [00:12:12] However, I think it's step nine or 10 we [00:12:14] are going to start to normalize the [00:12:16] transcript. So here we are going to [00:12:18] define the options that we want to do [00:12:20] the normalizing of the code. So here is [00:12:22] the moment that we are going to say, [00:12:23] hey, [00:12:24] this is semi-formal style that I want in [00:12:26] the output. This is a general context. [00:12:29] The maximum token that I going to work [00:12:31] is going to be 1,024. This depends on [00:12:33] your machine, so be careful about that. [00:12:36] And what I am going to do right now is I [00:12:38] am going to use the normalizer model [00:12:42] that I have and I'm going to say [00:12:43] normalize a sync. And this is going to [00:12:45] be fine. So let's let's give it a run [00:12:46] here and let's see how it works. So here [00:12:49] let's do [00:12:52] 03 and let's do it clear again and the [00:12:56] .net run. So remember the steps. [00:12:59] Get the text from the audio, clean the [00:13:01] audio and then show it. And as we see [00:13:03] here, it's running. The we have the [00:13:05] prompt that we have here. You are a [00:13:07] assistant and text normalizer. This is [00:13:09] the raw script. This is the cleaner [00:13:11] script. And we can see that there's a [00:13:13] lot of improvements here. [00:13:14] So that's fine. And runs and it runs [00:13:16] great because it's a it's not a big [00:13:17] model. If I go back here and I take a [00:13:20] look here to to the model that I exports [00:13:22] and I have the versions, the Onyx file [00:13:25] here, and remember where it is is let's [00:13:27] take a look at the int four. I think [00:13:28] this is the one that I am using. It's a [00:13:31] tokenizer JSON. It's an 11 [00:13:34] megabytes of tokenizers and the model is [00:13:36] almost 400 megabytes. That's fine. [00:13:39] But this is [00:13:41] my model, my code and more. [00:13:44] What if I want to use a product that [00:13:45] this was great for a lab? But what if I [00:13:47] want to use this in example in Foundery [00:13:50] Local? [00:13:51] One of the scenarios that Foundery Local [00:13:52] supports is the one that we can see here [00:13:55] where you can pick up [00:13:57] a having face models, not any model. You [00:13:59] need there are some specific attributes [00:14:01] for the model that you can pick up, but [00:14:03] you can convert do very similar what I [00:14:05] did, convert that model to be used [00:14:07] locally and then use it with the [00:14:09] Foundery Local. So you can take [00:14:11] advantage of everything that Foundery [00:14:12] Locals gives to you, [00:14:14] log in, start, stop, do the inference [00:14:17] parts and more, and use the model. So [00:14:19] here, [00:14:20] in the next example, let's close all the [00:14:23] others. [00:14:25] In the next example, it's literally the [00:14:27] same. However, [00:14:29] somewhere here, [00:14:31] I, [00:14:32] remember, step one, found the local load [00:14:34] Nemotron and do the conversion. Step [00:14:36] two, do all of the magics and get here. [00:14:39] But here, found the local also load the [00:14:42] S1 mini model and do the [00:14:46] and do the conversion and do the styling [00:14:47] and the cleaning using the mini model. [00:14:49] So if I run this, clean up model load a [00:14:51] scene, so it's the same code which I [00:14:53] also like because you are going to use [00:14:55] foundry model in the same way. Oh, [00:14:56] sorry, not this one. [00:14:57] Going to the [00:15:01] 04. So if I go here, it's clear and [00:15:05] let's do it on the run. In this [00:15:07] scenario, foundry local is the one that [00:15:09] is doing everything for me. It's doing [00:15:11] the audio to text part and it's doing [00:15:14] also the generated text to the cleaned [00:15:16] text part with the models and more. And [00:15:18] this is amazing because this is a model [00:15:20] that is not part of the original catalog [00:15:23] of foundry that we've seen here, foundry [00:15:25] local where I have models, models, [00:15:27] whisper models and more. But I can use [00:15:30] my own model. So I can have more more [00:15:32] scenarios covered if I have a model that [00:15:34] I can be [00:15:35] that I can convert to using foundry [00:15:37] local. [00:15:38] And this is great. And these days, if [00:15:40] you been around, you probably see that [00:15:43] we have basically a lot of a lot of [00:15:47] talks and more about decision models, [00:15:49] which are great because decision models [00:15:51] allows you to basically [00:15:53] have a model that you can use that is [00:15:55] going to provide you an answer with [00:15:57] three choices or four choices. You [00:15:59] define the choices, but the model is [00:16:00] going to give you that. It's not going [00:16:01] to generate text. It's not going to do [00:16:03] anything. It's going to also you will [00:16:05] start with the model and you say, hey, I [00:16:07] want you to answer in example, if I want [00:16:09] to do some [00:16:11] ticket [00:16:12] organization or email or something like [00:16:14] this and define priorities and and are [00:16:16] going to be high, medium and low. So [00:16:19] that's the three options that the model [00:16:20] is going to give you. Then you provide [00:16:22] the rules to define when something is [00:16:24] high, once and something is medium and [00:16:26] low. And then you provide in example the [00:16:28] prompt say hey, this is a ticket, [00:16:30] analyze the ticket and give me the the [00:16:33] priority here, high, medium and low. [00:16:36] And they are great [00:16:37] because they are fast, they are [00:16:40] super super fast by the way because they [00:16:42] are Gen AI models but they don't [00:16:44] generate tokens in the output so you can [00:16:46] save a lot in the output and now we have [00:16:48] options to run them locally. [00:16:51] The most popular here are probably [00:16:53] started with the Zeff model from Type [00:16:55] Scale couple of months ago. Then in [00:16:57] Microsoft AI we have our own Microsoft [00:16:59] AI decision model, OpenAI have their own [00:17:02] models and we have a phase we are right [00:17:04] now in a phase where we don't there is [00:17:06] no standard on how the decision is going [00:17:09] to be the input and output. So there is [00:17:11] no [00:17:12] standard protocol for that. They are [00:17:14] very similar what is Zeff doing with [00:17:16] OpenAI and with we are doing but there [00:17:19] is no decision there. And in the local [00:17:21] world Ollama provide access to these [00:17:23] models so you can use decisions model in [00:17:25] Ollama and there are one that is very [00:17:27] popular and very powerful which is [00:17:29] called Nimble that you can use it. [00:17:31] And by the way the Microsoft attention [00:17:33] for AI it's working on provide these [00:17:35] extensions probably when you see this [00:17:38] this standard probably when you see this [00:17:40] video when you are watching this [00:17:43] the samples are already implementing the [00:17:46] Microsoft attention for AI support for [00:17:48] decisions model. Right now I created a [00:17:51] personal implementation for decisions [00:17:53] and I'm going to migrate this as soon as [00:17:54] it's available there. But the idea here [00:17:56] is that hey, [00:17:58] how about this? How about we have a [00:17:59] decision model? How we can use decision [00:18:01] model? [00:18:02] This is this is a simple set of code [00:18:04] that we can use for this. We are going [00:18:06] to have [00:18:07] the options. The options here is going [00:18:09] to be billing and support. [00:18:11] And the context that we are working is [00:18:14] hey, imagine that we are working in a [00:18:15] team and we have some request, think [00:18:18] about an email or a customer ticket or [00:18:20] whatever. [00:18:21] Which are the the team that should [00:18:23] handle this? I have two options here, [00:18:25] billing and support. And then I have the [00:18:27] input which is the the question per se, [00:18:28] which is please correct my invoice [00:18:30] because it was charged twice. Very [00:18:32] simple and you probably guess the answer [00:18:34] this is going to be for billing. And [00:18:36] when we have the scores, this is [00:18:37] important, I haven't mentioned this, we [00:18:39] usually have the score, same billing, [00:18:41] but we also have the confidence that we [00:18:44] have in each one of the options. So I [00:18:45] will say hey, for this specific question [00:18:47] that you asked, you have [00:18:50] a 99% [00:18:52] confidence that it's going to be billing [00:18:53] and 0.3 that is going to be support. So [00:18:57] hey, you work with this. We as a [00:18:58] developer, we need to define when we [00:19:01] want to use this or that and an example, [00:19:03] everything up, everything bigger than [00:19:05] 85% should be good. Uh this is the [00:19:08] output. The output is going to be [00:19:10] billing and or support, the the choices [00:19:13] that we present. And how do we use this [00:19:16] in in Ollama? First of all, I need to [00:19:19] see [00:19:21] I have Ollama running. [00:19:23] Oh, not Ollama clear, that doesn't [00:19:24] exists this. I want to do a clear [00:19:27] and then I want to do [00:19:29] Ollama LS and this is going to list my [00:19:31] local models. I have two models here, [00:19:34] Dev and Nimble. Dev is a very very small [00:19:36] model that I really also like a lot. And [00:19:37] Nimble is the model that I told you [00:19:39] before. And Ollama makes an announcement [00:19:42] some time ago that they support Dev, [00:19:44] this style decision models, Nimble, Dev [00:19:46] and more. So there is a lot of how you [00:19:49] are going to use. This is the input JSON [00:19:52] where you can take a look and it's very [00:19:54] similar to what we are doing right now, [00:19:55] a choice between some criteria and the [00:19:58] instruction that we want to use and the [00:20:00] state. So hey, everything that we talk [00:20:02] right now is there. And how do we use [00:20:04] this locally? [00:20:05] So if I go to the Ollama [00:20:08] sample, [00:20:09] what we are going to see [00:20:11] is that [00:20:12] I created [00:20:14] a library that is going to be replaced [00:20:15] with the Microsoft Extension AI when [00:20:17] they support decisions. And I have here [00:20:19] the local host port for Ollama. I have [00:20:22] the model that I want use, Nimble [00:20:23] Latest. And when I have here my billing [00:20:26] choices, my sorry, my choices they're [00:20:28] going to be billing or support [00:20:30] with an explanation what is going to be [00:20:32] in each one of them. Then we are going [00:20:35] to have the input, which is going to be [00:20:38] the case that we want to analyze, and [00:20:40] the instructions are, hey, which team [00:20:42] should handle this request? Then we [00:20:44] create the client, model endpoint and [00:20:46] timeout, and we run this. Very simple. [00:20:49] So when we have this [00:20:53] number five, so 05 [00:20:56] so when we have this [00:20:58] llama, let's do a clear. So what we are [00:21:01] going to see here is how llama is [00:21:02] calling and more. And in order to do [00:21:04] this, I have a nice console here. Let me [00:21:07] create a new one. But this not not this [00:21:09] one. That this shows [00:21:12] the llama logs in real time. So here I [00:21:14] will be able to see how my logs are [00:21:16] working in real time. So if I put this [00:21:18] one here and start to work with the [00:21:20] llama, we are going to see the logs [00:21:21] here. So I have this one and if I do a [00:21:24] .NET run [00:21:26] and let me put this one here and here [00:21:29] and I do a .NET run, we are going to [00:21:30] start to see in the llama logs that they [00:21:33] are going to I am using the Nimble the [00:21:35] Nimble model and we start to see the [00:21:36] first time took some times load the [00:21:39] model. Um the first time is kind of slow [00:21:42] because it need to load the model, but [00:21:45] uh for this scenario which is correct by [00:21:47] invoice because it was charged twice. Of [00:21:49] course, this is billing and we also have [00:21:52] the score and the probabilities and [00:21:54] more. So everything is here. If I go [00:21:55] back to the let's change this to another [00:21:58] scenario. So [00:22:00] uh I can also open the billing page [00:22:02] because the application crashes. This is [00:22:04] another scenario. [00:22:06] And what we can do here it's run this. [00:22:10] Let's go back here to the console. Let's [00:22:12] run this and we are going to see that [00:22:14] llama is going to receive some calls [00:22:16] again and is going to run this. And this [00:22:19] one is for support. If we go back here [00:22:22] to [00:22:23] to the main llama and we see the [00:22:25] process. [00:22:27] Ollama process, we have here in memory [00:22:30] load nimble big model, 10 GB and it's [00:22:33] all running full in GPU. This model for [00:22:36] this specific scenario is running GPU. [00:22:38] So hey, this is amazing. And by the way, [00:22:40] I have Tav 01 OV. If I want to change [00:22:44] the model that I am using, I can go [00:22:46] here. I think it was in the top here. [00:22:48] Yes. And instead of nimble, we can run [00:22:51] the other model. And at this moment, we [00:22:53] are going to have .NET run. We are going [00:22:56] to It's going to spend a little more [00:22:57] time because it need to load the model. [00:23:00] But there it is. Running with with Tav. [00:23:04] It's going to give me the answer and [00:23:06] still the same. And by the way, this is [00:23:07] a very, very small model. Nimble is big. [00:23:10] Tav [00:23:12] is was nimble is a 10 GB Tav is less [00:23:16] than 1GB. So you can use Tav. And again, [00:23:18] if I to take a look at this, I have the [00:23:21] two models loaded right now because this [00:23:23] one is going to [00:23:25] is going to be unloaded in three minutes [00:23:27] and Tav is going to be unloaded in four [00:23:29] minutes from now. [00:23:30] So hey, this is amazing. This is [00:23:33] everything that we need to we can do [00:23:35] here. And what we see now is that we [00:23:38] have different layers, different jobs. [00:23:41] We can do foundry local for most of the [00:23:43] staff. This is my main recommendation. [00:23:45] And by the way, the seasons model are [00:23:47] also coming for to foundry local soon. [00:23:49] And then we have specific models to do [00:23:52] speech. There's one for cleaning up. We [00:23:54] have a nimble for decision. There are a [00:23:56] lot of models that can do a lot a lot of [00:23:58] things. And Microsoft Extension for AI [00:24:00] provide a nice entry point for this. You [00:24:03] can see everything is open source, so [00:24:04] you can take a look at the samples and [00:24:05] more. However, I was thinking, how do I [00:24:08] put it all together? [00:24:09] And I say, hey, let's create a game. [00:24:11] Let's create a game that is going to be [00:24:13] auto managed by Ollama. So this is going [00:24:15] to be a spaceship game and Ollama is [00:24:17] going to take the decision. And if you [00:24:19] want, you can also give some extra [00:24:21] decisions using your voice. So here, [00:24:24] this is the output and we are in the [00:24:26] .NET [00:24:27] conf and the .NET 11 is coming. This is [00:24:29] the official [00:24:32] the official assets that we have for [00:24:34] this. Let me run [00:24:36] the .NET game. So let's go here to [00:24:40] 06 local models. [00:24:42] Let's do a clear. [00:24:46] And let's do a .NET run. Bear with me [00:24:48] until the game starts because it's going [00:24:51] to be open with yes in the other [00:24:54] in the other library. Let's go to the [00:24:55] log like what's here and the way that is [00:24:57] going to work is start to work. So the [00:24:59] model is working right now and this [00:25:01] model is moving automatically. You can [00:25:03] see here in the back Ollama is working. [00:25:05] I can pause the model [00:25:07] and if I take a look here [00:25:09] these are the instructions that they get [00:25:11] from Ollama. [00:25:12] They're using go up, go down, go down, [00:25:15] hold down. By the way, it's it's firing [00:25:17] all the time. I I put it like this. I [00:25:19] should probably add a decision to do [00:25:21] firing, but it's playing alone and it's [00:25:24] fighting kind of a big bug enemy. Yes. [00:25:26] I'm not very original, but it's a .NET [00:25:29] application and I think it was Kids or [00:25:32] something or I don't know. [00:25:33] It's still working. It works fine. Later [00:25:36] it's going to become faster and faster, [00:25:38] but hey, this is something fun that you [00:25:40] can use. Let me Let me close it here [00:25:42] that you can do and again, it's all [00:25:44] about models. It's all about how you can [00:25:47] use these models. [00:25:49] So [00:25:50] my advice for today is before we wrap [00:25:51] up. First of all, [00:25:53] if you have an scenario and you want to [00:25:55] have an idea, try to figure out if there [00:25:56] is already a model for that. And if the [00:25:58] model there are chances that you can [00:26:00] join a there's a small model, there are [00:26:02] chances that you can run it locally. And [00:26:04] .NET is here to help and you can use it. [00:26:07] We just seen how we can use standard [00:26:09] model, not standard model, a foundry, [00:26:12] Microsoft platform or also with Ollama. [00:26:14] There are a lot of options here. And you [00:26:17] can put all together. You can do step [00:26:18] one, step two. You can do decisions to [00:26:20] this and then do that or go back and use [00:26:23] these models to help you. [00:26:25] So that's it. It was a fast session. I [00:26:27] hope you like it. If you have any [00:26:29] questions, I'm going to be around in the [00:26:30] chat. You know where to find me. I'm [00:26:32] super happy to help. And hey, see you [00:26:34] all next one. [00:26:36] Goodbye.