oneuptime/docker-compose.ai.yml
Simon Larsen 97cc28b182 refactor: Update Dockerfile.tpl to use huggingface/transformers-pytorch-gpu image
This commit updates the Dockerfile.tpl to use the huggingface/transformers-pytorch-gpu image instead of the continuumio/anaconda3 image. This change allows the Llama app to utilize GPU resources for improved performance in AI processing. Additionally, the unnecessary installation of the transformers and accelerate libraries is removed as they are already included in the huggingface/transformers-pytorch-gpu image.
2024-06-19 13:06:23 +00:00

22 lines
418 B
YAML

services:
llama:
extends:
file: ./docker-compose.base.yml
service: llama
ports:
- '8547:8547'
build:
network: host
context: .
dockerfile: ./Llama/Dockerfile
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
networks:
oneuptime:
driver: bridge