Carlo Lepelaars
banner
carlolepelaars.bsky.social
Carlo Lepelaars
@carlolepelaars.bsky.social
https://carlo.ai | {AI, Investing, Reading, Music}
Pinned
Introducing irouter, a super simple interface to access 100s of @openrouter.bsky.social LLMs with 2 lines of code.

It supports multi-modal inputs (text, images, PDF, audio) and tool loops. Mix and match as you see fit.

pip install irouter
github.com/CarloLepelaa...

Examples (1/6) 👇
Released a notebook on how to use Google's new Gemini 2.5 Flash Image for SOTA image editing with irouter.

Simply input image(s) + text and get an image back.

Hope you have as much fun working with this as I have!

github.com/CarloLepelaa...
irouter/nbs/applications/img_edit.ipynb at main · CarloLepelaars/irouter
Access 100s of LLMs with minimal lines of code. Contribute to CarloLepelaars/irouter development by creating an account on GitHub.
github.com
August 30, 2025 at 3:23 PM
Added parallelization to irouter. This allows you to do rapid evals for many LLMs at the same time. Your only bottleneck is the slowest LLM.

For example, check 21 LLMs tackle this tricky question from
Formula 1 2021 where Max Verstappen and Lewis Hamilton were tied on points. 👇
(1/3)
August 19, 2025 at 8:52 PM
Just uploaded an example notebook on getting structured output in irouter.

Passing a schema to `response_format` is sufficient to enable structured output.

OpenAI's GPT-5 Mini seems to work well and supports multiple modalities.

More info:
github.com/CarloLepelaa...
August 13, 2025 at 5:45 PM
Reposted by Carlo Lepelaars
After reaching maturity, the PyLate library has its paper accepted at #CIKM2025
🎉Congratulations to the two creators of the library @nohtow.bsky.social @raphaelsty.bsky.social

📄 Read the paper: lnkd.in/eh6NQj4B
Discover PyLate : lightonai.github.io/pylate/
🌐 Learn more about LightOn: lighton.ai
PyLate
PyLate 🐶
lightonai.github.io
August 6, 2025 at 3:24 PM
Adding web search to your LLM app is super simple with irouter.

Chat will automatically keep track of web citations.

pip install -U irouter

Example notebook for web search in irouter:
github.com/CarloLepelaa...

Docs page:
carlolepelaars.github.io/irouter/web
August 10, 2025 at 11:54 AM
Introducing irouter, a super simple interface to access 100s of @openrouter.bsky.social LLMs with 2 lines of code.

It supports multi-modal inputs (text, images, PDF, audio) and tool loops. Mix and match as you see fit.

pip install irouter
github.com/CarloLepelaa...

Examples (1/6) 👇
August 6, 2025 at 12:30 PM
In the past few weeks I have been working on a Python library for analyzing, listening to and visualizing music theory. The goal is that you and I can easily build music-related apps from fundamental blocks.

github.com/CarloLepelaa...

Here are some of the highlights! 👇 (1/7)
June 17, 2025 at 4:10 PM
This overview of AI from a business perspective is the best I have seen!

Definitely also worth a read for AI engineers. There are so many pitfalls to avoid in order to effectively ship AI products.

By @hamel.bsky.social and @gregce.bsky.social:
ai-execs.com
AI Essentials For Tech Executives
ai-execs.com
April 9, 2025 at 3:22 PM
Last week I built a little library to simplify working with the API for Flock.io. Very cool to hear that it is already being used in a hackathon by a South Korean University!

Flocky:
github.com/CarloLepelaa...
GitHub - CarloLepelaars/flocky: Simple (Unofficial) SDK for Flock.io
Simple (Unofficial) SDK for Flock.io. Contribute to CarloLepelaars/flocky development by creating an account on GitHub.
github.com
April 7, 2025 at 10:56 AM
Reading up on recent papers in language modelling as well as some of the classics.

I think the main conclusion is that Noam Shazeer is a genius! 😁

Check out this phrase from the GeGLU paper. 😎

Link:
arxiv.org/abs/2002.052...
April 4, 2025 at 1:02 PM
Wow, this YouTube channel called 2swap has incredible videos which combine mathematical depth, beauty and deep insights!

Check out this video on extending Mandelbrot and Julia sets:
youtu.be/Ed1gsyxxwM0
Mandelbrot's Evil Twin
YouTube video by 2swap
youtu.be
March 29, 2025 at 11:23 AM
Old but gold! This interview with Steve Jobs was recorded when Pixar just went public and NeXT was a pure (web) software company, but before he returned to Apple. What incredible prescience he had about the Internet and "post-PC" devices in 1996.

youtu.be/MqSfFcaluHc
Steve Jobs: The Fresh Air Interview (1996) | Fresh Air
YouTube video by Fresh Air
youtu.be
March 28, 2025 at 10:27 AM
Fixed some silly bugs in auditus and started using a domain-specific embedding model for the @kaggle.com BirdCLEF2025+ competition.

Now we are getting somewhere! 🤩

Explore the embeddings here:
kaggle.com/code/carlole...
March 26, 2025 at 4:48 PM
Introducing auditus, a little Python library for generating Audio Embeddings. The AI field has focused on text, vision and text-to-speech, but there are also many use cases for general purpose audio. Couldn't find a simple tool, so built one.

github.com/CarloLepelaa... (1/5)
March 26, 2025 at 12:57 PM
Updated one of my old blog posts with Marimo snippets. Includes a very smooth interactive visualization of the Poisson distribution now. 🤩

Sports Prediction with Poisson:
carlo.ai/posts/poisson
Sports Prediction With Poisson - Carlo Lepelaars
Predict soccer match outcomes with the Poisson Distribution and outer product. A visual introduction.
carlo.ai
March 24, 2025 at 2:27 PM
This is a game changer for interactive blog posts! Marimo Snippets allow you to embed Python apps directly in your web apps. In this new post I show you how to do this using FastHTML.

Blog post:
carlo.ai/til/marimo-s...
March 22, 2025 at 3:22 PM
Ever struggled with complex numbers? 🤔

I’ve put together an intuitive Python introduction, covering representations, visual intuition, polar & exponential forms, conjugates and their applications in quantum computing.

Check it out on @kaggle.com:
www.kaggle.com/code/carlole...
q4p - Introduction to Complex Numbers
Explore and run machine learning code with Kaggle Notebooks | Using data from No attached data sources
www.kaggle.com
March 20, 2025 at 12:12 PM
Struggling with Python `re`? regex is a superset of re with additional functionality and more thorough Unicode support. It is very powerful and still kind of an open secret. When I saw
@howard.fm explain this I just had to write about it!

Today I Learned:
carlo.ai/til/regex-se...
regex.search - Carlo Lepelaars
Using regex.search for simple string parsing. `regex` is a superset of `re` with additional functionality and more thorough Unicode support.
carlo.ai
March 18, 2025 at 2:52 PM
Are you actively working on learning to learn? Learning itself is a skill that can be consciously developed and refined. In this blog post I discuss 3 books that helped me the most to develop learning potential.

Blog post on learning to learn:
carlo.ai/posts/learni...
Learning to Learn - Carlo Lepelaars
This blog post is about learning the skill of learning itself. We have ubiquitous Internet access, free access to YouTube and powerful LLMs like ChatGPT. These are tools that allow us to acquire almos...
carlo.ai
March 17, 2025 at 4:01 PM
This year's birdCLEF+ @kaggle.com competition is about more than birds. It features 206 species to classify. 30% are non-bird classes like frogs, insects and mammals.

I've created a notebook that analyzes all species. It also gives insights on animal sounds.

www.kaggle.com/code/carlole...
birdCLEF+ 2025: Species Analysis
Explore and run machine learning code with Kaggle Notebooks | Using data from BirdCLEF+ 2025
www.kaggle.com
March 14, 2025 at 4:51 PM
You can tell you have been working in quantitative finance for a while when every time you try to write "ticket" you unconsciously write "ticker" instead. 😅
March 6, 2025 at 12:05 PM
Very cool to see one of my blog posts integrated in documentation for an Answer.AI project (fasttransform)! 😁

What used to be Transform/Pipeline in fastcore will now be its own library called fasttransform.

fasttransform docs:
answerdotai.github.io/fasttransfor...
(1/2)
Example: quantum circuits – fasttransform
Transform is the main building block of data pipelines in fastai. And elsewhere if you want.
answerdotai.github.io
March 3, 2025 at 2:24 PM
Reposted by Carlo Lepelaars
You got this. Don’t overthink it.
March 2, 2025 at 1:15 PM
FastHTML is not only great for building web apps, but also to create beautiful representations of Python objects. In this blog post I show how you can render FastHTML in Jupyter by implementing __ft__. I also show a use case of visualizing quantum computing algorithms.
carlo.ai/posts/fastht... (1/2)
Visualizing Quantum Computing with FastHTML - Carlo Lepelaars
FastHTML is not only an awesome tool for building web apps, but also to create beautiful representations of Python objects. In this blog post we dive into `__ft__` and apply it to the use case of quan...
carlo.ai
March 2, 2025 at 5:17 PM
Time for some cool mathematics! "Perfect numbers" have held a special place in the hearts of brilliant mathematicians like Pythagoras and Paul Erdős. Some of their properties remain unknown to this day.

In this post I explain perfect numbers and how to generate them:
carlo.ai/til/perfect
Perfect Numbers - Carlo Lepelaars
A primer on perfect numbers and how to generate them.
carlo.ai
February 20, 2025 at 4:19 PM