Spaces:
Running
Running
A newer version of the Gradio SDK is available:
5.33.1
metadata
title: OptiPFair Bias Visualization Tool
emoji: π
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.29.1
app_file: app.py
pinned: false
license: apache-2.0
π OptiPFair Bias Visualization Tool
Analyze potential biases in Large Language Models using advanced visualization techniques.
π― Features
- PCA Analysis: Visualize how model representations differ between prompt pairs in 2D space
- Mean Difference: Compare average activation differences across all layers
- Heatmap: Detailed visualization of activation patterns in specific layers
- Model Support: Compatible with LLaMA, Gemma, Qwen, and custom HuggingFace models
- Predefined Scenarios: Ready-to-use bias testing scenarios for racial bias analysis
π How to Use
- Check Backend Status: Verify the system is ready
- Select Model: Choose from predefined models or specify a custom HuggingFace model
- Choose Analysis Type: Pick PCA, Mean Difference, or Heatmap visualization
- Configure Parameters: Select scenarios, component types, and layer numbers
- Generate Visualization: Click generate and download results
π Resources
- OptipFair Library - Main repository
- Documentation - Official docs
- LLM Reference Manual - Complete guide for using OptipFair with LLMs (ChatGPT, Claude, etc.)
π€ For Developers
π€ For Developers
Want to integrate OptipFair in your own projects? Check out the LLM Reference Manual.
- Just give the LLM Reference Manual to your favourite LLM and start working with optipfair.
Built with β€οΈ using OptipFair library.