# Run local LLMs using SmallBASIC

**URL:** <https://smallbasic.discourse.group/t/run-local-llms-using-smallbasic/54>\
**Category:** General\
**Created:** [December 31, 2025, 6:17am UTC](https://smallbasic.discourse.group/t/run-local-llms-using-smallbasic/54 "2025-12-31T06:17:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisws](https://avatars.discourse-cdn.com/v4/letter/c/e9a140/32.png) [@chrisws](https://smallbasic.discourse.group/u/chrisws)\
**Post date:** [December 31, 2025, 6:17am UTC](https://smallbasic.discourse.group/t/run-local-llms-using-smallbasic/54/1 "2025-12-31T06:17:41Z")

</div>

I’ve created a new module that uses llama.cpp to run LLM models locally.

Here’s an example:

> <https://github.com/smallbasic/smallbasic.plugins/blob/llama.cpp/llama/samples/adventure.bas>

The module has build options for CPU or GPU. CPU almost kind of works with the smallest models. I bought a new graphics card and this gave a huge improvement.
