[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F9P1825PQSBQYRVSS73WJ5":3,"skill-same:01M6F9P1825PQSBQYRVSS73WJ5":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":21,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":6,"ownerHtmlUrl":57,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":58,"install":59,"resources":72},"01M6F9P1825PQSBQYRVSS73WJ5","ollama-stack",null,"Run local LLM workloads with Ollama, Open WebUI, and GPU-aware tuning for private development environments.","boisenoise\u002Fskills-collections","boisenoise","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F193180?v=4","01M6CDBDQK6BDN55ZMA6B6PKBM","01M6CDBDVSJ3JPTBYN26FZ7TZK",13,"MIT","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-ollama-stack\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"ollama stack","stack","ollama","main","2026","environments","relevant","scripts","critical","os","local","local llm","open webui","security","community","only","access","open","devops-security","tuning","run","2026-11-10 10:12:30",false,"---\nname: ollama-stack\ndescription: Run local LLM workloads with Ollama, Open WebUI, and GPU-aware tuning\n  for private development environments.\ncategory: devops\nrisk: critical\nsource: https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\nsource_repo: BagelHole\u002FDevOps-Security-Agent-Skills\nsource_type: community\ndate_added: '2026-09-20'\nlicense: MIT\nlicense_source: https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\u002Fblob\u002Fmain\u002FLICENSE\ncompatibility: Requires the relevant OS\u002Fplatform tooling and privileged access where\n  noted. Docs-only; helper scripts and templates not bundled.\nmetadata:\n  author: devops-skills\n  version: '1.0'\n---\n\n# Ollama Stack\n\nDeploy a local LLM stack for offline and privacy-first workflows.\n\n## When to Use This Skill\n\nUse this skill when:\n- Setting up private\u002Flocal LLM inference for development\n- Building air-gapped AI environments\n- Running models on personal hardware (Mac, Linux, Windows with GPU)\n- Creating team-shared inference endpoints\n- Prototyping before committing to cloud LLM APIs\n\n## Deployment boundaries\n\nPin reviewed container images and model revisions before use; table sizes\u002FVRAM are illustrative and context\u002Fconcurrency change requirements. A local endpoint does not guarantee offline operation: model downloads, WebUI features and proxy backends can make network calls. Confirm mounted data, authentication and network policy; the nginx IP restriction below is not user authentication. Container `OLLAMA_HOST=0.0.0.0` is for the private Compose network while published host ports bind to loopback. See [Ollama networking guidance](https:\u002F\u002Fdocs.ollama.com\u002Ffaq).\n\n## Prerequisites\n\n- 8 GB+ RAM (16 GB+ recommended for 7B+ models)\n- For GPU acceleration: NVIDIA GPU with 6 GB+ VRAM, or Apple Silicon Mac\n- Docker (for containerized deployment)\n- 20 GB+ disk for model storage\n\n## Quick Start\n\n```bash\n# Install Ollama\n# Download to a private review directory; inspect the exact script before any authorized execution.\n# Follow the platform-specific official installation method; do not execute a moving installer blindly.\n\n# Start the server\nollama serve\n\n# Pull and run a model\nollama pull llama3.1:8b\nollama run llama3.1:8b \"Explain Kubernetes pods in one paragraph\"\n\n# List available models\nollama list\n\n# Pull specific quantization\nollama pull llama3.1:8b-instruct-q4_K_M\n```\n\n## Model Selection Guide\n\n| Model | Size | VRAM | Best For |\n|-------|------|------|----------|\n| `llama3.1:8b` | 4.7 GB | 6 GB | General chat, coding |\n| `llama3.1:70b` | 40 GB | 48 GB | Complex reasoning |\n| `codellama:13b` | 7.4 GB | 10 GB | Code generation |\n| `mistral:7b` | 4.1 GB | 6 GB | Fast general tasks |\n| `mixtral:8x7b` | 26 GB | 32 GB | High-quality MoE |\n| `nomic-embed-text` | 274 MB | 1 GB | Embeddings for RAG |\n| `llava:13b` | 8 GB | 10 GB | Vision + text |\n| `deepseek-coder-v2:16b` | 9 GB | 12 GB | Code generation |\n| `qwen2.5:14b` | 9 GB | 12 GB | Multilingual, reasoning |\n\n## Docker Compose — Full Stack\n\n```yaml\n# docker-compose.yml\nservices:\n  ollama:\n    image: ollama\u002Follama:latest\n    container_name: ollama\n    restart: unless-stopped\n    ports:\n      - \"127.0.0.1:11434:11434\"\n    volumes:\n      - ollama_data:\u002Froot\u002F.ollama\n    environment:\n      - OLLAMA_HOST=0.0.0.0\n      - OLLAMA_NUM_PARALLEL=4\n      - OLLAMA_MAX_LOADED_MODELS=2\n      - OLLAMA_FLASH_ATTENTION=1\n    deploy:\n      resources:\n        reservations:\n          devices:\n            - driver: nvidia\n              count: all\n              capabilities: [gpu]\n    healthcheck:\n      test: [\"CMD\", \"curl\", \"-f\", \"http:\u002F\u002Flocalhost:11434\u002Fapi\u002Ftags\"]\n      interval: 30s\n      timeout: 10s\n      retries: 3\n\n  open-webui:\n    image: ghcr.io\u002Fopen-webui\u002Fopen-webui:main\n    container_name: open-webui\n    restart: unless-stopped\n    ports:\n      - \"127.0.0.1:3000:8080\"\n    volumes:\n      - webui_data:\u002Fapp\u002Fbackend\u002Fdata\n    environment:\n      - OLLAMA_BASE_URL=http:\u002F\u002Follama:11434\n      - WEBUI_AUTH=true\n      - WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY:?supply a private generated secret}\n      - DEFAULT_MODELS=llama3.1:8b\n    depends_on:\n      ollama:\n        condition: service_healthy\n\n  litellm:\n    image: ghcr.io\u002Fberriai\u002Flitellm:main-latest\n    container_name: litellm\n    restart: unless-stopped\n    ports:\n      - \"127.0.0.1:4000:4000\"\n    volumes:\n      - .\u002Flitellm-config.yaml:\u002Fapp\u002Fconfig.yaml\n    command: [\"--config\", \"\u002Fapp\u002Fconfig.yaml\"]\n    depends_on:\n      ollama:\n        condition: service_healthy\n\nvolumes:\n  ollama_data:\n  webui_data:\n```\n\n### LiteLLM Proxy Config\n\n```yaml\n# litellm-config.yaml\nmodel_list:\n  - model_name: llama3\n    litellm_params:\n      model: ollama\u002Fllama3.1:8b\n      api_base: http:\u002F\u002Follama:11434\n  - model_name: codellama\n    litellm_params:\n      model: ollama\u002Fcodellama:13b\n      api_base: http:\u002F\u002Follama:11434\n  - model_name: embeddings\n    litellm_params:\n      model: ollama\u002Fnomic-embed-text\n      api_base: http:\u002F\u002Follama:11434\n\ngeneral_settings:\n  master_key: os.environ\u002FLITELLM_MASTER_KEY  # supply privately; verify syntax for pinned LiteLLM version\n  # Configure and verify a finite budget separately; zero semantics vary by version.\n```\n\n## API Usage\n\nOllama exposes an OpenAI-compatible API:\n\n```bash\n# Chat completion\ncurl http:\u002F\u002Flocalhost:11434\u002Fv1\u002Fchat\u002Fcompletions \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"model\": \"llama3.1:8b\",\n    \"messages\": [{\"role\": \"user\", \"content\": \"Hello\"}],\n    \"stream\": false\n  }'\n\n# Embeddings\ncurl http:\u002F\u002Flocalhost:11434\u002Fv1\u002Fembeddings \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"model\": \"nomic-embed-text\",\n    \"input\": \"The quick brown fox\"\n  }'\n\n# List models\ncurl http:\u002F\u002Flocalhost:11434\u002Fapi\u002Ftags\n```\n\n### Python Client\n\n```python\n# pip install ollama\nimport ollama\n\n# Chat\nresponse = ollama.chat(\n    model=\"llama3.1:8b\",\n    messages=[{\"role\": \"user\", \"content\": \"Explain Docker in 3 sentences\"}],\n)\nprint(response[\"message\"][\"content\"])\n\n# Streaming\nfor chunk in ollama.chat(\n    model=\"llama3.1:8b\",\n    messages=[{\"role\": \"user\", \"content\": \"Write a haiku about containers\"}],\n    stream=True,\n):\n    print(chunk[\"message\"][\"content\"], end=\"\", flush=True)\n\n# Embeddings\nresult = ollama.embed(model=\"nomic-embed-text\", input=\"Hello world\")\nprint(f\"Embedding dimensions: {len(result['embeddings'][0])}\")\n```\n\n### OpenAI SDK Compatibility\n\n```python\nimport os\nfrom openai import OpenAI\n\n# Configure OLLAMA_CLIENT_KEY privately for this endpoint. Local unauthenticated\n# Ollama ignores the SDK-required value; it is not access control.\nclient = OpenAI(base_url=\"http:\u002F\u002Flocalhost:11434\u002Fv1\", api_key=os.environ[\"OLLAMA_CLIENT_KEY\"])\n\nresponse = client.chat.completions.create(\n    model=\"llama3.1:8b\",\n    messages=[{\"role\": \"user\", \"content\": \"Hello\"}],\n)\nprint(response.choices[0].message.content)\n```\n\n## Custom Modelfiles\n\nCreate specialized models with custom system prompts and parameters:\n\n```dockerfile\n# Modelfile.devops-assistant\nFROM llama3.1:8b\n\nSYSTEM \"\"\"You are a DevOps expert assistant. You provide concise, production-ready\nadvice about infrastructure, CI\u002FCD, containers, and cloud services.\nAlways include relevant commands and config examples.\"\"\"\n\nPARAMETER temperature 0.3\nPARAMETER top_p 0.9\nPARAMETER num_ctx 8192\nPARAMETER repeat_penalty 1.1\n```\n\n```bash\n# Build and use custom model\nollama create devops-assistant -f Modelfile.devops-assistant\nollama run devops-assistant \"Set up a GitHub Actions workflow for Docker builds\"\n```\n\n## GPU Configuration\n\n### NVIDIA\n\n```bash\n# Verify GPU access\nnvidia-smi\nollama run llama3.1:8b --verbose  # Shows GPU layers loaded\n\n# Environment tuning\nexport OLLAMA_NUM_PARALLEL=4          # Concurrent requests\nexport OLLAMA_MAX_LOADED_MODELS=2     # Models in VRAM\nexport OLLAMA_FLASH_ATTENTION=1       # Faster attention\nexport CUDA_VISIBLE_DEVICES=0,1       # Multi-GPU\n```\n\n### Apple Silicon\n\n```bash\n# Metal acceleration is automatic on macOS\n# Verify with:\nollama run llama3.1:8b --verbose\n# Look for: \"metal\" in the output\n\n# Optimize for unified memory\nexport OLLAMA_NUM_PARALLEL=2          # Keep memory headroom\nexport OLLAMA_MAX_LOADED_MODELS=1     # One model at a time on 16GB\n```\n\n## Monitoring\n\n```bash\n# Check running models and memory usage\ncurl http:\u002F\u002Flocalhost:11434\u002Fapi\u002Fps\n\n# Prometheus metrics (if enabled)\ncurl http:\u002F\u002Flocalhost:11434\u002Fmetrics\n\n# Quick health check script\n#!\u002Fbin\u002Fbash\nresponse=$(curl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" http:\u002F\u002Flocalhost:11434\u002Fapi\u002Ftags)\nif [ \"$response\" = \"200\" ]; then\n    echo \"Ollama is healthy\"\n    curl -s http:\u002F\u002Flocalhost:11434\u002Fapi\u002Fps | python3 -m json.tool\nelse\n    echo \"Ollama is down (HTTP $response)\"\n    exit 1\nfi\n```\n\n## Systemd Service\n\n```ini\n# \u002Fetc\u002Fsystemd\u002Fsystem\u002Follama.service\n[Unit]\nDescription=Ollama LLM Server\nAfter=network-online.target\nWants=network-online.target\n\n[Service]\nExecStart=\u002Fusr\u002Flocal\u002Fbin\u002Follama serve\nUser=ollama\nGroup=ollama\nRestart=always\nRestartSec=3\nEnvironment=\"OLLAMA_HOST=127.0.0.1:11434\"\nEnvironment=\"OLLAMA_NUM_PARALLEL=4\"\nEnvironment=\"OLLAMA_FLASH_ATTENTION=1\"\nLimitNOFILE=65535\n\n[Install]\nWantedBy=default.target\n```\n\n```bash\nsudo useradd -r -s \u002Fbin\u002Ffalse -m -d \u002Fusr\u002Fshare\u002Follama ollama\nsudo systemctl daemon-reload\nsudo systemctl enable --now ollama\nsudo systemctl status ollama\n```\n\n## Security\n\n- Bind to `127.0.0.1` in production (default), use reverse proxy for remote access\n- Set `WEBUI_AUTH=true` on Open WebUI\n- Use nginx with TLS for remote access:\n\n```nginx\nserver {\n    listen 443 ssl;\n    server_name llm.internal.example.com;\n    ssl_certificate \u002Fetc\u002Fssl\u002Fcerts\u002Fllm.pem;\n    ssl_certificate_key \u002Fetc\u002Fssl\u002Fprivate\u002Fllm.key;\n\n    location \u002F {\n        proxy_pass http:\u002F\u002F127.0.0.1:11434;\n        proxy_set_header Host $host;\n        proxy_buffering off;              # Required for streaming\n        proxy_read_timeout 600s;          # Long model responses\n        allow 10.0.0.0\u002F8;\n        deny all;\n    }\n}\n```\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|---------|\n| Model too slow | Use smaller quantization (`q4_K_M`), enable flash attention |\n| Out of memory | Reduce `num_ctx`, use smaller model, set `OLLAMA_MAX_LOADED_MODELS=1` |\n| GPU not detected | Check `nvidia-smi`, reinstall CUDA drivers, verify Docker GPU runtime |\n| Connection refused | Check `OLLAMA_HOST` setting, verify firewall rules |\n| Model download fails | Check disk space, registry identity, connectivity and certificate trust; repair trusted CA configuration instead of disabling TLS verification |\n\n## Related Skills\n\n- mac-mini-llm-lab (`mac-mini-llm-lab`) — Apple Silicon optimization\n- docker-compose (`docker-compose`) — Service orchestration\n- vllm-server (`vllm-server`) — High-throughput production inference\n- llm-gateway (`llm-gateway`) — Unified API routing\n\n## Limitations\n\n- Infrastructure commands can disrupt services: confirm target host\u002Fscope and have backups\u002Fsnapshots before mutating state.\n- Docs-only import: upstream scripts and templates not bundled.\n\n","# Ollama Stack\n\nDeploy a local LLM stack for offline and privacy-first workflows.\n\n## When to Use This Skill\n\nUse this skill when:\n- Setting up private\u002Flocal LLM inference for development\n- Building air-gapped AI environments\n- Running models on personal hardware (Mac, Linux, Windows with GPU)\n- Creating team-shared inference endpoints\n- Prototyping before committing to cloud LLM APIs\n\n## Deployment boundaries\n\nPin reviewed container images and model revisions before use; table sizes\u002FVRAM are illustrative and context\u002Fconcurrency change requirements. A local endpoint does not guarantee offline operation: model downloads, WebUI features and proxy backends can make network calls. Confirm mounted data, authentication and network policy; the nginx IP restriction below is not user authentication. Container `OLLAMA_HOST=0.0.0.0` is for the private Compose network while published host ports bind to loopback. See [Ollama networking guidance](https:\u002F\u002Fdocs.ollama.com\u002Ffaq).\n\n## Prerequisites\n\n- 8 GB+ RAM (16 GB+ recommended for 7B+ models)\n- For GPU acceleration: NVIDIA GPU with 6 GB+ VRAM, or Apple Silicon Mac\n- Docker (for containerized deployment)\n- 20 GB+ disk for model storage\n\n## Quick Start\n\n```bash\n# Install Ollama\n# Download to a private review directory; inspect the exact script before any authorized execution.\n# Follow the platform-specific official installation method; do not execute a moving installer blindly.\n\n# Start the server\nollama serve\n\n# Pull and run a model\nollama pull llama3.1:8b\nollama run llama3.1:8b \"Explain Kubernetes pods in one paragraph\"\n\n# List available models\nollama list\n\n# Pull specific quantization\nollama pull llama3.1:8b-instruct-q4_K_M\n```\n\n## Model Selection Guide\n\n| Model | Size | VRAM | Best For |\n|-------|------|------|----------|\n| `llama3.1:8b` | 4.7 GB | 6 GB | General chat, coding |\n| `llama3.1:70b` | 40 GB | 48 GB | Complex reasoning |\n| `codellama:13b` | 7.4 GB | 10 GB | Code generation |\n| `mistral:7b` | 4.1 GB | 6 GB | Fast general tasks |\n| `mixtral:8x7b` | 26 GB | 32 GB | High-quality MoE |\n| `nomic-embed-text` | 274 MB | 1 GB | Embeddings for RAG |\n| `llava:13b` | 8 GB | 10 GB | Vision + text |\n| `deepseek-coder-v2:16b` | 9 GB | 12 GB | Code generation |\n| `qwen2.5:14b` | 9 GB | 12 GB | Multilingual, reasoning |\n\n## Docker Compose — Full Stack\n\n```yaml\n# docker-compose.yml\nservices:\n  ollama:\n    image: ollama\u002Follama:latest\n    container_name: ollama\n    restart: unless-stopped\n    ports:\n      - \"127.0.0.1:11434:11434\"\n    volumes:\n      - ollama_data:\u002Froot\u002F.ollama\n    environment:\n      - OLLAMA_HOST=0.0.0.0\n      - OLLAMA_NUM_PARALLEL=4\n      - OLLAMA_MAX_LOADED_MODELS=2\n      - OLLAMA_FLASH_ATTENTION=1\n    deploy:\n      resources:\n        reservations:\n          devices:\n            - driver: nvidia\n              count: all\n              capabilities: [gpu]\n    healthcheck:\n      test: [\"CMD\", \"curl\", \"-f\", \"http:\u002F\u002Flocalhost:11434\u002Fapi\u002Ftags\"]\n      interval: 30s\n      timeout: 10s\n      retries: 3\n\n  open-webui:\n    image: ghcr.io\u002Fopen-webui\u002Fopen-webui:main\n    container_name: open-webui\n    restart: unless-stopped\n    ports:\n      - \"127.0.0.1:3000:8080\"\n    volumes:\n      - webui_data:\u002Fapp\u002Fbackend\u002Fdata\n    environment:\n      - OLLAMA_BASE_URL=http:\u002F\u002Follama:11434\n      - WEBUI_AUTH=true\n      - WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY:?supply a private generated secret}\n      - DEFAULT_MODELS=llama3.1:8b\n    depends_on:\n      ollama:\n        condition: service_healthy\n\n  litellm:\n    image: ghcr.io\u002Fberriai\u002Flitellm:main-latest\n    container_name: litellm\n    restart: unless-stopped\n    ports:\n      - \"127.0.0.1:4000:4000\"\n    volumes:\n      - .\u002Flitellm-config.yaml:\u002Fapp\u002Fconfig.yaml\n    command: [\"--config\", \"\u002Fapp\u002Fconfig.yaml\"]\n    depends_on:\n      ollama:\n        condition: service_healthy\n\nvolumes:\n  ollama_data:\n  webui_data:\n```\n\n### LiteLLM Proxy Config\n\n```yaml\n# litellm-config.yaml\nmodel_list:\n  - model_name: llama3\n    litellm_params:\n      model: ollama\u002Fllama3.1:8b\n      api_base: http:\u002F\u002Follama:11434\n  - model_name: codellama\n    litellm_params:\n      model: ollama\u002Fcodellama:13b\n      api_base: http:\u002F\u002Follama:11434\n  - model_name: embeddings\n    litellm_params:\n      model: ollama\u002Fnomic-embed-text\n      api_base: http:\u002F\u002Follama:11434\n\ngeneral_settings:\n  master_key: os.environ\u002FLITELLM_MASTER_KEY  # supply privately; verify syntax for pinned LiteLLM version\n  # Configure and verify a finite budget separately; zero semantics vary by version.\n```\n\n## API Usage\n\nOllama exposes an OpenAI-compatible API:\n\n```bash\n# Chat completion\ncurl http:\u002F\u002Flocalhost:11434\u002Fv1\u002Fchat\u002Fcompletions \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"model\": \"llama3.1:8b\",\n    \"messages\": [{\"role\": \"user\", \"content\": \"Hello\"}],\n    \"stream\": false\n  }'\n\n# Embeddings\ncurl http:\u002F\u002Flocalhost:11434\u002Fv1\u002Fembeddings \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"model\": \"nomic-embed-text\",\n    \"input\": \"The quick brown fox\"\n  }'\n\n# List models\ncurl http:\u002F\u002Flocalhost:11434\u002Fapi\u002Ftags\n```\n\n### Python Client\n\n```python\n# pip install ollama\nimport ollama\n\n# Chat\nresponse = ollama.chat(\n    model=\"llama3.1:8b\",\n    messages=[{\"role\": \"user\", \"content\": \"Explain Docker in 3 sentences\"}],\n)\nprint(response[\"message\"][\"content\"])\n\n# Streaming\nfor chunk in ollama.chat(\n    model=\"llama3.1:8b\",\n    messages=[{\"role\": \"user\", \"content\": \"Write a haiku about containers\"}],\n    stream=True,\n):\n    print(chunk[\"message\"][\"content\"], end=\"\", flush=True)\n\n# Embeddings\nresult = ollama.embed(model=\"nomic-embed-text\", input=\"Hello world\")\nprint(f\"Embedding dimensions: {len(result['embeddings'][0])}\")\n```\n\n### OpenAI SDK Compatibility\n\n```python\nimport os\nfrom openai import OpenAI\n\n# Configure OLLAMA_CLIENT_KEY privately for this endpoint. Local unauthenticated\n# Ollama ignores the SDK-required value; it is not access control.\nclient = OpenAI(base_url=\"http:\u002F\u002Flocalhost:11434\u002Fv1\", api_key=os.environ[\"OLLAMA_CLIENT_KEY\"])\n\nresponse = client.chat.completions.create(\n    model=\"llama3.1:8b\",\n    messages=[{\"role\": \"user\", \"content\": \"Hello\"}],\n)\nprint(response.choices[0].message.content)\n```\n\n## Custom Modelfiles\n\nCreate specialized models with custom system prompts and parameters:\n\n```dockerfile\n# Modelfile.devops-assistant\nFROM llama3.1:8b\n\nSYSTEM \"\"\"You are a DevOps expert assistant. You provide concise, production-ready\nadvice about infrastructure, CI\u002FCD, containers, and cloud services.\nAlways include relevant commands and config examples.\"\"\"\n\nPARAMETER temperature 0.3\nPARAMETER top_p 0.9\nPARAMETER num_ctx 8192\nPARAMETER repeat_penalty 1.1\n```\n\n```bash\n# Build and use custom model\nollama create devops-assistant -f Modelfile.devops-assistant\nollama run devops-assistant \"Set up a GitHub Actions workflow for Docker builds\"\n```\n\n## GPU Configuration\n\n### NVIDIA\n\n```bash\n# Verify GPU access\nnvidia-smi\nollama run llama3.1:8b --verbose  # Shows GPU layers loaded\n\n# Environment tuning\nexport OLLAMA_NUM_PARALLEL=4          # Concurrent requests\nexport OLLAMA_MAX_LOADED_MODELS=2     # Models in VRAM\nexport OLLAMA_FLASH_ATTENTION=1       # Faster attention\nexport CUDA_VISIBLE_DEVICES=0,1       # Multi-GPU\n```\n\n### Apple Silicon\n\n```bash\n# Metal acceleration is automatic on macOS\n# Verify with:\nollama run llama3.1:8b --verbose\n# Look for: \"metal\" in the output\n\n# Optimize for unified memory\nexport OLLAMA_NUM_PARALLEL=2          # Keep memory headroom\nexport OLLAMA_MAX_LOADED_MODELS=1     # One model at a time on 16GB\n```\n\n## Monitoring\n\n```bash\n# Check running models and memory usage\ncurl http:\u002F\u002Flocalhost:11434\u002Fapi\u002Fps\n\n# Prometheus metrics (if enabled)\ncurl http:\u002F\u002Flocalhost:11434\u002Fmetrics\n\n# Quick health check script\n#!\u002Fbin\u002Fbash\nresponse=$(curl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" http:\u002F\u002Flocalhost:11434\u002Fapi\u002Ftags)\nif [ \"$response\" = \"200\" ]; then\n    echo \"Ollama is healthy\"\n    curl -s http:\u002F\u002Flocalhost:11434\u002Fapi\u002Fps | python3 -m json.tool\nelse\n    echo \"Ollama is down (HTTP $response)\"\n    exit 1\nfi\n```\n\n## Systemd Service\n\n```ini\n# \u002Fetc\u002Fsystemd\u002Fsystem\u002Follama.service\n[Unit]\nDescription=Ollama LLM Server\nAfter=network-online.target\nWants=network-online.target\n\n[Service]\nExecStart=\u002Fusr\u002Flocal\u002Fbin\u002Follama serve\nUser=ollama\nGroup=ollama\nRestart=always\nRestartSec=3\nEnvironment=\"OLLAMA_HOST=127.0.0.1:11434\"\nEnvironment=\"OLLAMA_NUM_PARALLEL=4\"\nEnvironment=\"OLLAMA_FLASH_ATTENTION=1\"\nLimitNOFILE=65535\n\n[Install]\nWantedBy=default.target\n```\n\n```bash\nsudo useradd -r -s \u002Fbin\u002Ffalse -m -d \u002Fusr\u002Fshare\u002Follama ollama\nsudo systemctl daemon-reload\nsudo systemctl enable --now ollama\nsudo systemctl status ollama\n```\n\n## Security\n\n- Bind to `127.0.0.1` in production (default), use reverse proxy for remote access\n- Set `WEBUI_AUTH=true` on Open WebUI\n- Use nginx with TLS for remote access:\n\n```nginx\nserver {\n    listen 443 ssl;\n    server_name llm.internal.example.com;\n    ssl_certificate \u002Fetc\u002Fssl\u002Fcerts\u002Fllm.pem;\n    ssl_certificate_key \u002Fetc\u002Fssl\u002Fprivate\u002Fllm.key;\n\n    location \u002F {\n        proxy_pass http:\u002F\u002F127.0.0.1:11434;\n        proxy_set_header Host $host;\n        proxy_buffering off;              # Required for streaming\n        proxy_read_timeout 600s;          # Long model responses\n        allow 10.0.0.0\u002F8;\n        deny all;\n    }\n}\n```\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|---------|\n| Model too slow | Use smaller quantization (`q4_K_M`), enable flash attention |\n| Out of memory | Reduce `num_ctx`, use smaller model, set `OLLAMA_MAX_LOADED_MODELS=1` |\n| GPU not detected | Check `nvidia-smi`, reinstall CUDA drivers, verify Docker GPU runtime |\n| Connection refused | Check `OLLAMA_HOST` setting, verify firewall rules |\n| Model download fails | Check disk space, registry identity, connectivity and certificate trust; repair trusted CA configuration instead of disabling TLS verification |\n\n## Related Skills\n\n- mac-mini-llm-lab (`mac-mini-llm-lab`) — Apple Silicon optimization\n- docker-compose (`docker-compose`) — Service orchestration\n- vllm-server (`vllm-server`) — High-throughput production inference\n- llm-gateway (`llm-gateway`) — Unified API routing\n\n## Limitations\n\n- Infrastructure commands can disrupt services: confirm target host\u002Fscope and have backups\u002Fsnapshots before mutating state.\n- Docs-only import: upstream scripts and templates not bundled.\n\n",{"name":5,"risk":26,"source":44,"license":14,"category":45,"metadata":46,"date_added":49,"description":7,"source_repo":50,"source_type":32,"compatibility":51,"license_source":52},"https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills","devops",{"author":47,"version":48},"devops-skills","1.0","2026-09-20","BagelHole\u002FDevOps-Security-Agent-Skills","Requires the relevant OS\u002Fplatform tooling and privileged access where noted. Docs-only; helper scripts and templates not bundled.","https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\u002Fblob\u002Fmain\u002FLICENSE","7bf2279c8a65758319526a721d5c4b75683aec9c","skills\u002Fantigravity-ollama-stack",3,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections","https:\u002F\u002Fgithub.com\u002Fboisenoise","2026-11-14 14:18:11",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add boisenoise\u002Fskills-collections --skill ollama-stack",{"tool":65,"command":66},"bunx","bunx skills add boisenoise\u002Fskills-collections --skill ollama-stack",{"tool":68,"command":69},"pnpm","pnpm dlx skills add boisenoise\u002Fskills-collections --skill ollama-stack","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-ollama-stack\u002FSKILL.md",true,[],[74,83,91,100,108,116],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":78,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":82},"01M7B6HREHB53EHGGVZND7DDXN","scrapely-scrape","Collect web data with ready-made Scrape.ly scrapers: Google Maps places, Amazon products, LinkedIn jobs, reviews, social posts. Use when the user wants structured data from a site.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-scrapely-scrape\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-scrapely-scrape\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":87,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":82},"01M7B6GDNNN4HE662KA6KPF7GW","lumify-odds","Lumify's hosted sports MCP\u002FREST API for sportsbook odds, line-movement history, public betting splits, and player props across MLB, NFL, NBA, NHL, soccer, tennis, NCAAF, NCAAB. Read-only market data.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-lumify-odds\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-lumify-odds\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":95,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":99},"01M743PZMJW2GEKG5J199GPSK7","sync-lipsync","Lip-sync an existing video of a real person to new audio or a typed script with sync. labs through its hosted MCP server, quoting the cost and waiting for approval first.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-sync-lipsync\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-sync-lipsync\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":99},"01M743MMN3CKTJVNRSZMB684E5","music-for-robots","Optional music-inspired creative exercise for multimodal agents. Ingests an unquantized acoustic MP3 composition by Michael Luchtan (Music For Robots) into a private temporary directory, analyzing microtiming and texture to inspire creative writing, brainstorming, or technical tasks.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-music-for-robots\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-music-for-robots\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":99},"01M743KC2GN5WE11BSTWSSWD8B","imagera-media","Generate or edit images, video clips, voiceovers and music through the hosted Imagera MCP server, quoting the credit cost and getting approval before each paid call.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-imagera-media\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-imagera-media\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":120,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":99},"01M743HDJNZQA8A4VT68NWGWQJ","deja-history","Search this machine's past AI coding sessions across Claude Code, Codex, Cursor, Gemini CLI and thirty-nine other agents before editing, debugging, or denying something exists.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-deja-history\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-deja-history\u002FSKILL.md",[],[]]