Docker container to expose the OpenAI BPE tokenizer as a REST service. Uses the tiktoken project https://github.com/openai/tiktoken
docker build -t tiktoken-server .
docker run -it -p5000:5000 tiktoken-server
$ curl -d '{"prompt" : "hello world", "model" : "text-davinci-003"}' -H "Content-Type: application/json" http://localhost:5000/tokenize