Discover and explore top open-source AI tools and projects—updated daily.
vicgalleAPI for the GPT-J language model
Top 81.7% 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.txtwget https://the-eye.eu/public/AI/GPT-J-6B/step_383500_slim.tar.zstdtar -I zstd -xf step_383500_slim.tar.zstdpython3 serve.pypython3 -m streamlit run streamlit_app.py --server.port 8000zstd package.Highlighted Details
token_max_length, temperature, and top_p.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
4 years ago
1 week
HendrikStrobelt
theroyallab