Posts Tagged ‘mlforkids-tech’

Generative AI with tool calling in Scratch

Friday, July 10th, 2026

In this post, I want to share a new feature in the generative AI support in Machine Learning for Kids: tool calling.

I wrote last year about how I introduced Generative AI in Machine Learning for Kids by adding support for projects using small language models. And earlier this year, I walked through my six favourite projects for explaining different aspects of Gen AI.

This week I’ve been working on extending the language model support in the site, by adding a new model that is capable of tool calling.


demo video at youtu.be/HdcTseNvjhU

Why is tool calling useful?

Try asking a model what the weather is like in New York right now.

If the temperature and top-p is high enough, many of the models will likely hallucinate an answer.

If the temperature and top-p is low enough, the models can just respond that they cannot answer that.

(If you don’t know why “temperature” makes that difference, I’ve written about that before and have a student worksheet that focuses on this.)

This second answer is more accurate at least, but it is still not helpful. The point is, if you ask the model for something that can’t possibly be represented in the knowledge used to create it, the model cannot give a helpful answer by itself.

Tool calling helps in these situations by making tools available to the model. It can call these tools to help respond to prompts that can’t be answered by the model alone.

(more…)

iTunes extension for Scratch

Tuesday, June 9th, 2026

In this post, I want to share a new Scratch extension I made today.

screenshot

It uses the iTunes Search API to let you search for songs, and play 30 second previews of them, in your Scratch projects.

The blocks are simple, and hopefully self-explanatory, but here is a short demo of them in action if it’s not obvious.

I’ve added this extension to the version of Scratch I host for Machine Learning for Kids, so you’ll need to go there to try it out. (To access the extensions library, click on the extensions button in the bottom left.)

(more…)

What do people use to access Machine Learning for Kids?

Thursday, April 23rd, 2026

I use Cabin for analytics on Machine Learning for Kids. (If you’re not familiar with them, their blog post on how to do analytics in a way that prioritizes user privacy is worth a read – the approach is simple but elegant. And you can see a demo of what a Cabin dashboard looks like.).

I thought it might be interesting to share what Cabin tells me about who has used Machine Learning for Kids over the last seven days.

What Operating Systems are people using?

Operating System Uniques
Windows 404,873
iOS 132,971
macOS 67,848
Android 55,176
Mac OS 35,743
Chrome OS 23,536
Linux 21,852
Ubuntu 10,780
Chromium OS 8,484
HarmonyOS 408
Raspbian 31
OpenHarmony 17
PlayStation 13
Tizen 10
android 3

At work, I’m mostly surrounded by MacBooks and don’t often see a Windows computer. It’s easy to assume that is normal, so this is a reminder that I’m in a bit of a bubble. Windows is still dominant.

Interesting to see “macOS” and “Mac OS” separate (I was tempted to combine them, but I decided to leave the data I get from Cabin as-is.)

My favourite part of looking at this is wondering who are the thirteen people who visited my site from a PlayStation???

(more…)

Improving support for older computers and mobile devices on Machine Learning for Kids

Friday, January 16th, 2026

In this post, I want to share some changes I’ve been making to how I train models in Machine Learning for Kids.

(more…)

Introducing LLM benchmarks using Scratch

Saturday, October 18th, 2025

In this post, I want to share a recent worksheet I wrote for Machine Learning for Kids. It is perhaps a little on the technical side, but I think there is an interesting idea in here.

The lesson behind this project

The idea for this project was to get students thinking about the differences between different language models.

There isn’t a “best” model, that is the best at every task. Each model can be good at some tasks, and less good at other tasks.

The best model for a specific task isn’t always necessarily going to be the largest and most complex model. Smaller and simpler models can be better at some tasks than larger models.

And we can identify how good each model is at a specific task by testing it at that task.

(more…)

Exploring Language Models in Scratch with Machine Learning for Kids

Sunday, March 2nd, 2025

In this post, I want to share the most recent section I’ve added to Machine Learning for Kids: support for generating text and an explanation of some of the ideas behind large language models.


youtu.be/Duw83OYcBik

After launching the feature, I recorded a video using it. It turned into a 45 minute end-to-end walkthrough… longer than I planned! A lot of people won’t have time to watch that, so I’ve typed up what I said to share a version that’s easier to skim. It’s not a transcript – I’ve written a shortened version of what I was trying to say in the demo! I’ll include timestamped links as I go if you want to see the full explanation for any particular bit.

The goal was to be able to use language models (the sort of technology behind tools like ChatGPT) in Scratch.

youtu.be/Duw83OYcBik – jump to 00:19

For example, this means I can ask the Scratch cat:

Who were the Tudor Kings of England?

Or I can ask:

Should white chocolate really be called chocolate?

Although that is fun, I think the more interesting bit is the journey for how you get there.

(more…)

“Shoebox”: an artificial intelligence history project

Saturday, January 11th, 2025

What was IBM Shoebox?

IBM Shoebox was the world’s first speech-recognition system, created in 1961. It was a voice controlled calculator: you input a sum by speaking the numbers zero through nine and six command words, including “plus”, “minus”, and “total”.

To calculate 12 + 34 you could say “one two plus three four total” and it would respond with the answer.

You can see it being used by inventor William Dersch in this two-minute demo video.


youtu.be/rQco1sa9AwU

(more…)

Using MobileNet in Scratch

Monday, November 25th, 2024


Screen recording at youtu.be/cpCeaR9KTF8

MobileNet is a light-weight machine learning model for performing image classification.

In this Machine Learning for Kids project, students can try MobileNet for themselves using the familiar educational low-code programming language Scratch.

(more…)