general

How can I run Tabby as GPU?

Pe

Peter Ahlers

Asked on Nov 04, 2023

To run Tabby as GPU, you can use the --device flag with the value gpu in the command. Here's an example:

services:
  tabby:
    restart: always
    image: tabbyml/tabby
    command: serve --model TabbyML/StarCoder-1B --device gpu
    volumes:
      - "$HOME/.tabby:/data"
    ports:
      - 8080:8080
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 1
              capabilities: [gpu]```
Nov 04, 2023Edited by