tutorial

Fine-tuning LLAMA 3 for Text Classification with Limited Resources

Fine-tuning LLAMA 3 for Text Classification with Limited Resources

I recently needed to classify sentences for a particular use case at work. Remembering Jeremy Howard's Lesson 4: Getting started with NLP for absolute beginners, I first adapted his notebook to fine-tune DEBERTA. It worked, but not to my satisfaction, so I was curious what would happen if I used a LLM like LLAMA 3. The problem? Limited GPU resources. I only had access to a Tesla/Nvidia T4 instance. Research led me to QLORA. This tutorial on Fine tuning LLama 3 LLM for Text Classification of Stock Sentiment using QLoRA was particularly useful. To better understand the tutorial, I adapted…
Read More
#29 — Group an Excel table and Store It as Multiple Files According to Part of The Values of Specified Cells

#29 — Group an Excel table and Store It as Multiple Files According to Part of The Values of Specified Cells

Problem description & analysis:The Excel table below is ordered by column A, whose values are strings separated by “-”. The first part of column A represents the category. Task: Store the table as multiple tab-separated txt files according to different categories. The file name format is Group_Category.txt.Group_AA.txt Group_BB.txt Group_CC.txt Solution:Use SPL IDE to execute the code: =T@b("data.xlsx").group(#1.split("-")(1);~).(T@b("Group_" / #1 / ".txt": #2)) Enter fullscreen mode Exit fullscreen mode Explanation:The T()function reads files as a table and writes a table to files; @ b means that column names are not included. group() function groups rows according to the specified rule and…
Read More
Multimodal RAG locally with CLIP and Llama3

Multimodal RAG locally with CLIP and Llama3

With the recent release of GPT-4o and Gemini, multimodal has been a hot topic lately. Another one that has been on top of the lighting spot is Retrieval Augmented Generation (RAG) for the past year, but it was mostly focused on text. This tutorial will show you how to build a Multimodal RAG System. By using Multimodal RAG, you don’t have to use text only; you can use different types of data such as images, audio, videos, and text, of course. It’s also possible to return different kinds of data; just because you use text as input for your RAG…
Read More
Why are CTFs so important???

Why are CTFs so important???

CTFs are cybersec. competitions where participants solve challenges to find "flags" (pieces of info) hidden in various systems. These challenges test your skills in areas such as cryptography, forensics, reverse engineering, web exploitation, and binary exploitation. CTFs are designed for all skill levels, from beginners to experts. Types of CTFs Jeopardy-Style CTFs: Participants solve a variety of independent challenges in different categories to earn points. The team with the most points at the end wins. Attack-Defense CTFs: Teams are given identical systems to secure and defend while attempting to exploit their opponents' systems. Mixed-Style CTFs: Combines elements of both Jeopardy…
Read More
The Ultimate Guide to Node.js in 2024: Trends, Tools, and Best Practices

The Ultimate Guide to Node.js in 2024: Trends, Tools, and Best Practices

Node.js has become a cornerstone of backend development, known for its efficiency, scalability, and robust ecosystem. As we move into 2024, staying updated with the latest trends, tools, and best practices is essential for any Node.js developer. This guide covers everything you need to know about Node.js in 2024 to stay ahead in the ever-evolving tech landscape. 1. Emerging Trends in Node.js Serverless ArchitectureServerless computing continues to gain popularity, enabling developers to build and deploy applications without managing servers. Services like AWS Lambda, Google Cloud Functions, and Azure Functions allow for efficient, cost-effective scaling. Microservices ArchitectureMicroservices architecture breaks down applications…
Read More
Building with and Testing Rapyd’s OpenAPI

Building with and Testing Rapyd’s OpenAPI

The Rapyd API provides a straightforward and efficient process for integrating payment infrastructures into your application. Rapyd also recently introduced an OpenAPI specification designed to further simplify the integration of Rapyd's payment-related functionalities. As such, you are able to seamlessly accept various kinds of payments, streamline cross-border transactions, and enhance your business's cash flow management. This article explains how to integrate Rapyd's OpenAPI into an existing Flutter application, which has a product page, checkout button, and payment success and failure pages. Building an Application with Rapyd's OpenAPI Before you begin, you'll need the Flutter SDK installed on your local computer.…
Read More
Creando un Tetris con JavaScript IV: canvas

Creando un Tetris con JavaScript IV: canvas

Introducción En esta nueva entrega de la serie, veremos cómo mostrar el tablero y la pieza que está bajando en ese momento en pantalla. Para ello, tendremos que dibujarlo en el navegador, y la opción que tenemos para hacerlo es el elemento Canvas de HTML. class Canvas { static SEPARATION = 2; #_painting = false; #_element = null; #_board = null; #_piece = null; constructor(element, board) { element.width = 5 + ( board.cols * Board.PIXEL_SIZE ); element.height = 5 + ( board.rows * Board.PIXEL_SIZE ); this._board = board; this._element = element; } // más cosas... } Enter fullscreen mode Exit…
Read More
Group Rows and Concatenate Cell Values

Group Rows and Concatenate Cell Values

Problem description & analysis: Here is a categorized detail table: We need to group the table and concatenate the detail data using the semicolon. Solution: Use SPL XLL to do this: =spl("=E@b(?.groups(~1;concat(~2;$[;])))",A2:B9) Enter fullscreen mode Exit fullscreen mode As shown in the picture below: Explanation: E@b function converts the two-dimensional table to a sequence. ~1 represents the first sub-member of the current member; and $[] represents a string. Source link lol
Read More
Python Decorators: What is decorators and how to use them?

Python Decorators: What is decorators and how to use them?

Decorators are a powerful and versatile tool that allows you to modify the behavior of functions without permanently altering their original code. They work by wrapping a function in another function, which adds some extra functionality before or after the original function executes. What they are: Decorators are higher-order functions, meaning they take another function as an argument and return a new function. The new function returned by the decorator typically acts as a wrapper around the original function, adding or modifying its behavior. How they work: Defining the Decorator: You create a function that takes another function as its…
Read More
Setting your remote development environment

Setting your remote development environment

Introduction At first, it works okay when you set your dev environment up and running. You might only need to run react dev server and next dev server. However, you'll see that things become slower when you run storybook dev server. What's worse, more components are added. Plus, you want to run unit/integration/e2e tests locally before making a pull request. Some developers might have a brand-new performant machine to handle all of them. Unfortunately, it wasn't me. To solve this issue, I looked into how to speed up my development environment. Buying a new local machine Most individuals choose this…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.