fair-forge-lambda

Deploy Fair-Forge modules as AWS Lambda containers with API gateway.

Updated May 7, 2025
One-click install
npx skills add https://github.com/Alquimia-ai/fair-forge --skill fair-forge-lambda
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fair-forge-lambda
Source: https://github.com/Alquimia-ai/fair-forge/tree/main/.claude/skills/fair-forge-lambda
Command: npx skills add https://github.com/Alquimia-ai/fair-forge --skill fair-forge-lambda

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Deploy Fair-Forge modules as AWS Lambda containers with pre-built wheels and an API gateway.

Core Features & Use Cases

  • Supports metrics (BestOf, Toxicity, Bias), runners, and generators deployments to Lambda.
  • Includes guidelines to build Docker image, push to ECR, create IAM role, deploy API Gateway, and provide invoke URL.
  • Handles local wheel installation since Fair-Forge is not on PyPI.

Quick Start

Run the deploy script in the module's aws-lambda directory to build and deploy the Lambda container.

Frequently Asked Questions about fair-forge-lambda

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy Python modules to AWS Lambda when the package is not on PyPI?

To deploy Python modules not on PyPI to AWS Lambda, you can package them as container images with pre-built wheels. This approach bundles local dependencies directly into a Docker image, which is then pushed to ECR and deployed as a Lambda function with an API Gateway.

What's the best way to deploy Fair-Forge metrics and runners as serverless API endpoints?

The best way to deploy Fair-Forge metrics and runners as serverless API endpoints is using AWS Lambda containers. You build a Docker image with pre-built wheels, push it to ECR, and create an API Gateway to expose the runners and generators via HTTP endpoints.

Do I need Docker and AWS CLI configured to deploy serverless containers with this approach?

Yes, you need Docker and AWS CLI configured to deploy these serverless containers. Proper IAM permissions are also required to create ECR repositories, IAM roles, Lambda functions, and HTTP APIs for the deployment to succeed.

Can I run local tests on Fair-Forge modules before deploying them to AWS Lambda?

Yes, you can run local tests on Fair-Forge modules before deploying them to AWS Lambda. The deployment process includes guidelines for building the Docker image locally, allowing you to validate metrics, runners, and generators before pushing to ECR and creating the API Gateway.

How does deploying Fair-Forge as AWS Lambda containers handle multi-region scalability?

Deploying Fair-Forge as AWS Lambda containers handles multi-region scalability by leveraging AWS serverless infrastructure. Once the container is pushed to ECR and the API Gateway is configured, the Lambda functions can scale automatically across regions to handle varying loads.

Why are pre-built wheels required for deploying local repositories to Lambda?

Pre-built wheels are required for deploying local repositories to Lambda because the source package is not available on PyPI. Installing wheels directly into the Docker image ensures all dependencies are resolved and bundled correctly for the AWS Lambda container environment.