Latest Tutorials

Learn about the latest technologies from fellow newline community members!

  • React
  • Angular
  • Vue
  • Svelte
  • NextJS
  • Redux
  • Apollo
  • Storybook
  • D3
  • Testing Library
  • JavaScript
  • TypeScript
  • Node.js
  • Deno
  • Rust
  • Python
  • GraphQL
  • React
  • Angular
  • Vue
  • Svelte
  • NextJS
  • Redux
  • Apollo
  • Storybook
  • D3
  • Testing Library
  • JavaScript
  • TypeScript
  • Node.js
  • Deno
  • Rust
  • Python
  • GraphQL
    NEW

    How to Implement LoRA-QLoRA in AI for Drug Discovery

    LoRA (Low-Rank Adaptation) and QLoRA (Quantized Low-Rank Adaptation) are parameter-efficient fine-tuning techniques that enable resource-constrained adaptation of large foundation models without retraining the entire architecture. These methods introduce low-rank matrices to existing model weights, allowing for task-specific adjustments with minimal additional parameters . In biomedical and drug discovery applications, LoRA/QLoRA reduce computational costs while maintaining performance, making them critical for tasks like adverse drug reaction (ADR) detection from unstructured text or protein-drug interaction prediction . See the section for a broader overview of such use cases. Recent advancements, such as QLoRA’s integration of quantization, further optimize memory usage, enabling deployment on systems with limited GPU resources . This section explores how these techniques address challenges in AI-driven drug discovery, their current research landscape, and their practical implications for pharmaceutical innovation. LoRA/QLoRA methods address two major bottlenecks in drug discovery: the high computational cost of training large models and the scarcity of labeled biomedical datasets. For instance, demonstrates their use in classifying ADRs from social media data—a task requiring real-time processing of noisy, unstructured inputs. By reducing trainable parameters by orders of magnitude, LoRA enables rapid iteration on small, domain-specific datasets, a common scenario in preclinical research . Similarly, applies LoRA to ESM-2, a protein language model, to predict binding affinities between drug candidates and target proteins. This application highlights how low-rank adaptations can preserve the core capabilities of foundation models while tailoring them to niche scientific tasks. The efficiency of QLoRA, which combines LoRA with 4-bit quantization, is particularly valuable for high-throughput screening scenarios where thousands of molecular interactions must be evaluated . These methods thus democratize access to advanced AI tools for smaller research teams with limited computational infrastructure. The academic and industry research communities have rapidly adopted LoRA/QLoRA for biomedical applications since their introduction. A 2024 survey provides a comprehensive analysis of LoRA extensions beyond language models, including vision and graph-based foundation models relevant to molecular structure analysis. In parallel, evaluates LLAMA3’s performance on biomedical classification tasks using LoRA, revealing that low-rank adaptations achieve 98% of full fine-tuning accuracy at 1% of the computational cost. However, challenges persist. For example, notes that LoRA’s effectiveness in drug-target prediction depends heavily on the quality of the pre-trained ESM-2 weights, suggesting that domain-specific pretraining remains a critical prerequisite. As mentioned in the section, data quality issues further complicate model reliability. Additionally, while QLoRA reduces memory overhead, warns that quantization may introduce subtle accuracy degradation in tasks requiring high numerical precision, such as quantum chemistry simulations. Despite these limitations, open-source frameworks like Hugging Face’s PEFT library have integrated LoRA/QLoRA workflows, accelerating their adoption in both academic and industrial drug discovery pipelines. See the section for strategies on selecting and deploying these tools effectively.
    Thumbnail Image of Tutorial How to Implement LoRA-QLoRA in AI for Drug Discovery
      NEW

      Review of Codex with GPT 5.2

      Codex is an AI system specialized for coding tasks, developed by OpenAI to assist developers with code generation, debugging, and code reviews . It integrates with tools like GitHub and ChatGPT, allowing users to perform code-related tasks directly within their development workflows . GPT-5.2, the latest iteration of OpenAI’s large language model family, introduces significant improvements in reasoning, coding accuracy, and task-specific variants such as GPT-5.2 Instant, GPT-5.2 Thinking, and GPT-5.2 xhigh . These variants cater to different use cases, from rapid responses to complex problem-solving. The integration of Codex with GPT-5.2 enhances its ability to handle advanced programming tasks, with features like multi-hop reasoning and deeper contextual understanding . Notably, GPT-5.2’s code review capabilities are highlighted as a critical upgrade, enabling the detection of subtle bugs and security vulnerabilities before deployment . Developers using Codex with GPT-5.2 report a noticeable improvement in code quality and efficiency compared to earlier versions like GPT-5.1-Codex-Max . Codex with GPT 5.2 introduces several advanced features tailored for AI and web development workflows. One of its core capabilities is code review and bug detection , where the model analyzes codebases to identify logical errors, security flaws, and inefficiencies. For example, developers using the /review command in Codex with GPT-5.2 xhigh have reported catching critical issues that were overlooked in earlier tools like Opus 4.5 . The model’s ability to provide "logical and clear analysis" during reviews has been praised in practical applications, such as auditing legacy projects built with older Codex versions . Another feature is multi-model integration , allowing users to combine Codex with other AI systems. For instance, developers pair Codex (GPT-5.2 high) with Opus 4.5 for implementation tasks and use GPT-5.2 exclusively for final code reviews, leveraging its precision . See the Vibe Coding Platforms and AI Coding Assistants section for more details on integrating Codex with complementary tools like Cursor and Antigravity . The system also supports customizable model variants , such as GPT-5.2 xhigh for complex coding and GPT-5.2 Instant for quick queries . Additionally, Codex with GPT 5.2 integrates with CLI and IDE tools , enabling direct code generation and refactoring workflows through platforms like Codex CLI and GitHub . This seamless integration reduces context-switching for developers, streamlining tasks like debugging and documentation .
      Thumbnail Image of Tutorial Review of Codex with GPT 5.2

      I got a job offer, thanks in a big part to your teaching. They sent a test as part of the interview process, and this was a huge help to implement my own Node server.

      This has been a really good investment!

      Advance your career with newline Pro.

      Only $40 per month for unlimited access to over 60+ books, guides and courses!

      Learn More
        NEW

        Your Checklist for Cheap AI LLM model inference

        Large Language Models (LLMs) are advanced AI systems trained on vast datasets to perform tasks like text generation, translation, and reasoning. These models, such as GPT-3, which achieved an MMLU score of 42 at a cost of $60 per million tokens in 2021 , rely on complex neural network architectures to process and generate human-like responses. Model inference—the process of using a trained LLM to produce outputs based on user inputs—is critical for deploying these systems in real-world applications. However, inference costs have historically been a barrier, as early models required significant computational resources . Recent advancements, such as optimized algorithms and hardware improvements, have accelerated cost reductions, making LLMs more accessible . Despite this progress, understanding the trade-offs between performance and affordability remains essential for developers and businesses . Efficient LLM inference is vital for scaling AI applications without incurring prohibitive expenses. Generative AI’s cost structure has shifted dramatically, with inference costs decreasing faster than model capabilities have improved . For instance, techniques like quantization and model compression, detailed in research on "LLM in a flash," enable faster and cheaper inference by reducing memory and computational demands . These methods allow developers to deploy models on less powerful hardware, lowering operational costs . Additionally, cost-effective inference directly impacts application viability, as high expenses can limit usage to only large enterprises with substantial budgets . Startups and independent developers, in particular, benefit from affordable solutions to compete in the AI landscape . See the section for more details on open-source models like LLaMA and Mistral, which offer cost advantages. The growing availability of open-source models and budget-friendly infrastructure has reshaped how developers approach LLM inference. Open-source models like LLaMA and Mistral offer customizable alternatives to proprietary systems, often with lower licensing fees or no cost at all . These models can be fine-tuned for specific tasks, reducing the need for expensive, specialized training . Meanwhile, cloud providers now offer tiered pricing and spot instances, which drastically cut costs for on-demand inference workloads . For example, developers can leverage platforms that dynamically allocate resources based on traffic, avoiding overprovisioning . Building on concepts from , combining open-source models with cost-optimized cloud services provides a scalable pathway to deploy LLMs without compromising performance .
        Thumbnail Image of Tutorial Your Checklist for Cheap AI LLM model inference
          NEW

          How to Implement AI Applications: Vibecore Examples

          Watch: Vibe-coding 101 (beginner friendly) 🍥🫶 by meshtimes Vibecore is a multifaceted platform designed to streamline the development of AI applications through two distinct but complementary approaches. First, it functions as an extensible agent framework for building AI-powered automation tools directly in the terminal, featuring structured workflows, an AI chat interface, and built-in utilities for file management, shell commands, Python execution, and task automation . Second, it powers Vibecode , an AI mobile app builder that enables rapid design, deployment, and publishing of mobile applications with minimal technical overhead . These dual capabilities position Vibecore as a bridge between command-line automation and full-stack AI application development, catering to both system-level tooling and user-facing software. The platform emphasizes flexibility, allowing developers to leverage pre-built components or extend functionality through custom integrations . Vibecore’s terminal-based framework introduces Flow Mode , a structured environment for defining agent workflows that automate repetitive tasks. This mode supports multi-agent systems, such as customer service simulations demonstrated in example directories, where agents handle queries using natural language processing and task delegation . For deeper insights into these capabilities, see the section. Additionally, the platform integrates a rich set of built-in tools , including shell command execution, Python scripting, and MCP (Multi-Command Protocol) compatibility, enabling seamless interaction between AI agents and system resources . For mobile app development, Vibecode abstracts complex coding processes, offering drag-and-drop interfaces and AI-driven code generation to turn app ideas into publishable products within minutes . Both approaches rely on a responsive Textual UI for real-time feedback, ensuring developers maintain control over AI-driven workflows .
          Thumbnail Image of Tutorial How to Implement AI Applications: Vibecore Examples
            NEW

            Practical AI Applications: Real-World Examples

            Artificial intelligence (AI) applications encompass systems designed to perform tasks requiring human-like intelligence, such as problem-solving, pattern recognition, and decision-making. These applications span industries and daily activities, leveraging machine learning, natural language processing (NLP), and computer vision to automate workflows and enhance user experiences . Real-world examples include digital assistants like voice call AI, which processes spoken commands (see the section for more details on this application), and photo AI, which identifies faces in images (see the section for further exploration) . Businesses adopt AI to streamline operations, reduce costs, and gain competitive advantages, as demonstrated by platforms like Inworld, which uses Google Cloud and Gemini to handle millions of interactions efficiently . Voice call AI, such as virtual assistants in smartphones, relies on NLP to interpret and respond to user queries. These systems transcribe speech, analyze intent, and generate context-aware replies, enabling hands-free control of devices or access to information . For instance, healthcare providers use voice AI to automate patient triage, reducing administrative burdens . Key features include multilingual support, noise cancellation, and integration with calendar or messaging apps. While benefits include improved accessibility and productivity, challenges like misinterpretations in accents or background noise persist . Meeting AI tools, such as automated transcription and summarization systems, optimize virtual and in-person meetings. These applications analyze discussions to highlight action items, track decisions, and flag deviations from agendas . Platforms like Zoom and Microsoft Teams integrate AI to transcribe meetings in real time, enabling users to search for specific topics or generate follow-up tasks (see the section for case studies on implementation) . Key features include speaker identification, sentiment analysis, and integration with project management software. Advantages include time savings and reduced documentation errors, though reliance on accurate speech recognition remains a limitation .
            Thumbnail Image of Tutorial Practical AI Applications: Real-World Examples