Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

如何安装和配置TableGPT Agent?

2025-09-05 1.4 K

Preparation for installation

  • 安装Python 3.8或更高版本
  • 安装Git工具用于克隆仓库
  • 安装vLLM(建议0.5.5版本)以支持高效的模型推理

Detailed installation steps

  1. Cloning GitHub repositories:
    git clone https://github.com/tablegpt/tablegpt-agent.git
    cd tablegpt-agent
  2. Install the dependency packages:
    pip install -r requirements.txt
  3. 如需完整功能,安装额外依赖:
    pip install ".[local]"

Model deployment

需要从Hugging Face下载TableGPT2模型(如TableGPT2-7B),然后使用vLLM启动服务:
python -m vllm.entrypoints.openai.api_server --served-model-name TableGPT2-7B --model path/to/weights
服务将默认监听http://localhost:8000。

Configuring the Agent

编辑代码或配置文件,将LLM的API地址指向vLLM服务:
llm = ChatOpenAI(openai_api_base="http://localhost:8000/v1", openai_api_key="whatever", model_name="TableGPT2-7B")

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top

en_USEnglish