Skip to content

Latest commit

 

History

History

server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Python server

Note: On macOS, MPS requires Torch nightly.

Usage:

python server.py -p 8080 --model

Call the API using curl:

curl -X POST localhost:8080/generate --data "{ 'prompt': 'def ping_with_back_off():\n  ' }"