Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

DelphiDemoFiremonkeyLibraryShowcaseWindows

Run Large Language Models Natively In Object Pascal

Developer BeRo1985 has made available PasLLM, a high-performance LLM inference engine written entirely in Object Pascal. Unlike wrappers around llama.cpp or external runtimes, PasLLM implements model loading, quantization, and inference natively, allowing large language models to run directly from Delphi and FreePascal applications.

The framework includes support for:

  • Native LLM inference in Object Pascal
  • Local and offline AI execution
  • Llama, Qwen, Phi, Gemma, Mixtral, DeepSeek, and other model families
  • Custom high-efficiency quantization formats
  • Delphi and FreePascal support
  • CLI and GUI applications
  • VCL, FMX, and LCL examples
  • Cross-platform deployment

PasLLM introduces its own optimized quantization formats, designed to reduce model size while preserving inference quality. The project supports a wide range of modern open-weight models and can be integrated directly into Object Pascal projects without requiring Python or external inference frameworks.

Currently focused on CPU inference, PasLLM is aimed at developers who want complete control over local AI execution while staying entirely within the Delphi and FreePascal ecosystem. Future GPU acceleration is planned through the author’s PasVulkan framework.

Explore a pure Object Pascal approach to running modern LLMs locally.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts
Code SnippetDelphiDemoLibraryShowcaseWindows

Windows CLI To Download, Manage, And Chat With Local AI Models

DelphiDemoOSXWindows

Download, Run, And Chat With Local LLMs On Windows And macOS

Code SnippetDelphiDemoWindows

Build Local Vector Search And RAG Applications In Delphi

ComponentDelphiDemoLibraryPythonWindows

Add Real-Time Object Detection With YOLO And ONNX To Delphi Applications

Sign up for our Newsletter and
stay informed
[mailpoet_form id="1"]

Leave a Reply