User Tools

Site Tools


ollama_llm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ollama_llm [2024/04/25 17:22]
jpummil
ollama_llm [2024/04/27 02:59] (current)
jpummil
Line 12: Line 12:
 </code> </code>
  
-Once you are logged in to your session, you need to determine which LLM model you wish to use for the session. More information about the various models can be seen here: https://ollama.com/library+You need to determine which LLM model you wish to use for the query. More information about the various models can be seen here: https://ollama.com/library
 To see the available models: To see the available models:
  
 <code> <code>
-$ ollama list+$ ollama-ahpcc list 
 NAME                            ID          SIZE  MODIFIED      NAME                            ID          SIZE  MODIFIED     
 all-minilm:latest              1b226e2802db 45 MB 3 weeks ago  all-minilm:latest              1b226e2802db 45 MB 3 weeks ago
Line 31: Line 32:
 </code> </code>
  
- +For querying with a single command from Ollama...
-There are two ways to utilize Ollama. Interactively, and as a single command query. +
- +
-To use a session interactively... +
- +
-<code> +
-ollama run <model> +
-</code> +
- +
-When you are done with the session, exit with the command... +
- +
-<code> +
-/bye +
-</code> +
- +
-For querying with a single command from outside the Ollama shell...+
  
 <code> <code>
-ollama run <model> <prompt query>+ollama-ahpcc run <model> <prompt query>
 </code> </code>
  
Line 55: Line 41:
  
 <code> <code>
-ollama run llama3 How many states are in the USA?+ollama-ahpcc run llama3 How many states are in the USA?
  
 There are 50 states in the United States of America (USA). There are 50 states in the United States of America (USA).
Line 63: Line 49:
  
 <code> <code>
-ollama run llama3 Please list in JSON format the names, state capitols, and populations of all 50 US states+ollama-ahpcc run llama3 Please list in JSON format the names, state capitols, and populations of all 50 US states
  
 Here is the list of 50 US states with their names, state capitals, and populations in JSON format: Here is the list of 50 US states with their names, state capitals, and populations in JSON format:
Line 91: Line 77:
  
 <code> <code>
-ollama run llama3 Please list all 50 US states >> states.txt+ollama-ahpcc run llama3 Please list all 50 US states >> states.txt
 </code> </code>
  
Line 97: Line 83:
  
 <code> <code>
-ollama run llama3 "$(cat nas.f90)" Please provide a brief summary of the file+ollama-ahpcc run llama3 "$(cat nas.f90)" Please provide a brief summary of the file
  
 This is a Fortran code file, specifically a main program and subroutine for solving a partial differential  This is a Fortran code file, specifically a main program and subroutine for solving a partial differential 
Line 122: Line 108:
  
 <code> <code>
-ollama run llama3 "$(head -n 1000 3nir.pdb)" Please provide a brief summary of the file+ollama-ahpcc run llama3 "$(head -n 1000 3nir.pdb)" Please provide a brief summary of the file
  
 This appears to be a PDB (Protein Data Bank) file, which contains structural information about a protein or  This appears to be a PDB (Protein Data Bank) file, which contains structural information about a protein or 
ollama_llm.1714065726.txt.gz · Last modified: 2024/04/25 17:22 by jpummil