본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)48k · #5363

ollama-stack

하는 일

이 도구는 컴퓨터에서 대형 언어 모델(AI)을 직접, 개인적으로, 오프라인으로 실행하도록 해 줍니다. Llama 3나 CodeLlama 같은 모델을 다양한 작업에 사용할 수 있습니다.

사용하는 경우

  • ✓인터넷 연결 없이 AI를 사용하고 싶을 때.
  • ✓더 큰 프로젝트에서 쓰기 전에 AI 모델을 테스트할 때.
  • ✓데이터와 AI 모델을 내 컴퓨터에서 안전하게 보관하는 경우.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ollama-stack/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ollama-stack/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 컴퓨터에서 프로그래밍 질문에 답하는 AI 모델을 설정해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI를 실행하는 프로그램인 Ollama를 설치합니다. 그다음 원하는 AI 모델을 내려받아, 명령이나 웹 인터페이스를 통해 사용할 수 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Ollama Stack

Deploy a local LLM stack for offline and privacy-first workflows.

When to Use This Skill

Use this skill when:

  • Setting up private/local LLM inference for development
  • Building air-gapped AI environments
  • Running models on personal hardware (Mac, Linux, Windows with GPU)
  • Creating team-shared inference endpoints
  • Prototyping before committing to cloud LLM APIs

Prerequisites

  • 8 GB+ RAM (16 GB+ recommended for 7B+ models)
  • For GPU acceleration: NVIDIA GPU with 6 GB+ VRAM, or Apple Silicon Mac
  • Docker (for containerized deployment)
  • 20 GB+ disk for model storage

Quick Start

# Install Ollama
curl -fsSL https://ollama.com/install.sh -o /tmp/install-ollama.sh && sh /tmp/install-ollama.sh && rm /tmp/install-ollama.sh

# Start the server
ollama serve

# Pull and run a model
ollama pull llama3.1:8b
ollama run llama3.1:8b "Explain Kubernetes pods in one paragraph"

# List available models
ollama list

# Pull specific quantization
ollama pull llama3.1:8b-instruct-q4_K_M

Model Selection Guide

Model Size VRAM Best For
llama3.1:8b 4.7 GB 6 GB General chat, coding
llama3.1:70b 40 GB 48 GB Complex reasoning
codellama:13b 7.4 GB 10 GB Code generation
mistral:7b 4.1 GB 6 GB Fast general tasks
mixtral:8x7b 26 GB 32 GB High-quality MoE
nomic-embed-text 274 MB 1 GB Embeddings for RAG
llava:13b 8 GB 10 GB Vision + text
deepseek-coder-v2:16b 9 GB 12 GB Code generation
qwen2.5:14b 9 GB 12 GB Multilingual, reasoning

Docker Compose — Full Stack

# docker-compose.yml
services:
  ollama:
    image: ollama/ollama:latest
    container_name: ollama
    restart: unless-stopped
    ports:
      - "11434:11434"
    volumes:
      - ollama_data:/root/.ollama
    environment:
      - OLLAMA_HOST=0.0.0.0
      - OLLAMA_NUM_PARALLEL=4
      - OLLAMA_MAX_LOADED_MODELS=2
      - OLLAMA_FLASH_ATTENTION=1
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:11434/api/tags"]
      interval: 30s
      timeout: 10s
      retries: 3

  open-webui:
    image: ghcr.io/open-webui/open-webui:main
    container_name: open-webui
    restart: unless-stopped
    ports:
      - "3000:8080"
    volumes:
      - webui_data:/app/backend/data
    environment:
      - OLLAMA_BASE_URL=http://ollama:11434
      - WEBUI_AUTH=true
      - WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY:-change-me-in-production}
      - DEFAULT_MODELS=llama3.1:8b
    depends_on:
      ollama:
        condition: service_healthy

  litellm:
    image: ghcr.io/berriai/litellm:main-latest
    container_name: litellm
    restart: unless-stopped
    ports:
      - "4000:4000"
    volumes:
      - ./litellm-config.yaml:/app/config.yaml
    command: ["--config", "/app/config.yaml"]
    depends_on:
      ollama:
        condition: service_healthy

volumes:
  ollama_data:
  webui_data:

LiteLLM Proxy Config

# litellm-config.yaml
model_list:
  - model_name: llama3
    litellm_params:
      model: ollama/llama3.1:8b
      api_base: http://ollama:11434
  - model_name: codellama
    litellm_params:
      model: ollama/codellama:13b
      api_base: http://ollama:11434
  - model_name: embeddings
    litellm_params:
      model: ollama/nomic-embed-text
      api_base: http://ollama:11434

general_settings:
  master_key: sk-local-dev-key
  max_budget: 0  # unlimited for local

API Usage

Ollama exposes an OpenAI-compatible API:

# Chat completion
curl http://localhost:11434/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "llama3.1:8b",
    "messages": [{"role": "user", "content": "Hello"}],
    "stream": false
  }'

# Embeddings
curl http://localhost:11434/v1/embeddings \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nomic-embed-text",
    "input": "The quick brown fox"
  }'

# List models
curl http://localhost:11434/api/tags

Python Client

# pip install ollama
import ollama

# Chat
response = ollama.chat(
    model="llama3.1:8b",
    messages=[{"role": "user", "content": "Explain Docker in 3 sentences"}],
)
print(response["message"]["content"])

# Streaming
for chunk in ollama.chat(
    model="llama3.1:8b",

…
자주 묻는 질문

강력한 컴퓨터가 필요한가요?

AI 모델에 따라 다릅니다. 작은 모델은 8GB RAM이면 충분합니다. 큰 모델이나 그래픽 카드(GPU)를 사용하려면 더 많은 RAM과 VRAM이 필요합니다.

어떤 운영체제에서 작동하나요?

Docker가 설치되어 있다면 Mac, Linux, Windows에서 작동합니다.

q4_K_M 같은 ‘양자화(quantization)’ 버전은 무엇인가요?

양자화된 AI 모델은 메모리와 디스크 공간을 덜 쓰고 더 빠르게 실행되는 작은 버전이며, 품질이 약간 떨어질 수 있습니다.

상세 정보

작성자의 원본 설명

Run local LLM workloads with Ollama, Open WebUI, and GPU-aware tuning for private development environments.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#5363
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬