Skip to content

FM-Leaderboard-er allows you to create leaderboard to find the best LLM/prompt for your own business use case based on your data, task, prompts

License

Notifications You must be signed in to change notification settings

aws-samples/fm-leaderboarder

**⚠️ MAINTENANCE NOTICE **
This project is no longer actively maintained.
While the repository remains available for educational purposes, we recommend exploring more current alternatives for production use:

Additionally, for Latency benchmarking check the code samples for Latency Benchmarking tools for Amazon Bedrock.


FM-Leaderboard-er

Create your own private LLM leaderboard! 📊

Introduction

There's no one-fit-all leaderboard. FM-Leaderboard-er will allow you to find the best LLM for your own business use case based on your own tasks, prompts, and data.

Features:

  1. Tasks - Example notebooks for common tasks like Summarization, Classification, and RAG (coming soon).
  2. Models - Amazon Bedrock, OpenAI, any API (with a code integration).
  3. Metrics - Built-in metrics per task + custom metrics (via a code integration).
  4. Latency - Latency metric per model
  5. Cost - comparison.
  6. Prompt - You could compare several prompts across one model

Getting Started

Prerequisits

  1. AWS account with Amazon Bedrock access to selected models.
  2. Hugging Face access token The code will download Dataset from Huggingface (https://huggingface.co/api/datasets/Salesforce/dialogstudio), this will require an access token, if you don't have one yet, follow these steps:
  • Signup to Hugging Face: https://huggingface.co
  • Generate an access token (save it for further use): https://huggingface.co/settings/tokens
  • Store the access token localy, by installing python lib huggingface_hub and execute from shell:
    > pip install huggingface_hub
    > python -c "from huggingface_hub.hf_api import HfFolder; HfFolder.save_token('YOUR_HUGGINGFACE_TOKEN')"
    

(Verify you now have: ~/.cache/huggingface)

Installation

  1. Clone the repository:
    git clone https://github.com/aws-samples/fm-leaderboarder.git
    

Usage

To get started, open the example-1 notebook and follow the instructions provided.

Architecture

Coming soon.

Dependency on third party libraries and services

This code can interact with the OpenAI service which has terms published here and pricing described here. You should be familiar with the pricing and confirm that your use case complies with the terms before proceeding.

This repository makes use of aws/fmeval Foundation Model Evaluations Library. Please review any license terms applicable to the dataset with your legal team and confirm that your use case complies with the terms before proceeding.

Security

See CONTRIBUTING for more information.

Contributing

Contributions to FM-Leaderboarder are welcome! Please refer to the CONTRIBUTING.md file for guidelines on how to contribute.

Contributors

License

This project is licensed under the Apache-2.0 License.

About

FM-Leaderboard-er allows you to create leaderboard to find the best LLM/prompt for your own business use case based on your data, task, prompts

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published