Sr. Content Developer at Microsoft, working remotely in PA, TechBash conference organizer, former Microsoft MVP, Husband, Dad and Geek.
166352 stories
·
33 followers

Nico Martin, Hugging Face: “Figure out what needs to run on the client, and what on the server”

1 Share

Nico Martin, an Open Source ML Engineer at Hugging Face, focuses on making AI interfaces on the web more accessible and faster.

During his visit to Zadar for this year’s Infobip Shift, we caught up with him to discuss AI trends, misconceptions and open source. Our talk came just days after it was announced that NVIDIA will acquire the company for $13b.

“Whatever runs on your device, you actually own that”

Since Nico’s talk was focused on client-side AI, we wanted to know why we should even care about it and what makes it interesting enough for him to talk to strangers about. For start, it’s important to note that all client-side AI uses local models, but not all local models are considered client-side AI.

The main reason client-side is interesting is the fact that everything is yours:

Whatever runs on your device, you actually own that, so you know where it runs, you know what happens with the data. So everything that’s on your device, you have full control over it.

Other, not so obvious reasons for using client-side instead of server-side AI, are tied to logistics, such as latency or privacy. Nico explained that, depending on what you’re running, you might send data to a remote server and that would cause latency, and if you’re working with sets of private information, you might not want to share that with any cloud provider.

Nico also explained that there are many smaller tasks running in the background when you talk to an AI model, all of which can be split into tasks. Not ally of those tasks are time-sensitive, and not all of them need to be ran in a browser.

One good example is voice:

If you want to talk to an agent, then you need to have a little task that only does voice activity detection, so it knows when you start and stop speaking, and that is a task that needs to run on device, because you don’t want to send those small chunks of data via the network.

Additional benefits include offline access, which Nico explained as a great benefit for developers who might travel a lot and spend a lot of time on airplanes:

If you’re on a plane you mostly don’t have internet, and maybe you just want to have a little helper that allows you to automate some tasks that you don’t want to do yourseilf, that can run on the client already, so it works even if you ahve no internet connection at all.

Client-side AI is great for these examples, but it’s not like it has no downsides:

You always have costs. One cost is, of course, running the model locally. You need battery, and you need device constraints and all of that. The other cost is the network, that you actually have to send everything via the network. Then you need to balance out what works best for your case.

Local LLMs and open-source go hand in hand

Having good AI that uses our own computers instead of relying solely on company-owned servers can’t really be done without open-source software, since you’ll have a hard time restricting models running on a particular device:

It’s very hard to restrict models that run on your device to be closed source, because you can always reverse engineer what is running on your device. Therefore, if you want to ship a closed source model, it’s unlikely that you will ship the whole model onto the client, they will stay on the server.

If you allow people to run the model in the browser, it will, according to Nico, probably be open source or an open weight model. In essence, open source and open weights benefit each other, while benefiting the user as well.

In the near future, Nico is also confident that we’ll see client-side agents, especially since many of the regular tasks done by client-side models are simple and don’t require the level of intelligence of the latest frontier models. Nico concluded that with tool calling, users just need to structure the inputs and create a structure that calls a set of tools, which is easy.

In the near future, we can expect to see a much broader usage of these local “little helpers”, as Nico calls them.

The post Nico Martin, Hugging Face: “Figure out what needs to run on the client, and what on the server” appeared first on ShiftMag.

Read the whole story
alvinashcraft
32 minutes ago
reply
Pennsylvania, USA
Share this story
Delete

Microsoft’s Rare Earth Recycling Investment Addresses Critical AI Supply Chain Challenges

1 Share

Microsoft’s investment in Cyclic Materials highlights the growing importance of sustainable rare earth sourcing and resilient supply chains as AI demand accelerates.

The post Microsoft’s Rare Earth Recycling Investment Addresses Critical AI Supply Chain Challenges appeared first on Cloud Wars.

Read the whole story
alvinashcraft
1 hour ago
reply
Pennsylvania, USA
Share this story
Delete

Matching a Frontier Model at 7% of the Inference Cost

1 Share

On Sierra’s τ³-Banking benchmark, we matched GPT-6.1 Sol’s task success rate at 7% of its inference cost at our low-budget setting. At our medium-budget setting, we matched Astra’s score at 16% of the cost. At our highest-budget setting, we beat GPT-6 Astra’s score by 27% at one third of the cost. We didn’t fine-tune a model; we just studied how GPT-6 Luna and GPT-6.1 Sol failed on similar tasks and adapted their prompts. In our medium-budget setting, we also routed between Luna with adapted prompts and regular Sol.

Most teams pick one model, send it their entire workload, and upgrade to a bigger model if the results fall short. More sophisticated teams route between different models, either by themselves or using auto routing solutions. I think that there’s one thing missing in all these approaches: adapting the workloads to the underlying model. Each model needs to be treated differently, and by sending them all the same prompts, we’re leaving a lot of performance on the table.

Measuring cost

Markus Eisele recently wrote a piece on model routing where he makes the point that a cheap request is not cheap if it leads to another try, a correction, etc. A cheap model that wanders, retries, or fails can burn more tokens than an expensive model that gets it right the first time, so you can’t just count token costs.

We counted the average inference cost per task, which includes every model call, calls to a decision model, retries, and the expensive first call to a new model when switching in the middle of a task (without prompt caching). Markus also counts developer time, which we didn’t measure. This piece just covers the model costs.

Our test setup

We tested on the τ³-Banking benchmark from Sierra, which is based on customer support chats in the banking domain. It contains complex agentic workflows with lots of tool use, a knowledge base of nearly 700 documents to search through, and many banking policies to apply.

We randomly split the benchmark tasks into two buckets: development and holdout. The development bucket was further split into learn and test. We used the learn tasks to study failures and work on the prompts, tested them out on the test tasks, and finally evaluated on the holdout tasks. We ran each task twice on the holdout set, which was about 30 tasks. All results below are from the holdout tasks. We also got similar results on the test and learning sets.

We tested with these two models: GPT-6 Luna (at medium-reasoning effort) and GPT-6.1 Sol (at high-reasoning effort). We compared against three baseline models: Luna, Sol, and Astra. We also compared two routing solutions (restricted to just Luna and Sol): OpenRouter’s AutoRouter and a routing algorithm trained on the learn split (Avengers-Pro from this paper). We used the same harness, tools, and task limits across all runs.

What we did

The core idea is that each model needs to be used differently, and treating them all the same leaves a lot on the table.

We studied how each model behaves in specific situations and where and how it tends to fail. We also studied the models in-depth to understand how best to steer the model using prompts. We then wrote instructions to prevent its common failures when possible. When Luna couldn’t complete part of a task even with prompts, we’d pull in Sol in our medium-budget setting. We do this switch in the middle of a run when we get enough information to tell where a situation is headed and if Luna can handle it. This ties back to one of the points Markus made in his essay: Routing works better once the system has seen some of the task.

For example, we saw that Luna tended to search its given knowledge base with long queries that mixed many topics, which often failed to return the answers it was looking for. Luna would then conclude that this information did not exist and convey that to the customer. Understanding this tendency meant that we could prompt it to search with short queries and for just one topic at a time, which cut down on this failure pattern that repeated across tasks.

For an example of routing, we saw that Luna sometimes missed errors when checking several transactions against bank policies even with our adapted prompts. We had a decision model watch out for the situations where Luna was likely to fail, and switch to Sol.

Here are some things we learned about how to construct prompts to steer Luna most effectively:

  1. Specifically call out the situation and the action, like “when X happens, do Y.”
  2. Don’t just forbid the model from doing something. Also give it an alternative action, like “don’t do X, do Y.”
  3. Short imperative instructions are ideal. We noticed Luna tended to follow instructions less as the instructions got longer.
  4. Measure the effect of the instructions you add, both by running them by themselves and along with other instructions. We started out with 10 instructions addressing 10 different situations for Luna, but as we combined them—since a single task can have different situations—we noticed that we just needed four of them, and the other six didn’t help.
  5. Each model needs its own instructions to steer it. Luna needed help to search, while Sol needed help to finish disputes and to compare every candidate product before recommending one.

Results

We tested three configurations at different costs: Luna with adapted prompts, routing between adapted Luna and regular Sol, and Sol with adapted prompts. All the numbers below are from the holdout tasks, which we had not used to develop the prompts. Cost is average spend per task, which includes all model calls.

At the lowest setting, we matched Sol’s task success rate at 7% of Sol’s cost. This was Luna alone with adapted prompts.

At the middle setting, we matched Astra at 16% of Astra’s cost. This was Luna with adapted prompts and handing over to Sol in cases where we knew Luna was likely to fail.

The highest setting had the most interesting results: Sol with adapted prompts completed 52% of tasks compared with 41% for Astra, at about a third of Astra’s cost. This was just Sol with adapted prompts and without any routing.

We also tried two existing routers: OpenRouter’s AutoRouter (before its November 6, 2026 update) and Avengers-Pro, limited to the same two models. Neither one sent different tasks to different models. AutoRouter sent every task to Luna at low and medium budgets and every task to Sol at high budgets. Avengers-Pro sent everything to Sol. In practice, both ended up picking a model and using it for all tasks.

What our numbers don’t cover

First, the cost of getting this set up. We had to learn how the two models failed on our learning set of tasks and how to steer them away from it and route between them. It cost us about $50 in model API calls to develop the low-cost setting for this experiment. At the costs we measured, we’d recover that spend after roughly 118 similar tasks. This is not counting the work we had done earlier to develop our pipeline that does this (not specific to this benchmark or experiment) and knowledge of the models that we’ve developed from other experiments.

Second, you need some way to know what success looks like. We needed to tell that there were runs where each model failed in order to understand how it failed. This could come from evals or comparisons against production traces of correctly completed requests.

Takeaway

The main thing we took away is that getting more out of the models you already use can matter as much as moving to a more capable model and cost a lot less. On this benchmark, prompt adaptation let Luna alone match Sol, and Sol beat Astra. Routing gave us another way to balance cost with performance.

A good way to start is by evaluating whether your workloads can be modified such that a smaller model can handle them. If you understand your workload and the model in question really well, you can handle a surprising amount of the work. In the cases where that’s not possible, a larger model can be pulled in to handle just the part that needs it. And count the total cost, which is whatever it takes to run an entire task from end to end.

Disclosure: I’m the CEO of Propensity Labs, which builds this as a product.



Read the whole story
alvinashcraft
1 hour ago
reply
Pennsylvania, USA
Share this story
Delete

Azure Concepts: Entra Identity Types

1 Share
From: ITOpsTalk
Duration: 3:54
Views: 2

In this video you'll learn about the different types of identity available in Microsoft Entra ID https://learn.microsoft.com/en-us/entra/identity/

Read the whole story
alvinashcraft
1 hour ago
reply
Pennsylvania, USA
Share this story
Delete

Exploring Positron: Data Science Focused IDE

1 Share

What tools can help a data scientist explore data, manage plots, and write Python code? This week on the show, Isabel Zimmerman, Senior Software Engineer at Posit, shares how Positron brings those tasks together in a single IDE.

We discuss how Positron builds on the open-source foundation of Code OSS, the engine behind VS Code. We explore how a data science workflow is augmented by having a multi-pane interface. We dig into the Data Explorer and Variables pane, looking at how they let you inspect large datasets, apply visual filters, and can translate those steps into reproducible Python code for your project.

We also talk about how Positron integrates AI tools like Posit Assistant and Claude Code to keep your data analysis grounded and auditable. Isabel shares a couple of useful open-source packages: the pins package helps you to publish and share Python objects like data, models, and other artifacts across projects and with colleagues , and the commons framework builds self-service data analysis agents in Python.

Course Spotlight: Plotting Declarative Charts With Altair

Learn to build interactive Python charts with Altair by mapping data to visual channels, faceting, linking selections, and exporting to HTML.

Live Course Spotlight: Curious how tools like Posit Assistant and Claude Code compare and which belong in your workflow? Real Python’s AI Coding Tools for Python Developers live course gives you a map of the AI coding tool landscape, independent verdicts on each category, and one concrete next step. Join the waitlist to hear about the next dates.

Topics:

  • 00:00:00 – Introduction
  • 00:02:38 – What do you do at Posit?
  • 00:04:01 – What is Posit?
  • 00:07:10 – Positron and building an IDE for Data Science
  • 00:14:51 – Features around exploring data
  • 00:18:20 – Virtual environments and managing Python versions
  • 00:23:32 – Working with visualizations and the plot pane
  • 00:28:01 – TypeScript foundation for Code - OSS
  • 00:29:08 – Data exploration generating usable code
  • 00:33:09 – Video Course Spotlight
  • 00:34:38 – Platform agnostic as an Electron app
  • 00:37:04 – Using AI tools in Positron
  • 00:42:33 – Working with notebooks
  • 00:47:39 – What is Quarto?
  • 00:49:26 – What are the latest Positron features?
  • 00:50:42 – Tools to make projects portable and repeatable
  • 00:53:05 – How to Setup a Project for Agentic Coding - article
  • 00:56:22 – Data Science packages from Posit
  • 01:01:02 – What are you excited about in the world of Python?
  • 01:02:11 – What do you want to learn next?
  • 01:04:27 – What’s the best way to follow your work online?
  • 01:05:04 – Thanks and goodbye

Show Links:

Level up your Python skills with our expert-led courses:

Support the podcast & join our community of Pythonistas





Download audio: https://dts.podtrac.com/redirect.mp3/files.realpython.com/podcasts/RPP_E321_02_Isabel.6e326937bf47.mp3
Read the whole story
alvinashcraft
1 hour ago
reply
Pennsylvania, USA
Share this story
Delete

Can A.I. Help You Get a Second Date?

1 Share
“Perhaps Claude’s first advice should have been, ‘Don’t record these women without telling them that you’re recording them.’”
Read the whole story
alvinashcraft
1 hour ago
reply
Pennsylvania, USA
Share this story
Delete
Next Page of Stories