Thank you for sending your enquiry! One of our team members will contact you shortly.
Thank you for sending your booking! One of our team members will contact you shortly.
Course Outline
AI Sovereignty and Local LLM Deployment
- Risks associated with cloud LLMs: data retention, training on input data, and foreign jurisdiction issues.
- Ollama architecture: model server, registry, and OpenAI-compatible API integration.
- Comparisons with vLLM, llama.cpp, and Text Generation Inference.
- Model licensing terms for Llama, Mistral, Qwen, and Gemma.
Installation and Hardware Configuration
- Installing Ollama on Linux with CUDA and ROCm support.
- CPU-only fallback options and AVX/AVX2 optimization techniques.
- Docker deployment strategies and persistent volume mapping.
- Mult-GPU setup and VRAM allocation strategies.
Model Management
- Pulling models from the Ollama registry: ollama pull llama3.
- Importing GGUF models from HuggingFace and TheBloke.
- Analyzing quantization levels (Q4_K_M, Q5_K_M, Q8_0) and their tradeoffs.
- Managing model switching and limits for concurrent model loading.
Custom Modelfiles
- Writing Modelfile syntax: FROM, PARAMETER, SYSTEM, TEMPLATE directives.
- Tuning parameters such as temperature, top_p, and repeat_penalty.
- Engineering system prompts for role-specific model behavior.
- Creating and publishing custom models to the local registry.
API Integration
- Utilizing the OpenAI-compatible /v1/chat/completions endpoint.
- Handling streaming responses and JSON mode output.
- Integrating with LangChain, LlamaIndex, and custom applications.
- Implementing authentication and rate limiting via reverse proxy.
Performance Optimization
- Sizing context windows and managing KV cache efficiency.
- Conducting batch inference and handling parallel requests.
- Allocating CPU threads and ensuring NUMA awareness.
- Monitoring GPU utilization and memory pressure.
Security and Compliance
- Network isolation for model serving endpoints.
- Implementing input filtering and output moderation pipelines.
- Audit logging of prompts and generated completions.
- Verifying model provenance and hash integrity.
Requirements
- Intermediate proficiency in Linux and container administration.
- High-level understanding of machine learning concepts and transformer models.
- Familiarity with REST APIs and JSON structures.
Audience
- AI engineers and developers seeking to replace cloud LLM APIs.
- Organizations handling sensitive data that prohibits the use of cloud models.
- Government and defense teams requiring air-gapped language model solutions.
14 Hours