From 22fe3e1f71598bf16561fe32b70171e328a7b4bd Mon Sep 17 00:00:00 2001 From: Keming Date: Sat, 5 Aug 2023 09:49:16 +0800 Subject: [PATCH] chore: fix CI docker release tag (#428) Signed-off-by: Keming --- .github/workflows/package.yml | 2 +- README.md | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 0f9a2bb2..29de364d 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -80,7 +80,7 @@ jobs: uses: docker/build-push-action@v4 with: push: true - tags: mosecorg/mosec:${{ github.ref }} + tags: mosecorg/mosec:${{ github.event.ref }} file: Dockerfile platforms: linux/amd64,linux/arm64 cache-from: type=gha diff --git a/README.md b/README.md index 02babe5a..22178c31 100644 --- a/README.md +++ b/README.md @@ -47,12 +47,20 @@ Mosec is a high-performance and flexible model serving framework for building ML ## Installation -Mosec requires Python 3.7 or above. Install the latest [PyPI package](https://pypi.org/project/mosec/) with: +Mosec requires Python 3.7 or above. Install the latest [PyPI package](https://pypi.org/project/mosec/) for Linux x86_64 or macOS x86_64 with: ```shell pip install -U mosec ``` +To build from the source code, install [Rust](https://www.rust-lang.org/) and run the following command: + +```shell +make package +``` + +You will get a mosec wheel in the `/dist` folder. + ## Usage We demonstrate how Mosec can help you easily host a pre-trained stable diffusion model as a service. You need to install [diffusers](https://github.com/huggingface/diffusers) and [transformers](https://github.com/huggingface/transformers) as prerequisites: