Spaces:
Sleeping
Sleeping
Download Dockerfile from Unmid/MiniCPM5-1B: direct link, hf CLI and curl.
- Browser
- Download file 670 Bytes
-
https://huggingface.co/spaces/Unmid/MiniCPM5-1B/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Unmid/MiniCPM5-1B/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Unmid/MiniCPM5-1B/resolve/main/Dockerfile
670 Bytes
| FROM ghcr.io/ggml-org/llama.cpp:full | |
| WORKDIR /app | |
| RUN apt update && apt install -y python3 python3-pip python3-venv | |
| RUN python3 -m venv /opt/venv | |
| ENV PATH="/opt/venv/bin:$PATH" | |
| RUN pip install -U pip huggingface_hub | |
| RUN python3 -c 'from huggingface_hub import hf_hub_download; \ | |
| repo="unsloth/LFM2.5-24B-A2B-GGUF"; \ | |
| hf_hub_download(repo_id=repo, filename="LFM2.5-24B-A2B-UD-IQ2_XXS.gguf", local_dir="/app")' | |
| CMD ["--server", \ | |
| "-m", "/app/LFM2.5-24B-A2B-UD-IQ2_XXS.gguf", \ | |
| "--host", "0.0.0.0", \ | |
| "--port", "7860", \ | |
| "-t", "4", \ | |
| "--cache-type-k", "q8_0", \ | |
| "--cache-type-v", "q8_0", \ | |
| "-c", "10000", \ | |
| "-n", "8096"] |