Get in Touch
 Duration 14 hours

Course Outline

Deployment Strategies

  • Comparing the trade-offs between Hosted APIs and self-hosted solutions.
  • Exploring on-premises, edge, and air-gapped deployment patterns.
  • Evaluating single model versus multi-model portfolio approaches.
  • Analyzing cost efficiency per decision.

Hardware Sizing and Capacity Planning

  • Assessing memory footprint relative to parameter count.
  • Deciding between CPU-only performance and GPU acceleration.
  • Planning for concurrency levels and throughput requirements.
  • Allowing headroom for potential increases in task complexity or length.

Serving Stack Selection

  • Reviewing options like vLLM and SGLang.
  • Utilizing llama.cpp and GGUF for execution.
  • Leveraging Ollama for local development scenarios.
  • Selecting the optimal stack based on the specific shape of the decision workload.

Quantization While Preserving Calibration

  • Understanding precision formats and their impact on memory usage.
  • Measuring quality retention and potential calibration loss.
  • Applying per-tensor and importance-aware quantization variants.
  • Conducting acceptance tests post-quantization.

Latency Optimization

  • Distinguishing between median and tail latency metrics.
  • Analyzing how latency scales with context length.
  • Implementing warm starts and model caching strategies.
  • Batching multiple decision queries for efficiency.

Edge and Constrained Environments

  • Running small decision models on CPU resources.
  • Deploying on Apple Silicon and embedded systems.
  • Managing offline operations and software update strategies.
  • Distributing model weights in air-gapped settings.

Containerization and Scalability

  • Designing Docker images optimized for model serving.
  • Managing volumes and cache effectively.
  • Implementing horizontal scaling and routing logic.
  • Configuring resource limits and GPU sharing mechanisms.

Observability and Monitoring

  • Tracking request, latency, and error metrics.
  • Monitoring confidence distributions.
  • Tracking decision outcomes and escalation paths.
  • Setting alerts for calibration drift.

Version Control and Rollout Management

  • Implementing versioning for models and adapters.
  • Using shadow and canary deployment techniques.
  • Maintaining pinned model files for audit trails.
  • Defining clear rollback procedures.

Security and Multi-Tenancy

  • Implementing authentication and rate limiting.
  • Ensuring tenant isolation for prompts and logs.
  • Managing network isolation and egress controls.
  • Maintaining comprehensive audit logs of decisions.

Requirements

  • Experience with Linux administration and containerization.
  • Familiarity with model inference servers and GPU management practices.
  • Foundational knowledge of REST APIs, load balancing, and monitoring systems.

Intended Audience

  • MLOps and platform engineers managing inference infrastructure.
  • SRE teams providing support for AI services.
  • AI engineers responsible for on-premises decision model deployment.
  • Architects designing for air-gapped or highly regulated AI environments.

Upcoming Courses

Related Categories