{"id":27289930,"url":"https://github.com/elefthei/webtorch","last_synced_at":"2026-03-06T09:31:03.758Z","repository":{"id":70064407,"uuid":"102425448","full_name":"elefthei/WebTorch","owner":"elefthei","description":"A Deep Learning HTTP server based on nginx","archived":false,"fork":false,"pushed_at":"2018-09-10T18:04:40.000Z","size":85,"stargazers_count":5,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T14:46:48.490Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elefthei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-09-05T02:42:14.000Z","updated_at":"2021-07-19T10:49:50.000Z","dependencies_parsed_at":"2023-02-21T22:00:21.006Z","dependency_job_id":null,"html_url":"https://github.com/elefthei/WebTorch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/elefthei/WebTorch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elefthei%2FWebTorch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elefthei%2FWebTorch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elefthei%2FWebTorch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elefthei%2FWebTorch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elefthei","download_url":"https://codeload.github.com/elefthei/WebTorch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elefthei%2FWebTorch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30168966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-11T21:19:46.349Z","updated_at":"2026-03-06T09:31:03.277Z","avatar_url":"https://github.com/elefthei.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/elefthei/WebTorch.svg?branch=master)](https://travis-ci.org/elefthei/WebTorch) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/elefthei/WebTorch/issues)\n\n![WebTorch logo](https://elefthei.github.io/assets/css/images/webtorch.jpg)\n\nWebTorch takes advantage of the versatile LuaJIT compiler to bring together Nginx and Torch, creating an equivalent system to Tensorflow serve, but based on a RESTful API instead of protobuf. Multiple data formats are supported (tensors, images etc.) \n\n## Building WebTorch container\n\nBuilding (docker/nvidia-docker):\n```\ndocker build -t webtorch .\n```\n\n## Running WebTorch container\n\nRunning daemon(docker/nvidia-docker):\n```\ndocker run -p 3000:3000 -d webtorch\n```\n\nRunning in debug(docker/nvidia-docker):\n```\ndocker run -p 3000:3000 -it webtorch\n```\n\n## Usage:\n\n### GET /v1/train\nWill train the XOR neural network with a single random (input1, input2) sample.\n```\n$ curl http://localhost:3000/v1/train\n```\n\n### POST /v1/train\n*Body*: 2D serialized Torch tensor (see `benchmarks/script/train.lua` for example)\nWill train the XOR neural network with a serialized 2D Torch tensor sample.\n```\n$ wrk -t12 -c400 -d30s -s benchmarks/scripts/train.lua http://localhost:3000/v1/train\n```\n\n### GET /v1/output\nWill get the result of the trained XOR network on (0.5, 0.5)\n```\n$ curl http://localhost:3000/v1/output\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felefthei%2Fwebtorch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felefthei%2Fwebtorch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felefthei%2Fwebtorch/lists"}