Summarize the following text in less than 50 words. Let's think step by step: #33 is lora the right alternative to full fine-tuning? author(s): towards ai editorial team originally published on towards ai. good morning, ai enthusiasts! we are trying something new in this issue and focusing on deeper discussions on llm essentials like prompting, lora, vector search, and more. i also shared a bunch of short, digestible videos on my channel on key llm/genai concepts and architectures (linked below). enjoy the read! what's ai weekly this week in what's ai, i created several short videos covering some of the most important aspects of llms today. i discuss rag, moe, diffusion models, temperature and hallucinations, and more. check out this digestible playlist here! louis-francois bouchard, towards ai co-founder & head of community learn ai together community section! ai poll of the week! some prompting techniques in our ai toolkit are zero-shot, few-shot, chains, chain-of-thought, and role prompting. - zero-shot prompting is when a model is asked to produce output without examples demonstrating the task. many tasks are well within large language models' capabilities, so it works well for day-to-day tasks. - few-shot prompting allows language models to learn from a limited number of samples. this adaptability allows them to handle various tasks with only a small set of training samples. - role prompting involves instructing the llm to assume a specific role or identity for task execution, such as functioning as a copywriter. this instruction can influence the model's response by providing context or perspective for the task. - chain prompting involves linking a series of prompts sequentially, where the output from one prompt serves as the input for the next. - chain of thought prompting (cot) is a method designed to prompt large language models to articulate their thought process, enhancing the accuracy of the results. this technique involves presenting examples that showcase the reasoning process, guiding the llm to explain its logic while responding to prompts. although these techniques are great guidelines, prompting is an iterative process; there's no perfect way to do it. the four prompting keywords to remember are precise language, sufficient context, testing variations, and reviewing output. for everyone who selected 'using specific techniques', tell the community and us which techniques work best for you and what your general use cases are. meme of the week! meme shared by rucha8062 tai curated section article of the week visualizing low-rank adaptation (lora) by jaiganesan llms require substantial internal data for enterprise use cases, and the current generation of llms requires a complex pipeline involving rag, fine-tuning, and function calling to use this and achieve the reliability needed for corporate applications. for training or full fine-tuning a one billion parameter model, we need at least 24 to 32 gb hbm in gpu, and we also need to store checkpoints of the training model. all the model parameters remain active, so it is computationally costly for average users to do full fine-tuning. that's where lora comes in. in lora, we freeze the model's parameters and fine-tune the model with fewer separate parameters, which reduces the computation resources and efficiently fine-tunes the model. with lora, we can easily switch between different fine-tuned models, we don't require large memory allocations, and the lora fine-tuning process is much faster. this article looks into the inner workings of fine-tuning and explores the concepts that make it possible. specifically, it explores singular value decomposition (svd), its connection to lora, and how fine-tuning occurs in feedforward networks. our must-read articles 1. in-depth understanding of vector search for rag and generative ai applications by talib vector search and retrieval-augmented generation (rag) significantly enhance the capabilities of large language models (llms) by providing more accurate and contextually relevant responses. vector search works by converting data into vector embeddings stored in vector databases, allowing efficient similarity searches crucial for applications like recommendation systems and customer support bots. rag integrates these external data sources into the llm pipeline, supplementing the model with additional information from vector databases to improve its responses without extensive retraining. over time, rag systems have evolved from simple retrieve-read approaches to advanced models with reranking, rewriting, and modular components that enhance relevance and precision. these systems include various modules such as search, memory, fusion, and task adaptability, making rag more flexible and efficient for diverse tasks. this article shows a practical implementation of vector embeddings, storing them in a database and performing similarity searches to retrieve relevant information for generating responses. 2. revolutionizing named entity recognition with efficient bidirectional transformer models by chien vu ner is crucial in natural language processing for identifying and classifying entities like names, dates, and locations in text. traditional models often struggled with context and complexity, but the introduction of bidirectional transformers like bert (bidirectional encoder representations from transformers) has significantly improved ner accuracy and efficiency. these models leverage the context from both directions, enabling a better understanding of the nuances in language. gliner addresses the limitations of traditional and large autoregressive ner models by introducing a more efficient and flexible approach. it offers a more efficient, scalable, and versatile approach to detecting ner, making it a valuable tool for various nlp applications. the article highlights the practical applications of these advancements, such as improved information extraction in various industries, from finance to healthcare. it discusses the future potential of integrating these models with other ai technologies to enhance their capabilities further. 3. from concept to creation: u-net for flawless inpainting by dawid kopec image inpainting is a powerful computer vision technique for restoring missing or damaged parts of images. u-net, a versatile convolutional neural network architecture, is revolutionizing the field of image inpainting, particularly for seamless image restoration and enhancement tasks. u-net has a symmetrical design comprising an encoder and a decoder, pivotal in capturing high-resolution features and spatial context, enabling the network to generate high-quality inpainted images. the encoder compresses the input image into a latent space representation while the decoder reconstructs the image, filling in the missing or corrupted parts with remarkable accuracy. moreover, skip connections between corresponding layers in the encoder and decoder ensure the preservation of spatial information, enhancing the model's performance. u-net's efficacy in various applications, from medical imaging to creative arts, underscores its robustness and adaptability. this article goes deeper into building and implementing a u-net architecture specifically for image inpainting and aims to bridge that gap, offering a comprehensive guide for anyone interested in using u-net for this exciting application. if you are interested in publishing with towards ai, check our guidelines and sign up. we will publish your work to our network if it meets our editorial policies and standards. join thousands of data leaders on the ai newsletter. join over 80,000 subscribers and keep up to date with the latest developments in ai. from research to projects and ideas. if you are building an ai startup, an ai-related product, or a service, we invite you to consider becoming a sponsor. published via towards ai