Skip to content

generating names rnn

KimJeongChul edited this page Apr 29, 2019 · 1 revision

Generating Names- RNN

Library : (boto3 / azure.functions, azure.storage.file / google.cloud.storage), pickle, numpy, torch, rnn, time, os

  • aws : build your deployment package

aws-build-deployment-package -> torch, pickle, numpy

  • google: x

  • azure: x

Workload Input: Text

Workload Output: json

Lambda payload(test-event) example:

language : text(example: Italian, German, Portuguese, Chinese, Greek, Polish, French, English, Spanish, Arabic, Crech, Russian, Irish, Dutch, Scottish, Vietnamese, Korean, Japanese)

start_letters : text (example: 'ABCDEFGHIJKLMNOP'

rnn model_parameters : rnn_params.pkl

rnn model : rnn_model.pth

{
    "language": [LANGUAGE],
    "start_letters": [START_LETTERS],
    "model_bucket": [MODEL_BUCKET_NAME],
    "model_object_key": [MODEL_OBJECT_KEY],
    "model_parameter_object_key": [MODEL_PARAMETER_OBJECT_KEY]
}

Lambda Output : prediction, latency

Clone this wiki locally