Using Gemini for batch inference
Prerequisites
Steps
1. Setup environment vars
export GOOGLE_CLOUD_REGION=us-central1
export GOOGLE_CLOUD_PROJECT=<projectname>
export GEMINI_BUCKET_NAME=<bucketname>
export GEMINI_API_KEY=<your_api_key>2. ADC authentication
gcloud auth application-default login3. Create a curator.LLM subclass
3. Configure the Gemini Backend
4. Generate Data
Example Output
instruction
new_response
Gemini Batch Configuration
Last updated