clefourrier's picture
clefourrier HF staff
Update README.md
cfa60a8 verified

A newer version of the Gradio SDK is available: 5.9.1

Upgrade
metadata
title: LLM Safety Leaderboard
emoji: 🥇
colorFrom: green
colorTo: indigo
sdk: gradio
sdk_version: 4.37.1
app_file: app.py
pinned: true
license: apache-2.0
tags:
  - leaderboard

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

Most of the variables to change for a default leaderboard are in env (replace the path for your leaderboard) and src/display/about.

Results files should have the following format:

{
    "config": {
        "model_dtype": "torch.float16", # or torch.bfloat16 or 8bit or 4bit
        "model_name": "path of the model on the hub: org/model",
        "model_sha": "revision on the hub",
    },
    "results": {
        "task_name": {
            "metric_name": score,
        },
        "task_name2": {
            "metric_name": score,
        }
    }
}

Request files are created automatically by this tool.