Language Models: General or Instructional – A Key Comparison

Language Models: General or Instructional – A Key Comparison

Tiempo de lectura: < 1 minutoWe need to understand that not all models are created equal. The main difference between general models and instructional models. General models Ejemplo:Pregunta: “Explain how a neural network works”Response from a general model: can give an extensive explanation, include unnecessary concepts or jump topics. Instruct Models Ejemplo:Pregunta: “Explain how a neural network works step by … Read more

How to activate GPU access from a Docker container, for example, to access an LLM model.

How to activate GPU access from a Docker container, for example, to access an LLM model.

Tiempo de lectura: 2 minutosEnable GPU access is essential if we need to start a LLM model and use GPU with VRAM. Previous requirements Please ensure you have an NVIDIA GPU installed on your machine with the drivers installed and updated. Check using: nvidia-smi You should see your GPU and driver version. Additionally, Docker must be installed. NVIDIA Container … Read more

Using VLLM with Docker for Deploying Our LLM Models in Production

Using VLLM with Docker for Deploying Our LLM Models in Production

Tiempo de lectura: 2 minutosIt’s an inference server optimized (uses paged attention) that supports models like Llama 3, Mistral, Gemma, Phi, Qwen, etc. This offers an OpenAI-compatible API, perfect for easy integration. We will create the Docker Compose that allows us to deploy it: File: docker-compose.yml version: “3.9” services: vllm: image: vllm/vllm-openai:latest container_name: vllm restart: unless-stopped ports: – “8000:8000” … Read more

Solving the issue: Expo Vector icons not showing in Expo 35 or higher

Solving the issue: Expo Vector icons not showing in Expo 35 or higher

Tiempo de lectura: < 1 minutoCuando actualizamos a la versión de Expo 35 o 36 o superior, expo-vector no es capaz de mostrar los iconos en Android. We need to do the following to solve it: We need to make sure we have the correct versions according to Expo. In my case: “@expo/vector-icons”: “^14.1.0”, “expo”: “~53.0.23” We need to have … Read more

Implementing Expo Image with React Native and Expo for Accelerating Image Loading and Caching

Tiempo de lectura: 2 minutosexpo-image is a modern Expo component optimized for loading images in a fast, efficient and cache integrated way. It’s designed to replace both the native React Native Image and external libraries such as react-native-fast-image. Includes: If your project already uses Expo SDK 49 or higher, you can install it directly with: npx expo install expo-image … Read more

How to Create a Rate Limit System in PHP for Limiting Requests by IP: A Step-by-Step Guide

How to Create a Rate Limit System in PHP for Limiting Requests by IP: A Step-by-Step Guide

Tiempo de lectura: 2 minutosLearn how to protect your PHP server from abuse, bots or brute-force attacks by limiting the number of requests per second from each IP address. The Rate Limiting (or rate limiting) is a technique that allows to restrict the number of requests that a user (or IP) can make to a server within a time … Read more

Creating a Link Shortener Using Backend PHP

Creating a Link Shortener Using Backend PHP

Tiempo de lectura: < 1 minutoWe will learn today how to create a link shortener for our back end using a simple PHP script. We will create our shortener, we can call it link.php <?php // Cabecera header(“Access-Control-Allow-Origin: *”); date_default_timezone_set(“Europe/Madrid”); //Anti Bots if (preg_match(‘/bot|crawl|spider|preview/i’, $userAgent)) { // No registrar bots header(“Location: $target”, true, 302); exit; } // Recoger slug $slug … Read more

Creating a Holder or Context in Flutter

Creating a Holder or Context in Flutter

Tiempo de lectura: 2 minutosEn Flutter there is no React Hooks (like react native), but it has a widget tree where you can inject data from top to bottom. It is the pure equivalent of React Context, although at a lower level. BASIC EXAMPLE: import ‘package:flutter/material.dart’; class CounterHolder extends InheritedWidget { final int counter; final Function() increment; const CounterHolder({ … Read more

Practical Tips for Large Apps Web Performance Optimization

Practical Tips for Large Apps Web Performance Optimization

Tiempo de lectura: < 1 minutoThe web performance is a critical factor for any modern application, especially when we talk about large apps with many features, concurrent users and real-time data. A slow site not only affects the user experience, but also impacts retention, conversions and SEO positioning. < p Next, we present practical tips for optimizing large web applications … Read more