Investigations on Transformer Visualizations by the Aether Prototyping and Incubation team
Перейти к файлу
John (Juan) Lema 141a38da11
Added release requirements (#31)
Added source copyright headers
Added CONTRIBUTING.md
2021-07-30 18:58:41 -07:00
development Added release requirements (#31) 2021-07-30 18:58:41 -07:00
frontend Added release requirements (#31) 2021-07-30 18:58:41 -07:00
transformerviz Added release requirements (#31) 2021-07-30 18:58:41 -07:00
.gitignore Implement folding, cleanup unused CSS (#12) 2021-05-25 09:35:53 -07:00
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit 2021-05-12 16:50:47 -07:00
CONTRIBUTING.md Added release requirements (#31) 2021-07-30 18:58:41 -07:00
LICENSE Initial LICENSE commit 2021-05-12 16:50:48 -07:00
README.md Added release requirements (#31) 2021-07-30 18:58:41 -07:00
SECURITY.md Initial SECURITY.md commit 2021-05-12 16:50:49 -07:00
package-lock.json Added release requirements (#31) 2021-07-30 18:58:41 -07:00
package.json Edit text feature (#28) 2021-06-02 11:01:32 -07:00
requirements.txt Project setup (#1) 2021-05-18 17:18:00 -07:00
setup.py Added release requirements (#31) 2021-07-30 18:58:41 -07:00
tsconfig.json Set up webpack dev server, start organizing layout (#2) 2021-05-24 09:56:52 -07:00
webpack.config.js Added release requirements (#31) 2021-07-30 18:58:41 -07:00

README.md

Transformer Visualizations

Investigations on Transformer Visualizations by the Aether Prototyping and Incubation team.

Getting Started

Development Environment Setup

  • python -m pip install --upgrade pip
  • pip install -r requirements.txt --cache-dir <path-to-pip-cache-dir> (The cache-dir parameter is optional).
  • pip install -e .
  • npm install
  • npm run build

Running

PERSPECTIVE_API_KEY=<perspective-api-key> GPT2_MODEL_VERSION=<gpt2-model-version> NUM_RETURN_SEQUENCES=<number-of-return-sequences> TRANSFORMERS_CACHE=<path-to-transformers-cache> FLASK_APP=transformerviz/server.py flask run --host 0.0.0.0 --port 5000 (The TRANSFORMERS_CACHE environment variable is optional).

  • Point your browser to port 5000 of the server on which the app is running.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.