This repository contains Python scripts for running model inference using APIs from the CBorg platform at Lawrence Berkeley National Laboratory (LBL) and the American Science Cloud (AmSC).
.
└── Inference/
├── AmSC
└── CBorgLBL
The scripts in this repository demonstrate how to send prompts to remotely hosted models using API endpoints and retrieve the generated responses. They are intended as simple utilities for experimentation, benchmarking, and automated evaluation workflows.
- Python 3.9+
- Python packages:
openaiargparse
Install dependencies with:
pip install openaiAccess to the APIs requires authentication keys provided by the respective services.
Example (AmSC):
export AMSC_API_KEY=<your_api_key>These scripts are intended for:
- Testing and benchmarking models hosted on CBorg (LBL) and AmSC
- Running prompt-based experiments
- Automating inference workflows from the command line
- API keys must be configured through environment variables.
- Model availability depends on the hosting platform.