C.W.K.
Stream
Lesson 02 of 05 · published

Pull과 Run

~22 min · ollama, models

Level 0Downloader
0 XP0/41 lessons0/11 achievements
0/120 XP to next level120 XP to go0% complete

model:tag 네임스페이스

모든 Ollama 모델은 name:tag 형태로 주소 매김. Default tag (예: ollama pull qwen2.5가 resolve하는 거)는 모델 maintainer가 고른 합리적인 quantization. 특정 quant이나 size 고정하려면 explicit tag 형태 사용.

예: qwen2.5:7b-instruct-q5_K_M는 이렇게 읽혀:

  • qwen2.5 — model family
  • 7b — parameter size
  • instruct — variant (instruction-tuned, base 아님)
  • q5_K_M — quantization

Pull과 run

ollama pull이 모델 blob들을 다운로드 (Docker layer처럼 layered — 같은 blob이 여러 tag에 공유되면 한 번만 다운). ollama run이 interactive chat REPL 띄우고 모델 없으면 먼저 pull해. 둘 다 부분 다운로드 resume 됨.

모델 저장 위치

macOS: ~/.ollama/models/. Linux: /usr/share/ollama/.ollama/models/. OLLAMA_MODELS 환경변수로 외장 드라이브 옮길 수 있어 — 부팅 디스크 작을 때 유용.

Code

Pull, run, list, inspect·bash
# Default tag pull
ollama pull qwen2.5

# 특정 quant pull
ollama pull qwen2.5:7b-instruct-q5_K_M

# Interactive 실행 (없으면 pull)
ollama run qwen2.5
# /bye로 종료, /?로 도움말

# 설치된 모델 list (크기 포함)
ollama list

# 특정 모델 inspect
ollama show qwen2.5:7b
ollama show qwen2.5:7b --modelfile

# 현재 로드된 모델 + 메모리 사용량
ollama ps
외장 저장소로 모델 옮기기·bash
# macOS / Linux: 모델 저장소 재배치
export OLLAMA_MODELS=/Volumes/ExternalSSD/ollama-models

# macOS에서 launchd가 상속하도록 persist
launchctl setenv OLLAMA_MODELS /Volumes/ExternalSSD/ollama-models

# 다시 pull하거나 기존 모델 symlink
ollama pull qwen2.5:7b

External links

Exercise

같은 모델을 두 가지 flavor로 pull해 — default tag랑 explicit larger quantization. ollama listollama show 둘 다 확인. 크기 차이랑 Ollama가 할당한 default num_ctx 메모해.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.