Running your first AI model with ollama


what is model?

AI model is a trained program who learns from the pattern and designed to generate response of users question.  Ollama enables Large Language Models (LLM) to work on the local computers or in any local system.
example:- 

  • Llama 3
  • Mistral 
  • Gemma
  • DeepSeek

Downloading and Running Llama 3

After installation of ollama we have to download an Artificial Intelligence (AI) model. Llama is one of the popular models. 

command:-

ollama run llama 3

ollama → ollama use to call the software.
run → It starts the model.
llama 3 → this is the name of the model.

Giving your first prompt

After starting the model now you are allowed to ask the question.  The question or Instruction given by the user is called prompt.

example:

what is Artificial Intelligence?

Example Response: 

Artificial Intelligence (AI) is a branch of computer science that focuses on creating machines and software capable of performing tasks that normally require human intelligence.

how to stop the model

when you get done with Model and when want to end chat session then the model can be stopped by a basic command-

ctrl + c

read more about ollama: 

previous topic : Basic requirements and installing ollama
next topic: Understanding ollama models

0 Comments Report