ඔයාගේම පරිගණකයේ AI run කරන්න: දැනගත යුතු open-source GitHub projects තුනක් | Run AI on Your Own Computer: Three Open-Source Projects to Know
Internet එකට data යවන්නේ නැතුව ඔයාගේ laptop එකේම AI models run කරන්න උදව් වෙන Ollama, llama.cpp සහ Open WebUI ගැන සරල හැඳින්වීමක්.
සිංහල පළමුව, English version below.
සිංහල
ChatGPT, Claude වගේ tools පාවිච්චි කරනකොට ඔයාගේ ප්රශ්න සහ files ඒ සමාගම්වල servers වලට යනවා. බොහෝ වැඩ වලට ඒක ප්රශ්නයක් නෙවෙයි. හැබැයි සමහර වෙලාවට ඔයාට ඕන වෙනවා internet නැතුව වැඩ කරන්න, හෝ පෞද්ගලික ලේඛන ඔයාගේ පරිගණකයෙන් එළියට නොයවා AI එකක් පාවිච්චි කරන්න. මෙන්න මේකට open-source ලෝකයේ ජනප්රිය projects තුනක් තියෙනවා.
"Local AI" කියන්නේ මොකක්ද
සමහර AI models වල weights (model එකේ "මොළය" කියලා හිතන්න පුළුවන් files) ප්රසිද්ධියේ download කරන්න පුළුවන් විදියට නිකුත් කරලා තියෙනවා. ඒවා open-weight models කියලා හඳුන්වනවා. මේ files ඔයාගේ පරිගණකයට download කරලා, අපි පහතින් කතා කරන tools වලින් run කරන්න පුළුවන්. එතකොට prompt එකයි උත්තරයයි ඔයාගේ machine එකේම තියෙනවා.
1. Ollama
GitHub: github.com/ollama/ollama
Ollama කියන්නේ local AI පටන් ගන්න පහසුම ක්රමවලින් එකක්. Install කරලා, terminal එකේ command එකක් ගැහුවම model එකක් download වෙලා chat කරන්න පුළුවන්. Mac, Windows, Linux තුනටම තියෙනවා. ඒකේ local API එකකුත් තියෙන නිසා developers ලට තමන්ගේ apps වලට සම්බන්ධ කරන්නත් පුළුවන්.
2. llama.cpp
GitHub: github.com/ggml-org/llama.cpp
llama.cpp කියන්නේ C/C++ වලින් ලියපු, models සාමාන්ය පරිගණක වල කාර්යක්ෂමව run කරන්න හදපු project එකක්. මේක ටිකක් technical. හැබැයි local AI ලෝකයේ ගොඩක් tools වල පදනමක් විදියට මේක පාවිච්චි වෙනවා. Settings ගොඩක් පාලනය කරන්න කැමති කෙනෙක්ට, හෝ මේ දේවල් ඇතුළතින් වැඩ කරන්නේ කොහොමද කියලා ඉගෙනගන්න කැමති කෙනෙක්ට හොඳයි.
3. Open WebUI
GitHub: github.com/open-webui/open-webui
Terminal එකට කැමති නැත්නම් Open WebUI බලන්න. මේක browser එකේ run වෙන, ChatGPT වගේ පෙනුමක් තියෙන chat interface එකක්. Ollama වගේ backend එකකට සම්බන්ධ කරලා, chat history, විවිධ models අතර මාරු වීම වගේ දේවල් පහසුවෙන් කරන්න පුළුවන්.
Local AI කියන්නේ cloud AI වෙනුවට එන දෙයක් නෙවෙයි. පෞද්ගලිකත්වය සහ offline වැඩ වැදගත් තැන් වලට තියෙන තවත් විකල්පයක්.
දැනගත යුතු සීමා
- Hardware: විශාල models වලට RAM සහ GPU ගොඩක් ඕන. පොඩි laptop එකකින් පොඩි models වලින් පටන් ගන්න.
- ගුණාත්මකභාවය: ඔයාගේ machine එකේ run වෙන පොඩි model එකක් විශාල cloud models තරම් හොඳ නොවෙන්න පුළුවන්. සිංහල වගේ භාෂා වලදී මේ වෙනස තවත් පේන්න පුළුවන්.
- Licenses: හැම model එකකම license එක එකම නෙවෙයි. Commercial වැඩකට පාවිච්චි කරනවා නම් model එකේ license එක කියවන්න.
- Download කරන තැන: Models සහ tools download කරන්නේ නිල GitHub pages සහ විශ්වාසදායක මූලාශ්ර වලින් විතරක්.
පටන් ගන්න හැටි
Ollama install කරලා, පොඩි model එකක් එක්ක සරල ප්රශ්න කිහිපයක් අහලා බලන්න. වැඩේ හරි ගියාම, අවශ්ය නම් Open WebUI එකතු කරන්න. හැම project එකකම README එකේ අලුත්ම install උපදෙස් තියෙනවා, ඒ නිසා පරණ tutorials වලට වඩා ඒක මුලින් කියවන්න.
English
When you use tools like ChatGPT or Claude, your questions and files go to those companies' servers. For most tasks that is fine. Sometimes, though, you want to work without an internet connection, or use AI on private documents without them leaving your computer. Three popular open-source projects make that possible.
What "local AI" means
Some AI models have their weights (think of them as the files that hold the model's "brain") released publicly for download. These are called open-weight models. You can download those files to your own computer and run them with the tools below. Your prompt and the answer then stay on your machine.
1. Ollama
GitHub: github.com/ollama/ollama
Ollama is one of the easiest ways to get started with local AI. Install it, run a single command in the terminal, and a model downloads so you can start chatting. It is available for Mac, Windows and Linux. It also provides a local API, so developers can connect it to their own apps.
2. llama.cpp
GitHub: github.com/ggml-org/llama.cpp
llama.cpp is a project written in C/C++ that runs models efficiently on ordinary computers. It is more technical, but it sits underneath many other tools in the local AI world. It suits people who want fine control over settings, or who want to learn how this works under the hood.
3. Open WebUI
GitHub: github.com/open-webui/open-webui
If you would rather avoid the terminal, look at Open WebUI. It is a chat interface that runs in your browser and looks much like the chat apps you already know. Connect it to a backend such as Ollama and you get chat history, easy switching between models and more.
Local AI is not a replacement for cloud AI. It is another option for the times when privacy and offline work matter most.
Limits to know about
- Hardware: large models need a lot of RAM and a capable GPU. On a modest laptop, start with small models.
- Quality: a small model running on your machine may not match large cloud models. The gap can be more noticeable in languages such as Sinhala.
- Licences: not every model has the same licence. If you plan commercial use, read the model's licence.
- Where you download from: get models and tools only from official GitHub pages and trusted sources.
How to start
Install Ollama, pick a small model and ask it a few simple questions. Once that works, add Open WebUI if you want a friendlier interface. Each project's README has the latest install instructions, so read that before following older tutorials you find online, because these projects change quickly and older steps can be out of date. Take it slowly, and you will soon have a private AI assistant running entirely on your own desk.
Enjoyed this piece?
Get the next one in your inbox, every other Friday.