Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM python:3.9.20-slim-bookworm as dev

RUN apt-get update -y \
&& apt-get install -y python3-pip

# Install PDM
RUN pip3 install --upgrade pip
RUN pip3 install pdm

# Set working directory
WORKDIR /workspace

# Copy project files
COPY . /workspace

# Install dependencies using PDM
RUN pdm install

# Run inference-perf (example, adjust as needed)
CMD ["pdm", "run", "inference-perf", "--config_file", "config.yml"]
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ This project is currently in development.

## Getting Started

### Run locally

[PDM Python Package Manager](https://pdm-project.org/latest/) is utilized in this repository for dependecy management.

- Setup virtual environment with `pdm` and install dependencies
Expand All @@ -22,6 +24,21 @@ This project is currently in development.
pdm run inference-perf --config_file config.yml
```

### Run in a Docker container

- Build the container

```
docker build -t inference-perf .
```

- Run the container

```
docker run -it --rm -v $(pwd)/config.yml:/workspace/config.yml inference-perf

```

## Contributing

Our community meeting is weekly at Th 11:30 PDT ([Zoom Link](https://zoom.us/j/9955436256?pwd=Z2FQWU1jeDZkVC9RRTN4TlZyZTBHZz09), [Meeting Notes](https://docs.google.com/document/d/15XSF8q4DShcXIiExDfyiXxAYQslCmOmO2ARSJErVTak/edit?usp=sharing)).
Expand Down