Podman AI Lab
Notes// archive From the original Code Walker docs. Kept for reference, so some versions and commands may be out of date.
Running Models Locally with Podman Desktop AI Lab#
- large language models (LLMs)
- GPT-Generated Unified Format (GGUF).
- prompt engineering Using writing techniques, and text patterns, to specialize an LLM in performing a task
- Retrieval-Augmented Generation (RAG)
- Chain of Thought (CoT)
llama.cpp is an inference runtime for LLMs, optimized to run quantized models in various hardware. The main goal of llama.cpp is to make LLMs more accessible to users that do not have access to expensive compute accelerators. With this runtime library, you can use LLMs in a wide range of devices, including developer workstations or edge devices.
In the context of configuring LLMs for inference, the hyperparameters term refers to parameters different from the ones used in machine learning to train models.
Temperature
Top-p
Maximum tokens
LangChain is one of the main frameworks that you can use to create applications that use LLMs. The framework officially supports Python and JavaScript
Red Hat AI Inference Server
vLLM (OOS)
LLM Compression tools (quantization)
RHEL AI Product Overview#
Customer Concerns:
Model cost
Alignment complexity
Deployment constraints
Predictive AI (text autocomplete & shopping suggestions)
LLMs are trined on massive datasets.
Open-source, Smaller models, focused
Issues:
Outdated knowledge (cutoff date)
Lack of domain expertise
Lack of transparency
Ethical & bias concerns
False information
AI won’t tell you it doesn’t know but best guess and dis-inform AKA - “hallucinations”
RHEL AI includes
- a sub set of granite large language models
- InstructLab
- indemnified models
In a legal or professional context, to be indemnified means to be protected against loss, damage, or legal liability.
Think of it as a “legal shield.” If you are indemnified, another party (the indemnifier) agrees to pay for any costs, damages, or legal fees you might incur so that you don’t suffer a financial loss.
In other words Red Hat provide guarantees that the Open Source models don’t contain content which could infringe on copyright laws.
- Image Mode for RHEL
- Images are Immutable (Excep for
/var,/etc,/home)
InstructLab:
- Fine-tuning
Augment with:
- RAG
- Prompt-engineering