Discover and explore top open-source AI tools and projects—updated daily.
API for the GPT-J language model
Top 82.0% on SourcePulse
This project provides a FastAPI-based API and Streamlit frontend for interacting with the GPT-J language model and its variants. It offers endpoints for text generation and multilingual zero-shot text classification, targeting developers and researchers who need to integrate or test GPT-J capabilities.
How It Works
The API leverages FastAPI for its backend, providing RESTful endpoints for model inference. It exposes a /generate
endpoint for text completion and a /classify
endpoint for zero-shot text classification using provided labels. The project utilizes a Streamlit application for a user-friendly web interface to test these functionalities.
Quick Start & Requirements
pip install -r requirements.txt
wget https://the-eye.eu/public/AI/GPT-J-6B/step_383500_slim.tar.zstd
tar -I zstd -xf step_383500_slim.tar.zstd
python3 serve.py
python3 -m streamlit run streamlit_app.py --server.port 8000
zstd
package.Highlighted Details
token_max_length
, temperature
, and top_p
.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
3 years ago
1 week