Tame your Llama, run AI in Java
summary
Shows running Llama-family models locally from Java using Olama/Olama4J and LangChain4j, loading Mistral, Gwen 2.5, Llama 2 (7B and 13B) and tiny‑llama (1.1B). Demonstrations create ephemeral experts (a “llama animal expert” and a Portuguese food expert) via a local Olama server in Docker, no internet required, and return accurate answers; occasional demo UI glitches occur. Notes hardware: demo laptop has 46 GB RAM/16 cores (recommended minimum ~16 GB, 8 cores, 500 GB), and benefits listed are privacy, latency, and cost control.
AI-written summary · about
chapters (18)
- 0:00Introduction and welcome
- 1:05Why llamas and LLMs
- 3:15What are large language models
- 8:58How LLMs work basics
- 12:09Local vs hosted LLMs
- 15:18Baby llamas and Ollama
- 18:50Demo setup and prerequisites
- 20:19Creating a llama expert model
- 23:36Building a Portuguese food expert
- 28:00Key takeaways from the demo
- 29:03LangChain4j library overview
- 31:20Customizing model behavior
- 33:15Choosing between libraries
- 34:40Hardware requirements
- 35:42Model sizes and options
- 37:51When to go local with LLMs
- 38:53Wrap-up and future of Java AI
- 41:24Q&A session begins
