Skip to content

A purpose-built Docker container to package fastText as a Lambda Layer. Serverless machine learning FTW.

License

Notifications You must be signed in to change notification settings

dsudduth/fasttext-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fastText Lambda

logo

A purpose-built Docker container to compile and bundle fastText for use with AWS Lambda.

QuickStart

docker login ...
docker pull

docker run -v "$(pwd):/src/" fasttext-lambda:latest

When executed, the container will generate a zip file containing a new lambda layer.The archive will be stored locally in ./dist/layers.

Description

This container leverages amazonlinux:2 as its base, allowing fastText can be compiled in a similar environment to AWS Lambda. Without this, fastText will fail to resolve linked libraries and dependencies. As an output, this container produces a pre-packaged lambda layer ready to upload.

Supported Runtimes

At this time only the python3.8 runtime is supported.

Building the container

To build the container, clone this repository and build the container.

docker build -t fasttext-lambda .

Versioning

We use SemVer for versioning.

About

A purpose-built Docker container to package fastText as a Lambda Layer. Serverless machine learning FTW.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published