forked from microsoft/nlp-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request microsoft#437 from microsoft/staging
Staging to Master
- Loading branch information
Showing
27 changed files
with
358 additions
and
296 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,19 +10,25 @@ For training at scale, operationalization or hyperparameter tuning, it is recomm | |
## Table of Contents | ||
|
||
* [Compute environments](#compute-environments) | ||
* [Setup guide for Local or DSVM](#setup-guide-for-local-or-dsvm-machines) | ||
* [Create a cloud-based workstation (Optional)](#Create-a-cloud-based-workstation-optional) | ||
* [Setup guide for Local or Virtual Machines](#setup-guide-for-local-or-virtual-machines) | ||
* [Requirements](#requirements) | ||
* [Dependencies setup](#dependencies-setup) | ||
* [Register the conda environment in the DSVM JupyterHub](#register-conda-environment-in-dsvm-jupyterhub) | ||
* [Installing the Repo's Utils via PIP](#installing-the-repo's-utils-via-pip) | ||
* [Installing the Repo's Utils via PIP](#installing-the-repos-utils-via-pip) | ||
|
||
|
||
## Compute Environments | ||
|
||
Depending on the type of NLP system and the notebook that needs to be run, there are different computational requirements. Currently, this repository supports **Python CPU** and **Python GPU**. A conda environment YAML file can be generated for either CPU or GPU environments as shown below in the *Dependencies Setup* section. | ||
|
||
## Create a cloud-based workstation (Optional) | ||
|
||
## Setup Guide for Local or DSVM Machines | ||
[Azure Machine Learning service](https://azure.microsoft.com/en-us/services/machine-learning-service/)’s Notebook Virtual Machine (VM), is a cloud-based workstation created specifically for data scientists. Notebook VM based authoring is directly integrated into Azure Machine Learning service, providing a code-first experience for Python developers to conveniently build and deploy models in the workspace. Developers and data scientists can perform every operation supported by the Azure Machine Learning Python SDK using a familiar Jupyter notebook in a secure, enterprise-ready environment. Notebook VM is secure and easy-to-use, preconfigured for machine learning, and fully customizable. | ||
|
||
You can learn how to create a Notebook VM [here](https://docs.microsoft.com/en-us/azure/machine-learning/service/tutorial-1st-experiment-sdk-setup#azure) and then follow the same setup as in the [Setup guide for Local or DSVM](#setup-guide-for-local-or-dsvm-machines) directly using the terminal in the Notebook VM. | ||
|
||
## Setup Guide for Local or Virtual Machines | ||
|
||
### Requirements | ||
|
||
|
@@ -96,13 +102,15 @@ If you are using the DSVM, you can [connect to JupyterHub](https://docs.microsof | |
<p> | ||
A setup.py file is provided in order to simplify the installation of this utilities in this repo from the main directory. | ||
|
||
To install, please run the command below | ||
To install the package, please run the command below (from directory root) | ||
|
||
pip install -e . | ||
|
||
python setup.py install | ||
Running the command tells pip to install the `utils_nlp` package from source in [development mode](https://setuptools.readthedocs.io/en/latest/setuptools.html#development-mode). This just means that any updates to `utils_nlp` source directory will immediately be reflected in the installed package without needing to reinstall; a very useful practice for a package with constant updates. | ||
|
||
It is also possible to install directly from Github, which is the best way to utilize the `utils_nlp` package in external projects. | ||
> It is also possible to install directly from Github, which is the best way to utilize the `utils_nlp` package in external projects (while still reflecting updates to the source as it's installed as an editable `'-e'` package). | ||
pip install -e [email protected]:microsoft/nlp.git@master#egg=utils_nlp | ||
> `pip install -e [email protected]:microsoft/nlp.git@master#egg=utils_nlp` | ||
Either command, from above, makes `utils_nlp` available in your conda virtual environment. You can verify it was properly installed by running: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.