Natural Language Processing · Advanced level

Advanced level · Module 10 of 10 · 22 guided hours

NLP Model Evaluation and Deployment

Taking an NLP model to real use: rigorous evaluation design, robustness and bias testing, model cards, packaging, a FastAPI service, CPU optimisation and offline deployment, and monitoring. It includes the level project.

Learning objectives

  • Design rigorous, language-aware evaluations and robustness tests
  • Package and deploy an NLP model as a local service that runs on modest hardware
  • Document, monitor and present an NLP application

Topics

  • evaluation design and test sets
  • robustness, slice and bias testing
  • model cards
  • saving models and a FastAPI service
  • CPU optimisation and offline deployment
  • monitoring and feedback

Lessons

  1. Lesson 1 Designing Rigorous NLP Evaluation

    Learners design an evaluation plan for their level project: test sets by language and document type, robustness tests for spelling and noise, bias checks and human evaluation.

    held-out test setslices (language, length, source)perturbation testsbias checkshuman evaluation

  2. Lesson 2 Packaging and Serving an NLP Model

    Learners save their model, wrap it in a FastAPI service with input validation and confidence scores, and make it run offline on a CPU laptop.

    joblib / save_pretrainedFastAPI endpointinput validationconfidence and 'unsure' responsesoffline installation

  3. Lesson 3 Optimising, Documenting and Monitoring

    Learners speed up CPU inference, write a model card and set up simple monitoring and feedback so that the system's quality is tracked after deployment.

    smaller modelsdynamic quantisationbatchingmodel cardmonitoring and feedback loop

  4. Lesson 4 Level Project: Build, Defend and Hand Over

    Learners complete, demonstrate and defend the level project, and hand over a system that another person can install and use.

    project scopedemonstrationtechnical defencehandover documentationnext steps for local-language support

Practical activity

Complete the level project: an evaluated, documented and deployed NLP application (document QA, summariser or language-ID and routing service) with a demonstration and handover package.

Expected outcomes

  • A deployable NLP application
  • Professional evaluation and documentation practice

Assessment

The level project, assessed against the level criteria (technical work 35%, evaluation 25%, deployment and documentation 25%, demonstration and defence 15%).

Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.