TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: I made a free-to-use GPT-2 API

70 pointsby eduntemanover 4 years ago

7 comments

eduntemanover 4 years ago
Hey HN, I recently launched this GPT-2 API, and figured you&#x27;d be into it.<p>The goal is simplicity, so you hit the endpoint with a one-line call from the Python client.<p>Here&#x27;s a demo of pip install, code, and use. <a href="https:&#x2F;&#x2F;www.loom.com&#x2F;share&#x2F;c09c9ca228644345852544808decd864" rel="nofollow">https:&#x2F;&#x2F;www.loom.com&#x2F;share&#x2F;c09c9ca228644345852544808decd864</a><p>This API is the first API from <a href="https:&#x2F;&#x2F;www.booste.io" rel="nofollow">https:&#x2F;&#x2F;www.booste.io</a>, where my mission is to make the ML stack as simple as Stripe made the payments stack. One-line API clients.<p>Lots on the roadmap (Node client, using larger GPT-2 model, PPLM for long-content generation, running on GPUs, hosting other models such as BERT), but there&#x27;s no time like the present to put something out there.<p>Let me know your thoughts :)<p>(edit: fixed link)
eduntemanover 4 years ago
UPDATE: First time launching this to larger audience, and hitting infra limits. It&#x27;s self healing, but please be patient if an error throws; try back in 3 minutes. I&#x27;m working to remedy it now.
评论 #24562357 未加载
rahimnathwaniover 4 years ago
Related, Fabrice Bellard developed a C program for GPT-2 inference. It&#x27;s not open source, but the binary is free to download, and can use any pretrained GPT-2 model:<p><a href="https:&#x2F;&#x2F;bellard.org&#x2F;nncp&#x2F;gpt2tc.html" rel="nofollow">https:&#x2F;&#x2F;bellard.org&#x2F;nncp&#x2F;gpt2tc.html</a><p>I tried it using a GPT-2 model I&#x27;d finetuned, and it worked well.<p>I started making a simple chatbot with it using Python: at each step, I fed in the conversation so far, and a speaker prompt (e.g. PERSON2:), and read the output until I saw PERSON1: appear. Rinse and repeat.<p>Unfortunately, I got stuck with some text encoding issue between python and the CLI binary. I tried obvious things like forcing the decode to use UTF-8, but after a couple of steps I always ended up receiving some characters that weren&#x27;t valid.<p>I didn&#x27;t have this problem when running the binary from the command line, so it must have been something to do with how I was using python popen.
ghoomketuover 4 years ago
This looks very cool.<p>It says on the website &quot;Predict the next word(s) from a given sequence of words.&quot; Speaking as someone who has very little programming knowledge, would it be possible to use this to create a gmail like auto-complete with this? If so, how can I make it so that the words generated resemble my own writing style (like gmail auto-complete does?).
评论 #24562037 未加载
评论 #24561920 未加载
furqanrydhanover 4 years ago
This is cool, adding any CV models soon? Have a couple idea&#x27;s around video streams and fitness that i&#x27;d like to explore
评论 #24561575 未加载
single_sourceover 4 years ago
Is this open source? Any link to a repo?
评论 #24562102 未加载
efrank02over 4 years ago
How much will this cost you each month?
评论 #24562151 未加载