gpt_academic
by binary-husky
Chinese-language interface for large language models focused on reading, polishing and translating academic papers.
- Stars
- 71,713 stars
- Forks
- 8.3k forks
- Last push
- 10 months ago
- Activity
- Slowing down
# Download the project$ git clone --depth=1 https://github.com/binary-husky/gpt_academic.git
cd gpt_academic# Install and run$ python -m pip install -r requirements.txt
python main.pyCommands from the project's README. Run them after installing (see below).
Overview
Understand gpt_academic in 60 seconds
- What it does
- GPT Academic is a web app that puts large language models to work on academic tasks. Its one-click plugins translate and polish papers, read LaTeX and PDF papers and summarise them, translate arXiv articles, explain code and generate comments.
- The problem it solves
- Researchers spend hours translating papers, fixing grammar in LaTeX and summarising long PDFs. GPT Academic bundles those jobs as plugins in one interface, with your choice of OpenAI or Chinese models like Qwen and GLM.
- Why choose it
- Choose it for a large set of ready-made academic plugins, from arXiv translation to LaTeX proofreading, with support for many model providers in one app. The main README is in Chinese, with English and other translations in the docs folder.
- Who should use it
- Researchers and students writing papers
- Readers translating English or Chinese papers
- Developers analysing unfamiliar codebases
- Users of Chinese LLMs such as Qwen and GLM
- Setup difficulty
You'll need:
- Python 3.9 to 3.11
- An LLM API key (OpenAI, Qwen, GLM and others)
- Docker as an alternative
How gpt_academic works
You set API keys and options in config.py, or better in a private config_private.py that overrides it, or through environment variables. Several API keys can coexist, for example OpenAI and Azure keys in one setting.
Plugins cover paper translation and polishing, full PDF translation, arXiv paper translation, LaTeX grammar checking, Google Scholar related-work drafting, project code analysis, batch comment generation and Mermaid diagram rendering. Formulas show in both TeX and rendered form.
Optional extras add local models like ChatGLM and MOSS, which need more dependencies and a strong GPU. Several Docker images cover different capability sets. The project is GPL-3.0 licensed.
Features
Key features
Paper translation
Translate PDF, LaTeX and arXiv papers.
Polishing and proofreading
Grammar and style fixes for papers.
Code analysis
Explain a project or generate comments.
Many models
OpenAI, Qwen, GLM, local models and more.
Plugin system
Hot-reloadable custom plugins.
Formula display
TeX and rendered formulas side by side.
Strengths
- Large set of academic plugins
- Supports Chinese and Western models
- Docker and local install options
- Open source
Limitations
- Main README is in Chinese
- Local models need extra setup and a strong GPU
- GPL-3.0 license
Practical use cases
Translate a paper
Translate an arXiv or PDF paper in one click.
Proofread LaTeX
Check grammar and spelling and output a comparison PDF.
Understand a codebase
Analyse a project tree with a plugin.
Installation
Install gpt_academic
Commands come from GPT Academic's README. AIRepoHub hasn't run them yet. View source
Prerequisites
- Python 3.9 to 3.11
- git
- An LLM API key
Supported systems
- Windows
- macOS
- Linux
- 1
Download the project
Shellgit clone --depth=1 https://github.com/binary-husky/gpt_academic.gitcd gpt_academic - 2
Set your API key
Put API_KEY and other settings in config_private.py (it overrides config.py) or in environment variables.
- 3
Install dependencies
Use the exact versions in requirements.txt.
Shellpython -m pip install -r requirements.txt - 4
Start the app
Shellpython main.py
- 1
Create and activate an environment
Shellconda create -n gptac_venv python=3.11conda activate gptac_venv - 2
Install dependencies and run
Shellpython -m pip install -r requirements.txtpython main.py
- 1
Choose a scheme in docker-compose.yml
Keep the scheme you want (for example scheme 1, online models only, recommended for most people) and delete the others.
- 2
Start it
Shelldocker-compose up
Configuration and API keys
| Setting | What it's for |
|---|---|
API_KEYRequired | Your model provider key(s), set in config_private.py, config.py or the environment; several keys can be comma-separated. |
First run
- 1
Start the app and open the address it prints
Shellpython main.py
gpt_academic's documentation doesn't include sample output, so we don't show any. Expect the results in your terminal.
Your first project
Translate an arXiv paper
Use the arXiv plugin to translate a paper's abstract and download its PDF.
Before you start
- GPT Academic running
- An API key configured
- 1
Start the app
Shellpython main.py - 2
Pick the arXiv helper plugin
Paste an arXiv article URL into the input box and run the plugin.
What to expect
The plugin translates the abstract and downloads the paper's PDF.
Next steps
- Try full PDF translation
- Proofread a LaTeX paper
- Switch to a different model in config
Costs and requirements
What it costs to run
- Software
- Free and open source under GPL-3.0.Free
- Model usage
- Your LLM provider bills for API calls; local models are free but need a strong GPU.Depends
Troubleshooting
Common setup issues
Dependency errors
Install the exact versions pinned in requirements.txt; Python 3.9 to 3.11 is recommended.
Settings not applied
Settings in config_private.py override config.py; check you edited the right file.
ChatGLM fails to load
Local models need extra requirements files and enough GPU memory; see the README's optional steps.
Alternatives
Similar AI repositories
langflow
langflow-ai
Visual builder for creating and deploying AI agents and workflows by connecting blocks instead of writing code.
humanizer
blader
Agent skill that edits text to remove the typical signs of AI-generated writing.
openclaw
openclaw
Personal AI assistant you run yourself that can carry out tasks for you on any operating system or platform.
open-webui
open-webui
Self-hosted chat interface for Ollama and OpenAI-compatible models.