බ්ලූ ටික් අයියාලගේ ඒඅයි වික්‍රම. RUN LLAMA Model Locally

olu bakka

Well-known member
  • Aug 18, 2011
    22,794
    23,479
    113
    ඔවු yt ඒකටම තමා දැගලුවෙ. කොහොමහරි ඉන්ස්ටන්ස් පැය ගනන් රන් කරලම 20ක් විතර ඉවර කරගත්ත. හරි ගියේ නෑ. fine tune කරන්නෙ නැතුව මුකුත් කරගන්න බෑ. robotic feeling එක එනව. ඒක නැති කරගන්න නම් top model එකක sinhala එක voice එකක් තිබ්බ නම් හොදටම ඇති.

    අලුතෙන්ම ආපු https://www.boson.ai/ try කරන්න. benchmarks වලින් elevenlabs ට වඩා perform කරල තියෙනව.
    ✅ Rich emotional voice synthesis
    ✅ Multi-speaker dialog generation
    ✅ Capture emotions and understand speaker intent
    අඩෝ මේකට උන් demo දාලා තියෙන text එකවත් හරියට generate කරගන්න බෑනෙ.
     

    jikwitintant

    Well-known member
  • Jul 1, 2016
    1,567
    1,624
    113
    FB එකේ බ්ලූ ටික් අයියාලා මේ ටිකේ සෑහෙන්න ටෝක් කරනව උන් AI හැදුවා අරකයි මේකයි ගගා. අපේ සින්හලුත් වැලලෙනව "නියමයි අයියාහ්" කියල. උන් ඉතින් එතන ඉදන් උපරිම ආස්වාදෙන් පට්ට කෙබර ලෝකයක් කෙලිනව තව තව ලොකු කතාත් එමට කියනව. සමහරු නම් උන් කියන ඒව උන් දන්නෙත් නෑ. සමහරු නම් chatgpt එකටත් ඌ හදපු එකෙන් කෙලවලා දාන්න ටෝක් ඉශූ කරන්නෙ. උන්ටම වන්දනාමාන කරන ගෝත්‍රිකයො එක්ක කතා කරල වැඩකුත් නෑ. අපි හෙන ලොකු සුපිරි AI එකක් හැදුවා කියන ගන්කබරයො ඔක්කොම කරන්නෙ chatgpt, claude, gemini වගේ මොඩල් එකක API keys අරන් integrate කරන එක. ඊට පස්සෙ උගේ platform එකක back end එකෙන් api access කරන එක. රෑ එලිවෙනකම් දිවා රෑ නොබලා මාස ගානක ප්‍රතිපල කියල හෑල්ලක් එක්ක තමා ඕක දාන්නෙ. ඕකත් AI එකටම කියල හදාගත්ත නම් ඉවරයි.

    ඔතනින් සුලු පිරිසක් ඉන්නව agents build කරගෙන තව ටිකක් fine tune කරපු output එකක් දෙන. හැබැයි මම නම් මේ වෙනකම් හරියට perform කරන finetune කරපු model එකක් දැකල නෑ. තියෙනව නම් model card එකක් දාන්න බලන්න. ඒ වගේම බ්ලූ ටික් හෑලි අයියලා කිසිම එකෙක් අඩුම ගාන instance එකක් rent කරල මොඩල් එකක් රන් කරලවත් උන්ගෙ platform එකක් හදන් නෑ ටෝක් ඉශූ කරාට.

    මේකෙ තියෙන ලොකුම ප්‍රශ්නෙ මෙහෙම බොරුමවාපෑම් කරල කෝස් කරන්න මිනිස්සු රවට්ටන එක. prompt engineering කියලත් කෝස් කරනව. මාත් free session එකකට join වෙලා බැලුව. හාල්පාරුව නිකන් මේ වචන ගගහ output ගන්න කියනව මිසක් ඌ මොඩල් කාඩ් එකේ technical paper එකවත් කියවල නෑ. ඉතින් මේ AI මැජික් කරන් සින්හලු අනාත කරන නිසා මේක ලිව්වෙ.

    RUN LLAMA Model Locally

    ඔන්න කැමති ඕනෙ එකෙක් ඉන්නව තමන්ගෙම PC එකක locally run කරගනිල්ල.
    දැනට released වෙලා තියෙන models වලින් censored / uncensored කියල කොටස් දෙකක් තියෙනව. censored කියන්නෙ chatgpt, gemini, claude, sonnet වගේ අපිට ඕනෙ හැමදෙයක්ම කරගන්න බෑ limitation තියෙනව. uncensored model වල එහෙම දෙයක් නෑ. explicit content වල ඉදන් ඕනෙම දෙයක් අහන්න පුලුවන් කිසිම limitation එකක් නෑ. safety guardrails, content filters, or refusal mechanisms මුකූත් නෑ.

    1.1 මුලින්ම python install කරගන්න.
    https://www.python.org/downloads/release/python-31011/
    https://www.python.org/ftp/python/3.10.11/python-3.10.11-amd64.exe

    1.2 Install git
    https://git-scm.com/downloads
    https://github.com/git-for-windows/git/releases/download/v2.50.1.windows.1/Git-2.50.1-64-bit.exe

    1.3 CMD open කරගන්න

    2. Update Your System:
    sudo gives you administrative privileges, and -y automatically confirms prompts.

    Bash:
    sudo apt update
    sudo apt upgrade -y

    3. Verify NVIDIA Driver Installation:
    table එකක් එන්න ඕනෙ එකේ gpu nvidia version එකයි cuda වර්ශන් එකයි. drivers නැත්නම් drivers ටික install කරගන්න
    Bash:
    nvidia-smi

    Windows​

    4.1 Download & Install Ollama
    මේකෙන් තමයි models run කරගන්නෙ.
    https://ollama.com/download/windows

    4.2 Check Ollama version. ex ollama version is 0.9.6
    Bash:
    ollama --version

    Linux​

    4.1 Download & Install Ollama
    Bash:
    curl -fsSL https://ollama.com/install.sh | sh

    4.2 Check Ollama version. ex ollama version is 0.9.6
    Bash:
    ollama --version

    5. Download model
    ඕන model එකක් මෙතනින් search කරගන්න.
    https://ollama.com/search

    small model එකකින් පටන් ගමු.

    5.1 gemma3:1b
    https://ollama.com/library/gemma3:1b
    මේක lightweight censored model එකක්. single gpu එකක run කරගන්න පුලුවන්. 1B parameters තියෙනව. text input කරන්න පුලුවන්. 32k context window. 140 languages

    Bash:
    ollama pull gemma3:1b

    5.2 gemma3:4b (recommended model)
    https://ollama.com/library/gemma3:4b
    මේක lightweight censored multimodal එකක්. single gpu එකක run කරගන්න පුලුවන්. 4B parameters තියෙනව. image/text දෙකම input කරන්න පුලුවන්. 128k context window. 140 languages

    Bash:
    ollama pull gemma3:4b

    6. List Downloaded Models
    Bash:
    ollama list

    7. Run Your First Model
    Bash:
    ollama run gemma3:1b

    8. To exit the interactive session, type /bye or press Ctrl + D

    9. Install openweb ui
    9.1 Create directory and navigate
    Bash:
    mkdir ~/open-webui-venv
    cd ~/open-webui-venv

    9.2 Create a Python Virtual Environment
    Bash:
    python3 -m venv venv

    9.3 Activate the Virtual Environment
    Bash:
    source venv/bin/activate
    You'll notice your terminal prompt changes (e.g., (venv) username@hostname:~/open-webui-venv$) to indicate that the virtual environment is active.

    9.4 Install Open WebUI
    Bash:
    pip install open-webui

    10.1 Start the Open WebUI Server
    Bash:
    open-webui serve
    This will usually start the server on http://localhost:8080. You can then access it from your Windows browser

    http://localhost:8080

    10.2 Deactivate the Virtual Environment (when you're done)
    Code:
    deactivate

    Uncensored Qwen3 - JOSIEFIED 8B​

    https://ollama.com/goekdenizguelmez/JOSIEFIED-Qwen3
    Bash:
    ollama run goekdenizguelmez/JOSIEFIED-Qwen3:8b
    This model has reduced safety filtering and may generate sensitive or controversial outputs. Use responsibly and at your own risk.

    Using Multimodal Models (LLaVA with Images)​

    Bash:
    ollama run llava "What do you see in this image? /home/yourusername/Pictures/my_image.jpg"
    (Replace /home/yourusername/Pictures/my_image.jpg with the actual path to your image.)

    මේ විදියට රන් කරගන්න පුලුවන් gpt, gemini වගේම models තියෙනව
    qwen3 කියන්නෙ එහෙම හොද කොලිටි මොඩල්ස්. 142GB 40K context, grok, deepseek r1, gemini 2.5, openai-o1 වලට වඩා benchmark score එක හොදයි.
    https://ollama.com/library/qwen3:235b

    code කරන්න qwen coder එහෙම සුපිරි. OpenAI’s GPT-4oට වඩා හොදයි.
    https://ollama.com/library/qwen2.5-coder

    ප්‍රශ්න මොනාහරි තියෙනව නම් දාපල්ල. gpu එකක් නැත්නම් gpu instance එකක රන් කරගන්න help එකක් ඕනෙ නම් කියපල්ල.
    mage machine eke yhiyenne AMD card ekak karanna pluwan weida
     

    JohnSnow

    Well-known member
  • Mar 17, 2017
    8,744
    13,300
    113
    I have had good results with this one. There are various free voice models you can use.
    Generated audio is quite good, only problem is playing speed is little too slow, so you have to use a audio editing tool to adjust the play speed/pitch etc.
    If you are looking for something to generate youtube scripts then you should be able to script the hell out of it using ffmpeg + piper.

    https://github.com/OHF-Voice/piper1-gpl

    සිංහල මොඩල් එකක් අටව ගත්තොතින් මාර හම්බකිරිල්ලක් කරන්න පුලුවන්
    Youtube කරන එවුන්ට ස්ක්‍රිප්ට් ජෙනරේට් කරලා දීලම

    ගොරෝසු කටහඬ හදන එක මොඩල් එකෙන් එලියට ගන්න පුලුවන්නේ
    මම කලින් කියපු විදියට ඕන නං FFMPEG එකෙන් පුලුවන් pitch එක සහ playback සපීඩ් එක ඇජස්ට් කරන්න. ගොරෝසු එක pitch එකෙන් හදන්න පුලුවන්
    ඕන නං Male -> Female or Female -> Male විදියට උනත් වෙනස් කරන්න පුලුවන් එහෙම.

    ------ Post added on Jul 29, 2025 at 11:18 PM
    මේක පොඩ්ඩක් රොබොටික් සවුන්ඩ් එකක් එන එක තමයි අවුල..
    මේක හොදයි
    https://github.com/hexgrad/kokoro
     

    nooby

    Well-known member
  • Mar 25, 2018
    4,227
    2,416
    113
    Srilanka
    තැන්ක්ස් මචං ❤️, මම මේකේ AI ගැන talk දෙන කීපදෙනෙක්ගෙන්ම මට ආපු සමහර ප්‍රශ්න ඇහුවා. උබ ඇරෙන්න වෙන එකෙක් reply එකක්වත් දැම්මේ නෑ
     
    • Love
    Reactions: MihiCherub

    MihiCherub

    Well-known member
  • Sep 14, 2009
    18,970
    1
    9,786
    113
    Gampaha
    අඩෝ මේකට උන් demo දාලා තියෙන text එකවත් හරියට generate කරගන්න බෑනෙ.
    ඔය ලස්සනට එන්නෙ බන්. මම නම් ඇත්තටම voice එකක් අරන් ලොකු projects කරල නෑ.
     

    olu bakka

    Well-known member
  • Aug 18, 2011
    22,794
    23,479
    113
    ඔය ලස්සනට එන්නෙ බන්. මම නම් ඇත්තටම voice එකක් අරන් ලොකු projects කරල නෑ.
    එන්නෑනෙ බන් බලපන්කො මැද්දෙන් බෙරිහන් දෙනව හිටපු ගමන්. සැරින් සැරේ වෙනස් වෙන හින්ද එකම එන්නෑ ඉතින්.
    වෙන ටෙක්ස්ට් එකක් දැම්ම හිටපු ගමන් කෝච්චි යන සද්ද වගේ ඇහෙනව මහ හයියෙන්.
     
    • Wow
    Reactions: MihiCherub

    MihiCherub

    Well-known member
  • Sep 14, 2009
    18,970
    1
    9,786
    113
    Gampaha
    මචන් ස්තූතියි මේකට. මේ විෂය මුල ඉදන් හරියට ඉගෙන ගන්න පුළුවන් සෝර්සස් මොනවා හරි දන්නව ද? Ai හරියට පාවිච්චි කරන්න දැනුම තිබ්බට මෙහෙම in depth වැඩ කරන්නේ කොහොමද කියලා දැනුමක් නැහැ.
    මුලක් ඉදන් කියල නෑ බන්. මේ ත්‍රෙඩ් එකෙන් පටන් අරගන්න. එතකොට මේ වගේ ඕනෑම open source model එකක් රන් කරගන්න පුලුවන්.

    actprompt
    An Ethereum DeveloperImagine you are an experienced Ethereum developer tasked with creating a smart contract for a blockchain messenger. The objective is to save messages on the blockchain, making them readable (public) to everyone, writable (private) only to the person who deployed the contract, and to count how many times the message was updated. Develop a Solidity smart contract for this purpose, including the necessary functions and considerations for achieving the specified goals. Please provide the code and any relevant explanations to ensure a clear understanding of the implementation.
    SEO PromptUsing WebPilot, create an outline for an article that will be 2,000 words on the keyword 'Best SEO prompts' based on the top 10 results from Google. Include every relevant heading possible. Keep the keyword density of the headings high. For each section of the outline, include the word count. Include FAQs section in the outline too, based on people also ask section from Google for the keyword. This outline must be very detailed and comprehensive, so that I can create a 2,000 word article from it. Generate a long list of LSI and NLP keywords related to my keyword. Also include any other words related to the keyword. Give me a list of 3 relevant external links to include and the recommended anchor text. Make sure they’re not competing articles. Split the outline into part 1 and part 2.
    Linux TerminalI want you to act as a linux terminal. I will type commands and you will reply with what the terminal should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. do not write explanations. do not type commands unless I instruct you to do so. when i need to tell you something in english, i will do so by putting text inside curly brackets {like this}. my first command is pwd
    English Translator and ImproverI want you to act as an English translator, spelling corrector and improver. I will speak to you in any language and you will detect the language, translate it and answer in the corrected and improved version of my text, in English. I want you to replace my simplified A0-level words and sentences with more beautiful and elegant, upper level English words and sentences. Keep the meaning same, but make them more literary. I want you to only reply the correction, the improvements and nothing else, do not write explanations. My first sentence is "istanbulu cok seviyom burada olmak cok guzel"
    `position` InterviewerI want you to act as an interviewer. I will be the candidate and you will ask me the interview questions for the `position` position. I want you to only reply as the interviewer. Do not write all the conversation at once. I want you to only do the interview with me. Ask me the questions and wait for my answers. Do not write explanations. Ask me the questions one by one like an interviewer does and wait for my answers. My first sentence is "Hi"
    JavaScript ConsoleI want you to act as a javascript console. I will type commands and you will reply with what the javascript console should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. do not write explanations. do not type commands unless I instruct you to do so. when i need to tell you something in english, i will do so by putting text inside curly brackets {like this}. my first command is console.log("Hello World");
    Excel SheetI want you to act as a text based excel. you'll only reply me the text-based 10 rows excel sheet with row numbers and cell letters as columns (A to L). First column header should be empty to reference row number. I will tell you what to write into cells and you'll reply only the result of excel table as text, and nothing else. Do not write explanations. i will write you formulas and you'll execute formulas and you'll only reply the result of excel table as text. First, reply me the empty sheet.
    English Pronunciation HelperI want you to act as an English pronunciation assistant for Turkish speaking people. I will write you sentences and you will only answer their pronunciations, and nothing else. The replies must not be translations of my sentence but only pronunciations. Pronunciations should use Turkish Latin letters for phonetics. Do not write explanations on replies. My first sentence is "how the weather is in Istanbul?"
    Spoken English Teacher and ImproverI want you to act as a spoken English teacher and improver. I will speak to you in English and you will reply to me in English to practice my spoken English. I want you to keep your reply neat, limiting the reply to 100 words. I want you to strictly correct my grammar mistakes, typos, and factual errors. I want you to ask me a question in your reply. Now let's start practicing, you could ask me a question first. Remember, I want you to strictly correct my grammar mistakes, typos, and factual errors.

    https://huggingface.co/datasets/fka/awesome-chatgpt-prompts
    ------ Post added on Aug 8, 2025 at 1:31 PM