Generative AI and Large Language Model Fundamentals

Study Generative AI and Large Language Model Fundamentals with full lessons, revision notes and quick reference, across 33 lessons.

11 modules. 33 lessons. Self-paced.

Roles this course prepares you for

Checkout testing: this course currently uses Razorpay test mode. No real payment is collected. The displayed INR 999 and 365-day access terms are the test offer.

Course curriculum

No exam weights apply. This Vectametric-authored skills course follows prerequisites: local text-model use, representations and learning, chat and budgets, data/contracts, retrieval, prompting and grounding, evaluation, responsible use, bounded decisions and a final challenge.

Free to read: 5 lessons, no account needed

Start Here (3 lessons)
  1. How to use the course and check readiness (read now)

    • Predict a short Python function using message dictionaries and identify a traceback line.
    • Distinguish reading, local practice, explicit completion and demonstrated ability.
  2. Choose generation, retrieval or a fixed rule (read now)

    • Identify a task's inputs, outputs and required evidence.
    • Justify when a lookup, rule or classifier is preferable to generated text.
  3. Set up an owned CPU practice environment (read now)

    • Create and inspect the pinned CPython 3.13 environment with CPU PyTorch.
    • Identify the interpreter, owned folders and dependency failures before downloading a model.
Model Files and Text (4 lessons)
  1. Verify the model revision and local files (read now)

    • Obtain the six named public files at the fixed revision and verify their identity.
    • Distinguish revision, package version, notices, observed checksums and output trust.
  2. Inspect tokens, text and special markers (read now)

    • Encode/decode supplied UTF-8 strings and inspect real token IDs/counts.
    • Diagnose a deliberately repeated token sequence without claiming a natural duplication bug in this tokenizer.
  3. From scores to next-token probabilities

    • Normalise a three-score example with softmax and interpret a probability distribution.
    • Explain why choosing a likely next token does not verify a fact.
  4. Run CPU inference and inspect the generated tokens

    • Trace batch/sequence dimensions and distinguish lookup embeddings from output logits.
    • Run local completion and decode only the generated suffix with explicit evaluation/inference mode and bounded output.

With course access: 28 lessons

Representations and Learning (5 lessons)
  1. Vectors, dot products and cosine similarity

    • Compute norms, dot products and cosine for small supplied vectors.
    • Explain zero-vector handling and the distinction between numerical similarity and semantic quality.
  2. Compare encoder, decoder and encoder-decoder roles

    • Distinguish a lookup vector from a representation that depends on surrounding context.
    • Compare encoder, causal-decoder and encoder-decoder input visibility and output roles.
  3. Contextual representations and causal attention

    • Distinguish token lookup vectors from contextual representations.
    • Trace a causal attention example and explain positional information for the selected decoder.
  4. Pretraining, instruction tuning and inference context

    • Distinguish next-token training, supervised instruction tuning and preference optimisation.
    • Identify whether weights, prompts or retrieved inputs change in a supplied scenario.
  5. Compare generative model families and modalities

    • Recognise autoregressive, diffusion, adversarial and variational generation at the declared depth.
    • Match a text/image/audio/video or multimodal task to suitable inputs, outputs and limitations without promising implementation.
Chat and Generation Controls (3 lessons)
  1. Apply and inspect the actual chat template

    • Construct role/content messages and inspect serialized markers and default system overhead.
    • Use explicit return types and an assistant generation prefix without double-adding special tokens.
  2. Compare greedy and sampled generation

    • Compare greedy decoding with temperature/top-k/top-p sampling under stated conditions.
    • Interpret EOS, token caps, repetition and seed limits without exact-text acceptance tests.
  3. Budget context and manage conversation history

    • Budget the fully templated input plus reserved new tokens.
    • Prune complete oldest history pairs while preserving essential instructions/current question, or reject the request.
Supplied Data and Output Contracts (3 lessons)
  1. Inspect the library corpus and question sets

    • Validate supplied document/question IDs and distinguish current, superseded and quarantined records.
    • Separate expected evaluator facts from model inputs and distinguish development from later evaluation questions.
  2. Parse and validate structured responses

    • Separate JSON parsing from exact field/type and response-size checks.
    • Reject malformed output, duplicate keys and non-finite constants without executing or silently repairing generated text.
  3. Check citations and answer support separately

    • Reject unknown, stale, duplicate and current-but-unretrieved citation IDs.
    • Assess all answer claims and requested-fact completeness against supplied evidence while accepting valid paraphrases.
Retrieve Relevant Evidence (3 lessons)
  1. Build transparent TF-IDF features

    • Build corpus vocabulary, term counts and smoothed IDF from eligible passages.
    • Explain query vocabulary limits and L2 normalisation before ranking.
  2. Rank passages and diagnose lexical retrieval

    • Rank by cosine with positive-score filtering, stable ties and explicit top-k.
    • Distinguish a one-source hit, complete multi-source retrieval and an irrelevant positive match.
  3. Compare lexical and dense retrieval representations

    • Compare word overlap with cosine on explicitly supplied dense vectors.
    • Distinguish token lookups, contextual token representations and purpose-trained retrieval embeddings.
Prompts and Grounded Answers (4 lessons)
  1. Write clear task prompts and examples

    • Specify a task, supplied evidence and checkable output requirements.
    • Compare zero-shot and few-shot prompt construction without assuming more instructions improve a small model.
  2. Compare prompts on development cases

    • Compare fixed prompt variants on the same development cases and evidence.
    • Record prompt/settings/raw failures and justify a choice before held-out use.
  3. Assemble a bounded grounded prompt

    • Compose retrieval, source IDs, chat formatting and complete token-budget checks.
    • Generate from the actual retrieved passages with unchanged model weights and preserve the raw result.
  4. Diagnose retrieval and generation failures

    • Locate missing evidence, unsupported generation, malformed output and inappropriate abstention separately.
    • Explain incomplete conditions, contradictions, repetition and truncation without collapsing them into a single success flag.
Evaluate the Whole Workflow (2 lessons)
  1. Freeze development choices and evaluation inputs

    • Separate development selection from final held-out execution.
    • Seal actual code, data, model/runtime identity and settings and label any later tuning exploratory.
  2. Score evidence, answers and the retrieval-only baseline

    • Calculate retrieval recall/all-sources coverage, supported-complete answers and abstention with explicit denominators.
    • Compare task utility with identical retrieval-only passages and report form/resources separately.
Trust Boundaries and Responsible Use (2 lessons)
  1. Treat retrieved instructions and outputs as untrusted

    • Distinguish application-enforced data/output boundaries from instructions requested of a model.
    • Trace indirect instructions in an eligible passage without executing output or claiming attack resistance.
  2. Recognise coverage, bias and privacy limits

    • Identify unsupported generalisation from a tiny English-focused synthetic set.
    • Choose data-minimising inputs and appropriate human review for original risk scenarios.
Choose a Bounded Next Step (2 lessons)
  1. Choose prompting, retrieval or weight adaptation

    • Match a diagnosed failure to prompting/data, retrieval or weight adaptation.
    • Explain fine-tuning/LoRA and preference methods at comparison depth without running training.
  2. Compare local, hosted and lower-precision options

    • Separate model quality, memory, latency, data handling, terms and operational requirements.
    • Explain lower-precision storage as a method/hardware-dependent tradeoff.
A Bounded Library Assistant Challenge (2 lessons)
  1. Build the bounded library assistant

    • Assemble the supplied inputs and previously taught functions into a bounded local workflow.
    • Preserve raw results and enforce deterministic data, retrieval, token-budget and output-contract checks.
  2. Report results, reset safely and clean up

    • Produce an honest report with separate evidence, support, form, abstention and resource observations.
    • Resume or reset only owned outputs, then inspect ownership before optional final cleanup.

Study views

  • Full Course
  • Revision
  • Quick Reference

Who this is for

For developers, analysts and students who can write a short Python program and want to understand generative AI and use pretrained text models. The practical thread is a fictional community-library assistant, with supplied documents and evaluation questions.

Before you begin

  • Use a terminal, edit and run a short Python script, work with functions, lists and dictionaries, and read a traceback. Prior machine learning, calculus and cloud experience are not required.
  • Online reading needs a browser and internet access. The verified practice target is Linux x86_64 with Bash and CPython 3.13.15, using the documented CPU PyTorch 2.14.1+cpu and Transformers 5.19.0 pins. Other operating systems and Python versions are not verified by this course.
  • Install packages and download the fixed small model once, then run from local files. Provide writable local space; the planning budget is 8 GB RAM and 3 GB free disk, not a guaranteed minimum. No GPU, cloud account, paid model API or external API key is required.

What you will learn

  • Explain tokens, contextual representations, next-token generation and the difference between model training and answering a prompt.
  • Run a pinned small text model locally, inspect its inputs and outputs, and compare prompts and decoding settings within an explicit token budget.
  • Retrieve supplied evidence, assemble a bounded prompt and compare answer support, format and abstention with a retrieval-only baseline.
  • Diagnose unsupported answers, untrusted retrieved instructions, privacy exposure and evaluation limits. Runnable practice focuses on text; other modalities and weight adaptation are introductory concepts.

Unlock all 33 lessons

Course access opens every lesson and adds revision notes, the Quick Reference, saved progress, bookmarks and your own notes.

INR 999 plus 18% GST. 365 days of online access. No auto-renewal.

Know what is included

Independent learning material from Vectametric. Not affiliated with or endorsed by the organisations behind the tools it teaches. Practice exams and projects are separate. Completing a course is not a professional certification.

Questions about courses

Are these video courses or reading courses?

The current courses use written lessons, examples and diagrams. Full Course, Revision and Cheat Sheet or Quick Reference views cover the same learning sequence at different levels of detail.

Which course should I start with?

Choose a Certification Course for a named exam, a Career Path Course for a role-led sequence, or a Skill Course for a focused subject. Read its level, prerequisites and curriculum before enrolling.

Do revision notes replace the full lessons?

No. Start with the full explanations, then use revision notes to refresh your understanding. Cheat sheets are concise study references, not a substitute for learning or permission to use notes during an official exam.

Are practice exams and projects included?

No. Course access, practice-exam bundles and project access are separate. An official certification, exam booking or voucher is not included.

How long do I have access?

The course page and checkout show the current online access period and price, including free enrollment where offered. Access starts when enrollment is confirmed and does not auto-renew.

Can I read lessons before enrolling?

Yes. Each course opens its first lessons to read without an account, and some courses are open in full. The course curriculum marks the lessons you can read now. Course access adds the remaining lessons, the Revision and Cheat Sheet or Quick Reference views, saved progress, bookmarks and personal notes.

Review the Terms and No-Refund Policy before confirming access. All sales are final; Vectametric does not offer refunds.

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy