Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM python:3.12.9-slim-bookworm as dev

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

# Upgrade pip
RUN pip3 install --upgrade pip

# Set working directory
WORKDIR /workspace

# Copy project files
COPY . /workspace

# Install dependencies
RUN pip install -e .

# Run inference-perf
CMD ["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