Set up Visdom and Watch Your LLM

Devcon 8 · 5 Nov 2026 · 41:20

The Visdom team from FOSSASIA, including Manik Khajuria, Jayant Parashar, Rajnish Tiwari and Vedansh Saini, runs a workshop on watching machine learning training live in a browser dashboard. After a short question and answer on what Visdom is for, they cover pip installation, logging runs with parameters and tags, searching runs by accuracy and learning rate, the hyperparameter dashboard, autologging for scikit-learn, XGBoost, PyTorch, TensorFlow and Keras, an asynchronous server and client, annotations, publication-ready export and a hosted option with shared workspaces. Poor Wi-Fi stopped most of the hands-on part.

Speakers

Topics

From Devcon 8, hosted by Ethereum Foundation.

Transcript

[music] [music] >> Yeah. Hi guys. We are the Wisdom team. We are welcome you to the Wisdom hands-on builder builders uh experience where we will explain you how to use Wisdom for your project and uh we'll train a small large language models to explain you how you can use Wisdoms in your model training or understanding of the loss functions and the model performance. So >> So, first let us uh Like I would first tell you what exactly is Wisdom. Wisdom is a visualization

tool. You can watch your experiments live. You just launch your code, run your experiments, and they are rendered live in the browser. All your plots, visualizations, videos, images, all of them in the browser. Before we start, these are the QR codes. It has workshop files. So, if you could just go over to those and pull out your own laptops and run it. So, we all have a running dashboard with us live. >> So, can I change it to So,

So, let's scan the QR on the right and download the files here, please. And you can pull out your own laptops and then we'll install Wisdom. It's a very simple command line tool, and then we just need three words. Pip install Wisdom, and that's how you will get it going. >> So we see new people joining us now.

Uh If you guys could, please scan the QR code on the right, download the workshop files, pull out your laptops, and we can start with Visdom instances. We're already a bit late, so uh we'll need to hurry up the first part. I'll do the explanations here already while you guys are downloading the files and uh just going through it. So uh with Visdom, we are today training a small model on us. We'll show you the visualizations, how you're going to manage those, and arranging the tabs, etc., all of it.

If you are even slightly into machine learning or data visualizations or anything related to data, uh you're going to like this workshop. So, you keep on these things. So, for these next uh 40-55 minutes, uh we have some exercises. So, the plan is basically we'll first set up Visdom uh on each of your laptops, you'll install it right with us, and then uh we have the code snippets in the presentation slides as well. So, uh you can just run it. It's very small codes along with the files that we're already giving at the workshop food files folder.

So, moving on. First, we check our Python version. Visdom requires minimum of 3.1.2 of Python. So, uh we first check our Python version, and then we uh update our Python version if we need, and then we'll just install Visdom. >> So, uh

people here do not have their laptops out, so we just figured this uh small little change. Uh uh the guys here will show running this code live on their laptops. So, they'll be running these commands. We'll need to uh change the uh presentation presenter mode for a while. So, we'll need to unplug the video just for 2 minutes. We'll be resuming again in 2 minutes with the correct setup, so that all of you guys can follow as well. mirror Uh cut the feed.

Uh put it back. Ready. So, we're back now. We're going to walk you through the whole thing here. You will go open this up. >> Charging ports not sure.

>> We're getting everything ready to present the dashboard. Here money will take some questions um about wisdom. So, any of you have any questions that you want to ask? >> Yeah. >> I have a question. >> So, it's so Wi-Fi thing not a question. >> Any of you have been working in machine learning or wisdom?

So, we have some questions related what is wisdom or why do you need it? >> Yeah. Yeah. Yeah. >> So, what I was saying like wisdom is very new for me. So, like is wisdom like something like a LLM observability tool or something like that? >> It's not a observability tool itself, but it's a visualization tools of different experiments how they can compare them, how the data is being interpreted, how we can establish some relationship between the nodes, and how the things can work out. So, it's basically a visualization tool which will help the researchers ML researchers how we are going to perform experiments, how they are performing, whether we need to train

more or we need to lower the learning rate or the accuracy is coming great or not. So, that is what wisdom is all about, but it's a very major use case in Ethereum also, and it's a multi-purpose tool. It's not a tool, but it's now a full developed product at itself. >> So, it's for basically like testing out your models. >> Yeah, like yeah, it's basically primarily for testing models, but now we have different use cases of it. So, models are a major use case I can say.

>> Yes, yes, okay. >> So, does anyone have any other question? Feel free to ask questions because questions make you curious and if you are curious, you can make a lot of things. >> So, what would I do with Wiz? What can I do with wisdom today? >> So, today we are going to present a workshop right now, how we are going to do wisdom, how it works, and how we will be here like our forces wisdom team will be presenting like how wisdom works, what is use case, why

do we need wisdom, how it's better, and what we have introduced new things so that researcher don't have to install bunch of other complicated things, but a simple wisdom which is live on the dev which you can see. So, that is what we are going to do today itself. >> Sweet. So, Manik, what have you been recently working on while working with wisdom? >> So, talking about me, what I was working was five engineering layers. Not me, we work in the team. So, it's not my contribution at all, it's a team contribution. So, we divide our work, work together.

So, it's basically five engineering teams layers. So, incrementally basically we don't want to rewrite the whole wisdom, we want to improve it incrementally. So, we incrementally were trying to improve it in layers whether it's data abstraction layer, whether bunch of functionalities ROC PR curve, or export system, experiment tracking logging you can say the search experiment layer, the edge parameter dashboard. And recently I was working on CPU optimizations of the wisdom.

>> Ah, cool. >> Yeah, the performance engineering works, how we can measure, optimize, and other things. So, that was what I was working. >> Sweet, and what did that involve? What were you writing? >> Uh, can you just speak? >> Uh, what were you writing? Were you writing Python or what what Uh, what was your optimizations written in? >> it's basically in Python. So, there were multiple things. If you can see the sanitization in wisdom was happening again and again. Uh, and other things like uh, you can say the encoding of the payloads and multiple diffing comparison which were not needed at all. So, we go through the different flame graphs and uh, other things the

Uh, yeah, the optimizations we see how they're performing on the CPU optimization level and then we find out the bug not the bug but what's the hindrance I think. >> What's taking most time >> time and effort. So, I basically try to optimize it to further so that it's relatively uh, takes less time. Like if I told you previously wisdom takes 1.98 seconds just to import but now it take 0.12 seconds. >> No way. >> Yeah, so it's >> Yeah, so that was what we were working on that.

>> Sweet. >> Yeah. >> Um, we are having some troubles here which we're going to resolve shortly. >> We're trying with LAN >> We are trying with LAN. The Wi-Fi is a bit shaky like in every event ever. >> Yeah. >> So, while we wait, how would you recommend people to get started with wisdom who just want to you know just play with it and see if this is something they would like to work with.

>> So, getting started, I don't feel like that you need to know a lot of things. Uh when you don't know a lot of things, the thing is just get your hands dirty. Just uh open it up and try to understand, figure it out uh what it's doing. Uh you don't need to know a lot of engineering and other stuff. You just need to figure it out somehow, and we are here, so we can help us. Uh so, yeah. Uh it works in that way. Uh when you don't know something, there is a AI, there is internet. You can just uh Google it, or you can ask GPT what is it.

>> Uh that is a very good question. Now, if I wanted to use wisdom, let's say I'm using Cloud Code, how would I go about it? >> Okay, so you are uh using Cloud Code. >> Yeah, let's say I'm using Cloud Code or Codex, and I want to get started with wisdom like really quickly, and understand it, have something running to see what's happening. Should I like point it to some docs, or what should I do? >> So, if you want to get a overall architect, Cloud does a very good uh thing when you want to have a overview what's the whole architect. You can hand over the agent.md file, and I would say you will uh hand other docs and refactoring.md, so that you can have a whole architect how these things are

working from the Python client to the web server to the front end client and other layers, how they are interacting with each other, what it hits. So, it gets a good overview of uh code. So, that's the thing which Cloud does a very uh at a get it better level, I would say. >> Sweet. So, you already have an agents.md or cloud.md file in the repo, which I can just point my agent to. >> Yeah. >> Cool. Cool. >> So, so we have a QR code which you can get Wi-Fi. So, if you scan, you can >> Uh yeah, yeah. So, we have a new Wi-Fi here. Uh sorry for the interruption, but uh you guys can scan this if you want some faster internet when you try

uh this yourself. Uh. >> And then do just put it here? >> Yeah. We're going to have the queue. We're going to try to put the QR code on the display. Uh.

Uh, running off my models inside collab and it will just show up in the Visium UI interface. Is it like that? >> So, you don't need much of the scripts and other stuff. You need to know how the plotting method works, but once you're familiar, it's similar how NumPy and other things work. You just know the syntax and you call some plot API and then it you give him some data whether learning rate or accuracy metrics, how the loss, whether it's status and other stuff, and how many times you want to run a for loop or other thing inside it, but we have got functionalities. So, you just need to call that thing something like vis.line and give your stuff and it will just help you to visualize on the dashboard

itself. So, how it's working and whatever plot you call whether line plot, scatter matrix, and other plot. So, you will get the thing in the UI itself. >> Yes, that I got. I was asking in a way like, let's say I have I'm running my models and training my models on collab, Google collab, or any other Jupiter notebook or something. Yeah. Like, do I have to use a Visium, you know, like code snippets or something within that so that whatever, you know, like logs my notebook is creating, that is being recorded over there in the Visium interface.

>> Oh, so you are saying like, do we have some integration to the Jupiter notebooks and other stuff, right? >> No, no, I'm just asking like let's say anywhere I'm running the model script, okay? It's just like if if I'm running and is there a like a wisdom you know code snippet SDK or something which when I am running my models it automatically captures all the you know data entry points and logs and just shows up in the interface of wisdom. Something like that.

>> I would say it's not more like a SDK but you can actually do the same way you do with your own source code. You just need to write import wisdom just the way you do for matplotlib to get the graphs. >> So, we have to write the code within the wisdom. >> Yep. >> Okay, all right. >> Apart from this wisdom too have a multiple features as well. For example, if you are having a run having a run and you want to have the all the data of it. So, you can also have it and the most so how many of you guys are into research papers and other stuff?

>> Bro, zoom in, zoom in, zoom in. >> proprietary things. So, so one thing is if you have a run and you don't want to share the exact source code. So, there is no way to verify the things which what you have actually built, right? So, with wisdom you can just share your dashboard with anyone and the person can actually reproduce the complete experiment without any uh like eye on the source code. So, that's the one thing which we are providing. >> Amazing, thank you. So, we're going to get back to the workshop. Thank you. >> So, extremely sorry for the the mess ups that we've been through.

Now, we have shared the QR code across the screens so you guys can connect to that network. And let's get started. Please install wisdom on your computers. If Jayant you would do the same. >> Command plus make it bigger. >> Or >> Yeah, yeah, that's all right. >> Raise the my money speech.

So, we install scikit-learn and install numpy. Then, we'll be moving on to the next slide. Once it is it's installed, we'll start the Wisdom server. So, now we move on to our local host in a new tab in a new tab on the browser and we can see the Wisdom in the face that like. So, this is an empty Wisdom page and we

can see the online pill on the right hand side top corner. It's an online pill saying online. So, that is our goal that we are ready and connected with Wisdom on our local servers. So, uh some of the people who joined late, I think you have some idea of Wisdom is because uh my team members already talked about it. Wisdom is a visualization tool that is used to uh visualize your experiments, your ML training runs on your browser from your local server. So, now we'll start with sending our first plot.

So, we just import Visdom. Just type these commands on your screen. We'll have them on the screen here. So, you guys can uh look at them and type in their laptops. So, uh I just got to know that you guys are still having internet troubles.

And that seems to be a problem because uh it's supposed to be a hands-on workshop, but uh we'll still try to show you the visuals. For a back For backup, we have the runs running on my teammates' computers, so uh let's move on to the next slide. Logging a run as an experiment. Using these commands, we already have uh a plot up. If you could just move to the plot Jayant. Until now, Visdom was plots. Now, a run is a first-class object.

vis.experiments records the parameters and tags. vis.log_metrics adds metrics per step. So, we have recently made like in the uh 9:45 a.m. talk, we've made the new release of Visdom, version 0.3.1. And in that release, we have added a lot of crazy features, such as native experiment tracking, HParams dashboard, Optuna optimization.

So, we'll move on to the next experiment, which is searching through the runs. So basically this is a query that we've already run. We search for experiments that have an accuracy over uh 80% and a learning rate below 0.01%. And their status is finished. So, if you could just move over to the Wisdom dashboard, please. As you can see the runs on as rows and the parameters metrics as columns.

So, we ran around 13 experiments and we fight we just shortened them down to five using these metrics and filters. These can be combined. So, think of you're running hundreds and thousands of runs and then you're opening every environment looking, "Oh my god, where is that run? Where is the run that I did on the other day, a week ago or so?" So, this is where it comes in handy. Then, if you could just open the H params dashboard.

So, this is the same query language as dashboard. We can see the runs here. Moving on. Now, we can also look them at table and sort these based on colors and matrices and have filters with them. If you could run the command example in this one right now. If we could move back to the Wisdom dashboard. Yeah. So, we can see our runs here. We can

also change the colors here as per our runs and our filters parameters, whatever we configure. Then, there's also we've also added auto logging. So, now we see the run as it goes. For example, we're already running 12 runs and the 13 one is still we just started it. 12 are already finished. And we want to change the colors, the matrices. We need to sort them accordingly, but we can't have the 13th run fail or we still want to show it.

So, how would we do it? Well, you don't have to figure it out because we already has it in wisdom. We can watch a run while the other ones are already training and then we can switch back and we can see it is updating live on the wisdom dashboard. >> So, So, we have auto logging features also like you guys have a trained machine learning models like from scikit-learn, from XGBoost, and deep learning model from PyTorch, TensorFlow, Keras, or

PyTorch Lightning. So, for that we have auto logging features as logging values is the most important thing on understanding when your model gets started overfitted or underfitted. Like you want to know that is it just remembering the training values or it's performing good on the validation data that I have. The other data that it will see, the data he it hasn't seen at all. So, for that we have loggers. And we have loggers for most of the used modules at the current time. For example, we have a wisdom scikit-learn logger, SK logger. So, it's used for scikit-learn. When you train a scikit-learn model, you have for example, you train a a CV model like cross validation model that have a folds that's have a limit of fold like you set

a fold to five or six. So, it runs iteratively on that by dividing the data as you choose. So, for that if you don't use auto log, you will get a five separate five separate windows that you can't understand to get which one is best. Like you can't compare them because it have a there that for every every uh CV it treated as a new model. So, that's a problem. For that we have fixed it and bring bring it to a bar chart where you can compare your models with their scores on how they are performing and which model is good to uh provide a further for your work. For example, if you have participated in

Kaggle, have anyone participated in Kaggle competitions in machine learning? Yeah. So, you have you know uh you know. You know that uh there was there are XGBoost and CatBoost thing. Like you have multiple models. Yeah, you you iterate it. So, if you don't do that, if you don't use auto logging, you have to figure out your own by looking into it multiple terminals. But that's a headache. Like you have to look every run. Here you get the plot. You understand which one? You just send it to the Kaggle. You win the competition. Yeah. So, uh that's that's for the machine learning part. What if you have a deep learning thing? Like you are training a neural network.

But But you can't you can't just use machine learning models for that. For that we have Wisdom loggers. >> [clears throat] >> Wisdom logger is a semi-automatic thing. You don't have to write iterative approach. You just define the logger and then move it as a tracker.log whatever values name you want there and the values you want to be plotted on the graph. So, that's how it works. We also have auto loggers. Uh Uh I think I think that's not there. So, auto loggers are also just released in the latest release of 0.3.1. You can use lightning loggers. So, when just you need to write a one-line code that Wisdom Keras For example, for

TensorFlow, you just write Wisdom Keras logger.autolog and it it will autolog your values. And just you start the training model, it will start training it iteratively and show your graph there. I have a dashboard example for you. So, just a second. I >> It's not opening. I think there is a problem that it's not opening. Yeah, but so far that's the whole thing. It's some error in my laptop that is not opening it. But yeah, when you train a train a model, it's the most important thing you need to know that your your model is

training correctly or not. So that for that you can use Auto log. Let me move forward with >> Uh all right, guys. So we have now a sync wisdom. So basically why it's being needed uh So basically if you see previously wisdom are synchronous. So what's was the uh you can say what was the bottleneck? Why it's being needed? Why we introducing this async many plots at once? So you see if you try to one uh researcher is coming and he wants to plot a data and the request is in the disk operations. So in that case uh

the request is being hung. Another user come, he has uh he is not able to plot the data because uh the thread is being stuck there. So now what we have is asynchronous. So we have just moved the storage thread different from a request thread. So you can say uh uh if one user come and it's uh request is being hung in the disk operations, now the other user can give its request and it get plot some data also until this the previous request come and do its task. So that is the main functionality of async wisdom. So now there are multiple plots. Uh there are also async client. Uh There are user can do something like await async wisdom.create and

asyncio.gather vis.line vis.line x = x and vis.image and some image points and the dictionary the title as in sample. And we just give the three concurrent threads and just send the request and it plots asynchronously. Uh Previously, if one plot is plotting, other will not plot, but all the three at one instance will be plotted here. So, that is what we have for the sync wisdom. That is what many plots at once. So, it makes wisdom so fast and really quick. That was why it's being introduced.

So yeah. Let's move to the next thing. We have auto logging no plotting code. So, annotator, let me handle to Vignesh. >> Thank you, money. So, it's annotator plot. So, for example, you have a plot and you want to mark a certain data point that whether this data point uh have some reference or is there any indication you want to add for the plot. So, you can add it via annotation. So, it's uh quite simple. There is a plus icon in the in every wisdom graph and you can just add it. You can drag it from one point to another and can move it from one place to

uh another and uh next is uh export for a paper. As we as we all have seen that whenever we want to export a image, uh we have to take the image from one place to another or have to revolve it to third-party platforms. Uh I have to revolve it uh uh uh through the third-party platforms for annotations, for DPIs, for other things. So, uh for other things. So, currently, uh we support uh almost all the features which need uh figure to be publication ready. Uh we have multiple formats support. Uh for

example, if you need uh lossless, you can go with PNG. If you want a shorter size, you can go with JPG. And if you want a vector image, you can go with the SVG. Uh and all of these are supported with multiple DP options such as uh 300, 600, 900. And along with it, we have PDF option as well. If you want to as many journals ask for it too. Call him. So, we're getting Vedansh.

Who is going to read the next part. But he is very busy. Just cuz saying some deep LLM stuff with one of the participants. So, right guys. Now, the team has already explained what Wisdom does. But this was all on a local server. A server that you have running on your machine. Now, think about you are sitting at your home. And now you want to share that your experiment, your runs to your teammates, to your friends that maybe are in your college or at a different place all together.

What would you do? Host a server? Ah, I think it's a bit too much to just share your experiments. Would you just share the script to them? And they run it on their server. Or you send the screenshots for the plots. Well, you don't have to do anything. We have already covered this in Wisdom dev. Wisdom dev is the hosted infrastructure on FOSSASIA. You can try it out right now on wisdom.dev. So, we run it entirely on FOSSASIA's infrastructure. You just get You log in and you get an API key. You can put it back to your script and all the plots, your experiments, the visualizations, all of them are sent back to the Wisdom

hosted server. They can be shared. So, you make a workspace there. You add your team members as admins, members, or viewers. And you can just share your experiments there. You run it there. All of them can see it. Okay. So, Vedansh, what if someone needs to see it who's not inside my team? I mean, why would I share all of experiments with them? Right, guys? >> Yeah, yeah, yeah, yeah. >> So, what can I do now? Well, we have read-only links that can expire based on time. You set the times, you decide when they expire, and you can share them over.

So, now, uh so, let's get a countdown of how many problems we've already solved. We figured out hosting. We are now sharing experiments. We are making people outside our teams read them and for really very cheap. By the way, wisdom.dev also has a free plan, and it's in testing right now, so you can just log in to the platform, see it. So, in the earlier part of the workshop, we were trying to get you up with wisdom, set it on your own machine, run the server. You don't have to do anything. You just have to run your experiments with the API key that you get upon signing up in the wisdom.dev platform.

Now, we'll be moving to the next slide. This is the troubleshooting slide, guys. Meh. We didn't run it anything. The only troubleshooting we need is is with internet, right? I mean, all of us are having troubles with internet here. Even my team is unable to run their models. I'll take a few more moments to discuss about wisdom.dev then.

>> So, I have a question. >> Oh, yeah. Please. >> What is the difference between So, what is the difference between wisdom and wisdom.dev? So, there are two separate repositories, and what what do they do? What is it? >> A nice question, a basic one, but a really nice question. Wisdom and wisdom.dev are not different. They're just you can say two sister repositories, two sister projects. So, wisdom is the base of it. Just what the team explained before me, how it runs, how it visualizes the experiments, how we run it, how we're sending our plots to the dashboard, to the browser. All of it is almost the same in Wisdom Dev, except you don't have to run your own server.

So, you are in your university, or maybe you are a uh ML researcher, and you have five teams working with you, or maybe uh you're managing a group of seven people, and they all need access to runs. But then, they push something, and something goes bad. And you have your presentation the next day to probably uh investor who's going to give you something like 40 million US dollars. Oh, you can't have that uh trouble with you. So, now we use Wisdom Dev. We'll uh run all of these scripts on Wisdom Dev. This stays there. You can manage who will get the access, who can actually edit those.

Nothing changes in Wisdom. It's still pip install Wisdom. So, you just run it the same way you want it as it was already uh running. Like, the previous version that we have had before release Wisdom 0.3.0. You can run it locally on your own server, or even on your infrastructure. But Wisdom Dev also supports running it on Fourth Paradigm's infrastructure. That's the basic difference. Are there any more questions about maybe Wisdom Dev or Wisdom in the crowd? If you guys have questions, you can just raise your hands, and uh we'll move the mic to you guys.

Nope. Nope. >> Yeah. >> So, we got one. Hello, good morning. What's your name? >> Yeah, I'm Utkarsh. Good morning. So, uh actually, I just came right now because I just came right now. So, could you just give me a brief overview what you were explaining? >> Just a second. >> Okay. Okay. Uh yeah, I'm Utkarsh. Good morning. So, uh I just came recently right now. So, could you just give me a brief overview what you were explaining or what's Wisdom Dev and >> Okay. So, do you have an idea what Wisdom is, or I'll just start with so wisdom dev is just a sister repository of wisdom. Wisdom is a visualization tool a very lightweight visualization tool that you can use to

visualize your ml experiments your runs from your machine and on your machine. You just launch the server. I mean it's very small. It's just paper install wisdom and the next command is going to be wisdom. The server is already up and running and Every plot every experiment that you send now is going to be shown live in your browser. So if we can just show the visuals for it. Where is it?

So You can see these plots and graphs on the right side of the screen. This is the wisdom dev dash wisdom dashboard. We have the dashboard running as well but you know the internet here. Now this is all local running on your server but man I would just don't want to launch my own server every time. No. Then I will need wisdom dev. It is forces your hosted infrastructure on which wisdom is running.

Load balance supporting a lot of customers so you don't have to worry out worry about outages at all and your data is readily accessible anywhere over the world. The only thing you need is the sign up your logged in with. You just get an API key and give it to your scripts and then you're good to go. >> Amazing guys. Thanks so much and So next one thanks for the talk money giant Rajneesh.

>> So guys due to bad internet connection we couldn't really have it running on your laptops. That was the decided outcome for it that all of you people should be able to install Wisdom and run it. Now, we leave the links here. You can just search Wisdom for Seshia and open the repository. We welcome contributors. There's a contributing guide. And you try it out, you break it, you see where you can help or what do you need. A new visualization maybe? Uh we'll patch it for you.

>> [music]

Related talks