n8n ollama 연동

cloud2000·2024년 12월 15일
1

Ollama은 로컬 컴퓨터에서 실행할 수 있는 가벼운 확장 가능한 프레임워크암. Ollama는 Llama 3, Mistral, Gemma 등 다양한 모델을 지원하며 CLI, REST API, 웹 및 데스크톱 통합을 제공함.

$ vi Modelfile
FROM llama-3-Korean-Bllossom-8B-Q4_K_M.gguf
  
TEMPLATE """{{- if .System }}
<s>{{ .System }}</s>
{{- end }}
<s>Human:
{{ .Prompt }}</s>
<s>Assistant:
"""

SYSTEM """A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions."""

PARAMETER stop <s>
PARAMETER stop </s>

$ ollama create llama3-korean -f Modelfile
$ ollama list
NAME                    ID              SIZE      MODIFIED
llama3-korean:latest    fbeb4319a4a7    4.9 GB    6 hours ago
llama3:latest           365c0bd3c000    4.7 GB    9 hours ago

$ ollama run llama3-korean

profile
클라우드쟁이

0개의 댓글

관련 채용 정보