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
- install nodejs
- npm install
npm install vite
- 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
Built Distribution
File details
Details for the file peelml-0.0.0.tar.gz
.
File metadata
- Download URL: peelml-0.0.0.tar.gz
- Upload date:
- Size: 814.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.12 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 273e5ba3316ac2f313db66fbb7e322e783a23b416538f441397bdbc55d3f257a |
|
MD5 | 3bfe2fa72033ac392428f0334be78831 |
|
BLAKE2b-256 | 8538cc4f375bbc197c0fd97566f1aa0e37d7ff3ec0f61c550758cdc2d8f5e596 |
File details
Details for the file peelml-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: peelml-0.0.0-py3-none-any.whl
- Upload date:
- Size: 870.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.12 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7493f19cf7891627121804cebc8af2483d048fd845a80e27c8dc2eed8ed32d13 |
|
MD5 | 356a3946335a9e69b91750250431068f |
|
BLAKE2b-256 | a60a95a8de9fcb471fbe4027da3b37310965fd405157bf26bb8c64af420a048e |