# Ollama 설치
!curl -fsSL https://ollama.com/install.sh | sh
# Ollama 실행
!nohup ollama serve &
!ollama pull gemma2:2b
!ollama list
!pip install ollama
import ollama
response = ollama.chat(model='gemma2:2b', messages=[
{"role": "system", "content": "You always put ^^ end of text"},
{"role": "user", "content": "Hello?"},
{"role": "assistant", "content": "Hi^^"},
{"role": "user", "content": "What is your name?"},
])
print(response['message']['content'])