Software/기타

인공지능 시작하기 - Ollama 명령어모드 #1

초짜호야 2026. 1. 28. 16:37
728x90

이전에 Ollama 설치했으며 powershell 창을 열어서 명령어에 대해서 알아보자.

 

1) 도움말 보기

ollama -h

 

2) 모델 설치 

ollama run llama3.2

 

3) 모델 정보 보기

ollama show llama3.2

 

4) 브라우즈에서 서비스 보기

http://localhost:11434/

 

5) Rest로 호출하기

Invoke-RestMethod http://localhost:11434/api/generate `
   -Method Post `
   -ContentType "application/json" `
   -Body '{
     "model": "llama3",
     "prompt": "Explain ESP32 UART"
   }'

 

728x90