Spaces:
Runtime error
Runtime error
Download Dockerfile from adaptiveaiventures/llama2-interference: direct link, hf CLI and curl.
- Browser
- Download file 325 Bytes
-
https://huggingface.co/spaces/adaptiveaiventures/llama2-interference/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/adaptiveaiventures/llama2-interference/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/adaptiveaiventures/llama2-interference/resolve/main/Dockerfile
325 Bytes
| FROM ghcr.io/huggingface/text-generation-inference:latest | |
| # Define a pre-existing Hugging Face model | |
| ENV MODEL_ID="gpt2" | |
| # Use a writable cache directory | |
| ENV HF_HOME="/tmp" | |
| ENV TRANSFORMERS_CACHE="/tmp" | |
| ENV HUGGINGFACE_HUB_CACHE="/tmp" | |
| # Run the TGI server | |
| CMD ["--model-id", "gpt2", "--port", "8080", "--num-shard", "1"] | |