Replies: 21 comments 8 replies
|
You can download PasLLM models from:
Place downloaded PasLLM models in: Example: ./bin/pasllmcli \
-model=bin/models/qwen2.5_0.5b_instruct_q40nl.safetensorsPasLLM does not directly load arbitrary GGUF files. It uses its own Safetensors-based format with quantization types such as Good models for initial testing include:
Remember to check the license of each original Hugging Face model. |
|
For Lazarus/Free Pascal development, _the best practical model is Qwen3-Coder 30B—especially if you want a capable local assistant through Ollama. It is code-specialized, supports a 256K context window, and its MoE design activates only 3.3B parameters per request, making it unusually efficient for its class. ollama - qwen3-coder Recommended setup
Why this fits PascalNo leading model is specifically trained or benchmarked primarily on Free Pascal/Lazarus, Start locallyThe official Ollama catalogue lists this 30B model at approximately 19 GB and with a 256K context window. ollama - qwen3-coder It will be less reliable on multi-file refactoring, but is a sensible interactive fallback. ollama - qwen3:14b Prompt templateUse a stable project instruction such as:
For best results, give it a small, coherent slice of the codebase: the failing unit, related interfaces, exact compiler output, and expected behavior. Ask it first to analyse and propose a patch, then ask it to emit a complete revised unit; this reduces accidental API changes. For Lazarus/Free Pascal development, the best practical model is Qwen3-Coder 30B—especially if you want a capable local assistant through Ollama. It is code-specialized, supports a 256K context window, and its MoE design activates only 3.3B parameters per request, making it unusually efficient for its class. [ollama](https://ollama.com/library/qwen3-coder) For the highest code quality on difficult multi-unit refactors, debugging, and architecture, use a frontier cloud coding model alongside it; but for your 32 GB RAM / 12 GB VRAM local workflow, Qwen3-Coder 30B is the best starting point. Recommended setup
Why this fits PascalNo leading model is specifically trained or benchmarked primarily on Free Pascal/Lazarus, so expect occasional Delphi-centric code, incompatible syntax, or assumptions about VCL rather than LCL. The decisive advantage comes from supplying the model with your target details: FPC version, Lazarus/LCL widgetset, operating system, compiler switches, and the involved unit interfaces. Qwen3-Coder is explicitly positioned for long-context, agentic coding workflows and can be launched through Ollama with coding-agent tooling. That is particularly useful for your likely tasks: tracing dependencies across units, improving PostgreSQL access code, generating tests, and diagnosing compiler messages. [ollama](https://ollama.com/library/qwen3-coder) Start locallyollama pull qwen3-coder:30b
ollama run qwen3-coder:30bThe official Ollama catalogue lists this 30B model at approximately 19 GB and with a 256K context window. [ollama](https://ollama.com/library/qwen3-coder) If responsiveness or Intel Arc support becomes a limiting factor, use: ollama pull qwen3:14b
ollama run qwen3:14bIt will be less reliable on multi-file refactoring, but is a sensible interactive fallback. [ollama](https://ollama.com/library/qwen3:14b) Prompt templateUse a stable project instruction such as: For best results, give it a small, coherent slice of the codebase: the failing unit, related interfaces, exact compiler output, and expected behavior. Ask it first to analyse and propose a patch, then ask it to emit a complete revised unit; this reduces accidental API changes. |
|
Sorry, there is a error in the text, Install Qwen with: ollama run qwen3-coder ! |
|
If you want play with PasLLM-Models you can download a Windows-App . |
|
By the way, the preferred language for prompts is English. Apparently, this gives the best results. Have fun! |
|
There’s a lovely video on the subject of ‘models’: |
|
...that is crazy: Build the Gemma Translator: No Internet Required |
|
Let’s turn Pascal’s source code into an audiobook in a IDE - Addon!? |
|
How-To Create Free Local Voice AI with Pipecat + Ollama + Kokoro |
|
If you're looking for people interested in Free Pascal, the official forum is the place to post: https://forum.lazarus.freepascal.org/ That's where the FPC/Lazarus crowd actually is, so you'd get a much bigger response there. It even has a board dedicated to AI in Pascal, which is exactly where PasLLM, local models and tooling recommendations belong. Far more readers and far more replies than anywhere else. |
|
The Truth About AGI: Are We Already Past the Point of No Return? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
PasLLM is a LLM inference engine in Object Pascal.
This makes it possible to create Unleashed Pascal programmes with AI capabilities without the usual need to install endless dependencies.
I therefore propose that PasLLM be pre-installed in the IDE.
Hey everyone, please give this project as many stars as possible to encourage the developer to keep working on it.
Unfortunately, it’s only a half-finished project.
@see also:
The PasLLM project appears to have been put on hold and is not yet ready for production.
It seems one can only make use of what is already available.
All reactions