Comments (5)
Thanks for the suggestion @reveching , I have added it to the to-do list at #7 and I'll try to make it after I return from vacation
from gpt-j-api.
I'm also very interested in the feature or any links on its implementation, thanks!
from gpt-j-api.
Hi @6r1d , I have already some working functionality of this, but in another repo: https://github.com/vicgalle/zero-shot-api/blob/main/pipeline.py#L30 In the main.py from there I have some simple examples.
Basically it should work with any model from the transformers library (but I recommend using those from sentence-transformers or summarization models), as it just computes the embedding vector of each query and keys and then computes the cosine similarity between them.
Over the next few days I'll have it integrated and served from this API!
from gpt-j-api.
Amazing, thank you very much, @vicgalle !
Is GPT-j less appropriate for that because of its speed?
from gpt-j-api.
@vicgalle Is this available via the API now? Also is the API able to return embeddings?
from gpt-j-api.
Related Issues (20)
- Minimum System Requirements HOT 1
- Is there a way to get it working on a GPU server? HOT 2
- Raw text... HOT 1
- Zero-shot NER endpoint HOT 1
- Generate multiple sequences HOT 3
- API VM? HOT 1
- How to make the api public? HOT 1
- API server endpoint down. HOT 2
- ValueError: cannot reshape array of size 1 into shape (0,8) HOT 2
- "Sorry, the public API is limited to around 20 queries per every 30 minutes." HOT 3
- API Server Endpoint Down Again HOT 1
- api down HOT 5
- api still down. HOT 1
- Version support for Huggingface GPT-J 6B
- Api Down. HOT 4
- API Still Down
- The website is down.
- I miss vic's api :,) HOT 2
- AssertionError
- API Down HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gpt-j-api.