Skip to main content

Peel away the pain of ml deployment

Project description

peelml

peelml away the pain of ml deployment

Development

1. Setup and Build

1.1 build backend

git clone https://github.com/CambioML/peelml.git
conda create -n peelml python=3.10
conda activate peelml
cd peelml
pip install poetry
pip install git+https://github.com/UKPLab/sentence-transformers.git@179b659621c680371394d507683b25ba7faa0dd8
poetry install --no-root # no root to not install peelml as a package

1.2 build frontend

  1. install nodejs
  2. npm install npm install vite
  3. cd into client folder and npm run build

2. Run

2.1 Option 1: run the server and client directly without cli

Before you start running the command below, go to server.py and upate

os.environ["OPENAI_API_KEY"] = ""

After that, run the following command

python -m peelml.server

2.2 Option 2: run the cli command

This is a interactive cli to ask you to input required environment parameters. It will then start the server and client for you.

python -m peelml.cli start

3. Install

install peelml into site-packages like a pip install

poetry install
peelml start

P.S: If you build and pip install for local test, your changes will not reflect in peelml site-packages. Therefore, you have to pip3 uninstall peelml, built it again, and the install.

Use

pip install git+https://github.com/UKPLab/sentence-transformers.git@179b659621c680371394d507683b25ba7faa0dd8
pip install peelml

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

peelml-0.0.2.tar.gz (813.7 kB view details)

Uploaded Source

Built Distribution

peelml-0.0.2-py3-none-any.whl (870.4 kB view details)

Uploaded Python 3

File details

Details for the file peelml-0.0.2.tar.gz.

File metadata

  • Download URL: peelml-0.0.2.tar.gz
  • Upload date:
  • Size: 813.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.12 Darwin/22.4.0

File hashes

Hashes for peelml-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9626316c3a25b27b182eaf696b3686d8860c254bc18e5608d794673b694578df
MD5 f226b0be732d6608482d0ff68e0dba5c
BLAKE2b-256 675f13b4669b98d118d14b48474fc039cdefa43ae8500eddc91805ff289f92bb

See more details on using hashes here.

File details

Details for the file peelml-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: peelml-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 870.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.12 Darwin/22.4.0

File hashes

Hashes for peelml-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a27b51ef9bf4bca98b3347fa69db97cc988519037a68820017059433ceb31b1f
MD5 37d999ecc14da6cb1841bc61cc449540
BLAKE2b-256 2a00bda3a7d686430060172a6866af4768d7aadf5d29f4251965288beca5ba9e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page