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

관리 명령어

~16 min · ollama, ops

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

실전에서 쓰는 CLI

Ollama CLI는 작아 — 자주 쓸 거 12개 안 돼. 외워두면 quest 다른 lesson 다 마찰 줄어.

명령어하는 일
ollama list설치된 모델 list (디스크 크기 포함)
ollama show NAMEMetadata: parameters, template, capabilities
ollama show NAME --modelfile모델 만든 Modelfile 출력
ollama ps현재 로드된 모델 + VRAM/RAM 사용량
ollama stop NAME모델 즉시 unload
ollama cp SRC DST모델 복사 (alias). Blob 공유라 cheap
ollama rm NAME모델 삭제 (디스크 free)
ollama pull NAME모델 다운로드 / 업데이트
ollama run NAMEInteractive chat REPL (없으면 pull)
ollama create NAME -f ModelfileModelfile에서 derived 모델 빌드
ollama serveDaemon 수동 실행 (거의 안 씀)

실전에서 진짜 사는 두 명령어

ollama ps는 카나리아야. 어떤 모델이 로드돼있고, 메모리 얼마 쓰고, 언제 evict될지 (UNTIL 컬럼) 알려줘. 뭔가 느리게 느껴지면 첫 번째 살펴볼 곳. ollama show NAME이 두 번째 — 뭐가 안 되는지 디버깅하기 전에 capabilities (tools, vision, thinking) 확인하는 데 써.

Code

Daily driver flow·bash
# 뭐가 설치돼 있나?
ollama list

# 지금 메모리에 뭐가 로드돼 있나?
ollama ps

# 이 모델 진짜 뭘 지원해?
ollama show qwen2.5:7b
# 봐야 할 것: capabilities (tools / vision / thinking), template, parameter_size, quantization

# 모델 즉시 stop (메모리 free)
ollama stop qwen2.5:7b

# Prompt 없이 모델 강제 로드
curl http://localhost:11434/api/generate -d '{"model":"qwen2.5:7b","keep_alive":"30m"}'

# 모델 강제 unload
curl http://localhost:11434/api/generate -d '{"model":"qwen2.5:7b","keep_alive":0}'
디스크와 버전 위생·bash
# Ollama 디스크 사용량
du -sh ~/.ollama/models 2>/dev/null

# 각 family 어떤 버전 가지고 있나?
ollama list | awk '{print $1}' | sort

# 새 quant 옮긴 후 옛 quant 삭제
ollama rm llama3.1:7b-instruct-q4_0

# 모델 최신 tag로 업데이트
ollama pull qwen2.5:7b

External links

Exercise

ollama list, ollama ps, ollama show <한 모델> 돌려서 출력을 노트에 붙여. 아마 지울 만한 모델 (옛 quant, 안 쓰는 family) 하나 식별해서 삭제해.

Progress

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

댓글 0

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

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