Skip to content

Commit

Permalink
Adding testing instructions to README
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanMullins committed Oct 11, 2024
1 parent 1d019c7 commit f24b841
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lit_nlp/examples/gcp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pip install -e .

# Optionally, install tetsing requirements
pip install -f ./requirements_test.txt
pytest pytest lit_nlp/examples/gcp
```

### Build the Docker image
Expand All @@ -29,9 +30,3 @@ docker build -f ./lit_nlp/examples/gcp/Dockerfile -t lit-app:gcp-dev .
# Runs GPT-2 in Keras on Tensorflow
docker run --rm -p 5432:5432 -e MODEL_CONFIG=gpt2:gpt2_base_en lit-app:gcp-dev
```

Architectural Notes

* The `LitApp` HTTP API assumes that inputs will be passed around as
identifiers and the reconsituted on the LitApp server before being sent to
the model. The `model_server.py` will not have direct access to the loaded Datasets, and thus the HTTP API assumes that the JSON data passed to its endpoints will be the complete, reconstituted examples from the `LitApp`. The `model_server.py` will send back predictions in full JSON format.

0 comments on commit f24b841

Please sign in to comment.