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

Fine-Tune LLMs on a Single GPU Using LoRA and PEFT

LoRA makes single-GPU fine-tuning possible by updating adapters instead of rewriting the full model. QLoRA pushes further by quantizing the frozen base model, which frees up memory for the trainable adapter, optimizer state, and batches. Here's what single-GPU LoRA and QLoRA workflows look like in…
Thumbnail Image of Tutorial Fine-Tune LLMs on a Single GPU Using LoRA and PEFT
NEW

Build a Python RAG App: Load API Keys with `load_dotenv`

Secure key handling stopped being optional the moment you wired an OpenAI or Pinecone key into your code. Never hard-code secrets. Build a clean virtual environment, pin your dependencies in a requirements.txt, and let load_dotenv read your keys from a .env file at runtime. Start with isolation. A…
Thumbnail Image of Tutorial Build a Python RAG App: Load API Keys with `load_dotenv`

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

Should You Fine-Tune Your LLM? Check Your Data First

Before you spend a dollar on compute, audit your data. That is the point. Fine-tuning changes the model itself. It shapes form, not facts: style, structure, behavior. It won't reliably inject knowledge that shifts week to week. Most teams asking how to fine-tune an LLM would get further by fixing…
Thumbnail Image of Tutorial Should You Fine-Tune Your LLM? Check Your Data First
NEW

How to Fine-Tune LLMs: LoRA Cuts VRAM 90%, Fits 7B on Consumer GPUs

Fine-tuning LLMs stopped being a cloud-only problem the moment LoRA arrived. Full fine-tuning pays the memory cost of training every weight in the network. LoRA freezes the base model and trains only small adapter matrices. QLoRA keeps that same adapter idea, then compresses the frozen base with…
Thumbnail Image of Tutorial How to Fine-Tune LLMs: LoRA Cuts VRAM 90%, Fits 7B on Consumer GPUs
NEW

nn.LayerNorm Explained: Pre-Norm Transformers, LoRA, and vLLM Inference

nn.LayerNorm is cheap enough that a single call never appears on a profile. The problem is volume. Every token, every layer, every forward pass repeats the same arithmetic. When you measure energy across training or inference, that repetition turns a tiny computation into a recurring cost. Research…
Thumbnail Image of Tutorial nn.LayerNorm Explained: Pre-Norm Transformers, LoRA, and vLLM Inference