Blog

Posts

77 posts
Deep Research with LangGraph (3/3): the Writer agent and final report

Deep Research with LangGraph (3/3): the Writer agent and final report

Third and final part of the Deep Research with LangGraph series. Implement the Writer agent that drafts the final report from the research, ...

Deep Research with LangGraph (2/3): the multi-agent Research Supervisor

Deep Research with LangGraph (2/3): the multi-agent Research Supervisor

Second part of the Deep Research with LangGraph series. Build the Research Supervisor that coordinates several Researcher agents in parallel...

Deep Research with LangGraph (1/3): Scope and Researcher agents

Deep Research with LangGraph (1/3): Scope and Researcher agents

First part of the series on building an AI research assistant with LangGraph. Learn the system architecture and build the Scope agent, which...

MCP Elicitation: Implementing Elicitation in Servers with FastMCP and Python

MCP Elicitation: Implementing Elicitation in Servers with FastMCP and Python

Learn how to implement elicitation in MCP (Model Context Protocol) servers with FastMCP. Complete step-by-step tutorial to create an intelli...

MCP Durability: Server and Client with Persistence for Long-Running Tasks

MCP Durability: Server and Client with Persistence for Long-Running Tasks

Learn to build durable MCP server and client for long-running tasks with persistence. Complete Model Context Protocol tutorial featuring SQL...

Resumable MCP: How to Build Servers and Clients with Automatic Checkpoints

Resumable MCP: How to Build Servers and Clients with Automatic Checkpoints

Learn to build resumable MCP servers and clients with automatic checkpoint capabilities. Complete tutorial on implementing task interruption...

Stream Information in MCP: Complete Guide to Real-time Progress Updates with FastMCP

Stream Information in MCP: Complete Guide to Real-time Progress Updates with FastMCP

Learn how to implement real-time streaming in MCP (Model Context Protocol) applications using FastMCP. This comprehensive guide shows you ho...

LangGraph (4/4): state customization and checkpoints

LangGraph (4/4): state customization and checkpoints

Fourth and final part of the LangGraph guide. Customize the graph state with your own schemas and reducers, and master checkpoints to inspec...

LangGraph (3/4): long-term memory and human-in-the-loop

LangGraph (3/4): long-term memory and human-in-the-loop

Third part of the LangGraph guide. Implement long-term memory (across threads) so the agent remembers information between conversations, and...

LangGraph (2/4): short-term memory

LangGraph (2/4): short-term memory

Second part of the LangGraph guide. Add short-term memory to your chatbot: persist the graph state within a thread using checkpointers, reco...

LangGraph (1/4): basic chatbot and tools

LangGraph (1/4): basic chatbot and tools

First part of the complete LangGraph guide. Learn how LangGraph works, install it, set up the Hugging Face and Anthropic API keys, build you...

MCP with FastMCP (4/4): HTTP, authentication and the MCP client

MCP with FastMCP (4/4): HTTP, authentication and the MCP client

Fourth and final part of the MCP with FastMCP guide. Serve the server over HTTP, add authentication with Bearer tokens and RSA keys, and con...

MCP with FastMCP (3/4): advanced resources and prompts

MCP with FastMCP (3/4): advanced resources and prompts

Third part of the MCP with FastMCP guide. Add context to your resources, create parameterized resource templates, and define reusable prompt...

MCP with FastMCP (2/4): transport layer, context and resources

MCP with FastMCP (2/4): transport layer, context and resources

Second part of the MCP with FastMCP guide. Configure the transport layer, exclude tool arguments, access the request context, and create you...

MCP with FastMCP (1/4): build your first server and manage its tools

MCP with FastMCP (1/4): build your first server and manage its tools

First part of the MCP (Model Context Protocol) guide with FastMCP. Set up the environment, build your first MCP server, expose functions as ...

Agents patterns

Agents patterns

Are your agents falling short? Elevate your AI projects with advanced patterns: ReAct, planning, multi-agents, and more. Practical guide wit...

LangGraph: Revolutionize your AI agents

LangGraph: Revolutionize your AI agents

🚀 Revolutionize your AI agents! 🧠 LangGraph is not just another library, it's the orchestration framework that gives you total control to ...

Create virtual environments with uv

Create virtual environments with uv

Learn how to create virtual environments with uv, a package manager and environment for Python written in Rust, which makes it very fast. If...

Make a real-time AI application with FastRTC

Make a real-time AI application with FastRTC

If you have problems making a real-time AI application, FastRTC can help you. In this post I explain how to use it.

Generate videos with Wan2.1-T2V-14B and Inference Providers

Generate videos with Wan2.1-T2V-14B and Inference Providers

Do you want to have your own Sora, but also generate good videos? In this post I explain how to do it with HuggingFace Inference Providers a...

Deploy backend with LLM in HuggingFace

Deploy backend with LLM in HuggingFace

Do you want to deploy a backend with your own LLM? In this post I explain how to do it with HuggingFace Spaces, FastAPI, Langchain and Docke...

Langchain with open source integrations

Langchain with open source integrations

Learn how to use Langchain with the most popular open-source integrations. In this post, we will explore how to integrate Langchain with Chr...

unittest

unittest

Refactoriza sin miedo 🛠️ gracias a los test unitarios. En este post vas a aprender a hacer test unitarios en Python con la librería unittes...

RAG fundamentals

RAG fundamentals

Forget about Ctrl+F! 🤯 With RAG, your documents will answer your questions directly. 😎 Step-by-step tutorial with Hugging Face and ChromaD...

Conventional commits

Conventional commits

😠 Are your commits written in alien language? 👽 Join the club! 😅 Learn Conventional Commits in Python and stop torturing your team with c...

DoLa – Decoding by Contrasting Layers Improves Factuality in Large Language Models

DoLa – Decoding by Contrasting Layers Improves Factuality in Large Language Models

Have you ever talked to an LLM and they answered you something that sounds like they've been drinking machine coffee all night long 😂 That'...

QLoRA: Efficient Finetuning of Quantized LLMs

QLoRA: Efficient Finetuning of Quantized LLMs

Hello everyone! 🤗 Today we are going to talk about QLoRA, the technique that will allow you to make your language models more efficient and...

GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers

GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers

Attention developers! 🚨 Do you have a language model that is too big and heavy for your application? 🤯 Don't worry, GPTQ is here to help y...

llm.int8() – 8-bit Matrix Multiplication for Transformers at Scale

llm.int8() – 8-bit Matrix Multiplication for Transformers at Scale

Get ready to save space and speed up your models! 💥 In this post, I'm going to explore the llm.int8() method, a quantization technique that...

LLMs quantization

LLMs quantization

Imagine having a giant language model that can answer any question, from the capital of France to the perfect brownie recipe! 🍞️🇫🇷 But wh...

LoRA – low rank adaptation of large language models

LoRA – low rank adaptation of large language models

Get ready to take your model adaptation to the next level with LoRA! 🚀 This low-rank adaptation technique is like a superhero cape for your...

Fine tuning Florence-2

Fine tuning Florence-2

You've already got Florence-2 on your radar, but now you want to take it to the next level! 🚀 It's time for fine-tuning! 💻 In this post, I...

Fine tuning SMLs

Fine tuning SMLs

😂 Tuning small language models? Please, you're not 'tuning', you're just desperately trying to get some sense out of a model that's about a...

GPT-2 – Language Models are Unsupervised Multitask Learners

GPT-2 – Language Models are Unsupervised Multitask Learners

Unlock the power of text generation with GPT-2, the latest open model from OpenAI 💸! 🚀 In this post, I take you by the hand through the ar...

Florence-2

Florence-2

Attention everyone! 🚨 We have a new king in town! 👑 Florence-2, the multimodal model that is revolutionizing the artificial intelligence g...

GPT1 – Improving Language Understanding by Generative Pre-Training

GPT1 – Improving Language Understanding by Generative Pre-Training

Unlock the power of language!!!! 💥 In my last post, I take you by the hand through the GPT-1 paper, explaining in a clear and concise way h...

BPE tokenizer

BPE tokenizer

🔍 Discover the secret of tokenization! 🔑 I reveal you the mysteries of BPE (Byte Pair Encoding) tokenization, one of the most popular and ...

Hugging Face Optimun

Hugging Face Optimun

Attention, slow PyTorch models! 🐌 Optimun, the Hugging Face library, comes to the rescue to speed up your workouts and inferences. With Opt...

Ollama

Ollama

🏃 Run any LLM on your computer, whether it is a NASA spacecraft 🚀 or a coffee maker 🫖. With Ollama you have the facility to use any langu...

Accelerate: Saving, Mixed Precision and Inference (2/2)

Accelerate: Saving, Mixed Precision and Inference (2/2)

Save and load models with Hugging Face Accelerate, train with FP16/BF16/FP8 mixed precision, and run inference with the Hugging Face ecosyst...

HuggingFace Accelerate: Train Models on GPU/TPU (1/2)

HuggingFace Accelerate: Train Models on GPU/TPU (1/2)

Install and configure Hugging Face Accelerate and adapt your training loop to run on multiple GPUs and TPUs, with process execution control.

Hugging Face Evaluate

Hugging Face Evaluate

Forget sleepless nights calculating metrics and losing your mind with evaluate for your NLP models! 😩 Hugging Face's evaluate library is th...

Hugging Face Datasets

Hugging Face Datasets

Wake up, AI developer! ☕️ Stop wasting your time loading and preprocessing data like a slave 🙅‍♂️ and discover Hugging Face's datasets libr...

Hugging Face Transformers

Hugging Face Transformers

🤖 Transform your world with Hugging Face Transformers! 🚀 Ready to make magic with natural language? From super-fast techniques with pipeli...

git-sim

git-sim

If you are afraid 😱 to use git commands, come in and learn how to test them easily and graphically with git-sim 😊

Hugging Face Tokenizers

Hugging Face Tokenizers

📄 ➡️ 🔤 Explore the power of the Hugging Face Tokenizers library for natural language processing in AI. Discover how this essential tool tr...

Transformers – from top to the bottom

Transformers – from top to the bottom

Discover transformers 🚀. Learn the architecture behind all the new language models. Don't ask an AI, come in and learn

ChromaDB

ChromaDB

Discover how ChromaDB redefines vector data search and management for AI applications, with ultra-fast and accurate similarity searches in h...

Regular expressions

Regular expressions

It explores the power and precision of regular expressions, essential tools in programming that allow describing patterns in text strings fo...

Mixtral-8x7B

Mixtral-8x7B

Discover the fashion model in the world of AI

Embeddings similarity measure

Embeddings similarity measure

Discover how similarity is measured between embeddings, the basis of the attention mechanism of transformers and RAG algorithms

Embeddings

Embeddings

Discover the power of embeddings

Tokens

Tokens

Discover what tokens are and how words are divided into minimum units of word representation

OpenAI API

OpenAI API

🚀 Discover the power of the OpenAI API in this post! 🌟 Learn how to install the OpenAI library ✨ and I'll guide you through the first step...

HTML

HTML

Learn HTML, the markup language used to create web pages. Learn how to structure the content of a web page and format it with HTML.

Fail2ban

Fail2ban

🛡️ 💻 Raise your security game! Dive into this tutorial and find out how Fail2Ban helps you stop brute force attacks in their tracks. From ...

Caffeine

Caffeine

🚀 Wake up, Ubuntu! ☕ With Caffeine for Linux, say goodbye to those annoying sleep modes just when you least expect it. Work marathon? Etern...

Conda

Conda

Conda vs Pip - the eternal battle! Find out why Conda wears the champion belt 🥊 and how Mamba is not just a dance, but the turbo your data ...

Git (3/3): remote repositories, stash and tags

Git (3/3): remote repositories, stash and tags

Third part of the Git guide. Work with remote repositories ☁️, create aliases, save changes with stash and mark versions with tags like a pr...

Git (2/3): branches

Git (2/3): branches

Second part of the Git guide. Master branches 🌳: create parallel lines of development, move between them, merge them and resolve conflicts ...

Git (1/3): local version control

Git (1/3): local version control

Have you rewritten that code that took you hours to do? Don't panic! First part of the Git guide: learn to keep version control of your proj...

Whisper

Whisper

👂 You don't get to gossip what the first one says? With whisper you can not only do it, but also translate it if you want. Log in and learn...

SSH

SSH

Connecting securely is essential in today's digital world. Discover how SSH allows you to establish encrypted communications between your ma...

Blip2

Blip2

🤯 Can you imagine that you can add images to a gpt chat and ask questions about them? With Blip2 you can, log in and learn how

How Neural Networks Work: Linear Regression and Gradient Descent Step by Step

How Neural Networks Work: Linear Regression and Gradient Descent Step by Step

Learn how a neural network works with Python: linear regression, loss function, gradient, and training. Hands-on tutorial with code.

Neural Networks: A Brief History, AI Winter, the 2012 Breakthrough, and the mainstream of 2022

Neural Networks: A Brief History, AI Winter, the 2012 Breakthrough, and the mainstream of 2022

Learn how neural networks work, their history since the 1950s, the AI Winter, and how ImageNet revolutionized AI in 2012. Beginner-friendly ...

Bash scripting

Bash scripting

Feel like an old school programmer 🐧 with this post about bash scripting.

Docker (2/2): Docker Compose and advanced topics

Docker (2/2): Docker Compose and advanced topics

🐳 Second part of the Docker guide. Orchestrate several containers at once with Docker Compose and master the advanced topics of Docker to t...

Docker (1/2): containers, images and applications

Docker (1/2): containers, images and applications

🐳 First part of the Docker guide. Create as many development environments as you want: learn to handle containers, data and volumes, images...

Terminal (3/3): system administration

Terminal (3/3): system administration

🟢 Third part of the terminal guide. Administer the system 🖥: memory, disk, packages, users, security and command scheduling in the termina...

Terminal (2/3): network, compression and processes

Terminal (2/3): network, compression and processes

🟢 Second part of the terminal guide. Master network utilities 🌐, file compression and managing background and foreground processes 💻 like...

Terminal (1/3): navigation, files and commands

Terminal (1/3): navigation, files and commands

🟢 First part of the terminal guide. Learn to move around the console 💻, handle files and directories, permissions, redirections, environme...

Data management with Pandas

Data management with Pandas

📊 Manage data 📝 easily with Pandas 📖

Matrix calculation with NumPy

Matrix calculation with NumPy

🟢 Learn to do all the matrix calculation you want in an agile way with NumPy

Complete Python Guide 2025 (3/3): classes, objects and advanced topics

Complete Python Guide 2025 (3/3): classes, objects and advanced topics

Third part of the complete Python guide. Learn classes and objects, iterators, variable scope, modules and packages, error handling with try...

Complete Python Guide 2025 (2/3): operators, control flow and functions

Complete Python Guide 2025 (2/3): operators, control flow and functions

Second part of the complete Python guide. Master operators, control flow (if, for, while) and functions, including lambda, map, filter and r...

Complete Python Guide 2025 (1/3): data types

Complete Python Guide 2025 (1/3): data types

First part of the complete Python guide. Learn the data types: strings, numbers, sequences (lists and tuples), dictionaries, sets, booleans ...

Continue reading

Last posts -->

Have you seen these projects?

Gymnasia

Gymnasia Gymnasia
React Native
Expo
TypeScript
FastAPI
Next.js
OpenAI
Anthropic

Mobile personal training app with AI assistant, exercise library, workout tracking, diet and body measurements

Horeca chatbot

Horeca chatbot Horeca chatbot
Python
LangChain
PostgreSQL
PGVector
React
Kubernetes
Docker
GitHub Actions

Chatbot conversational for cooks of hotels and restaurants. A cook, kitchen manager or room service of a hotel or restaurant can talk to the chatbot to get information about recipes and menus. But it also implements agents, with which it can edit or create new recipes or menus

View all projects -->
>_ Available for projects

Do you have an AI project?

Let's talk.

maximofn@gmail.com

Machine Learning and AI specialist. I develop solutions with generative AI, intelligent agents and custom models.

Do you want to watch any talk?

Last talks -->

Do you want to improve with these tips?

Last tips -->

Use this locally

Hugging Face spaces allow us to run models with very simple demos, but what if the demo breaks? Or if the user deletes it? That's why I've created docker containers with some interesting spaces, to be able to use them locally, whatever happens. In fact, if you click on any project view button, it may take you to a space that doesn't work.

Flow edit

Flow edit Flow edit

FLUX.1-RealismLora

FLUX.1-RealismLora FLUX.1-RealismLora
View all containers -->
>_ Available for projects

Do you have an AI project?

Let's talk.

maximofn@gmail.com

Machine Learning and AI specialist. I develop solutions with generative AI, intelligent agents and custom models.

Do you want to train your model with these datasets?

short-jokes-dataset

HuggingFace

Dataset with jokes in English

Use: Fine-tuning text generation models for humor

231K rows 2 columns 45 MB
View on HuggingFace →

opus100

HuggingFace

Dataset with translations from English to Spanish

Use: Training English-Spanish translation models

1M rows 2 columns 210 MB
View on HuggingFace →

netflix_titles

HuggingFace

Dataset with Netflix movies and series

Use: Netflix catalog analysis and recommendation systems

8.8K rows 12 columns 3.5 MB
View on HuggingFace →
View more datasets -->