CorrSteer Frontend
Overview
CorrSteer demonstrates how text classification datasets can be used to steer large language models (LLMs), correlating with SAE (Sparse Autoencoder) features. This demo incorporates a modern tech stack for a seamless and efficient experience.
How to Run the Demo
Set Environment Variables: Create a
.env
file in thedemo
directory and include the following:VITE_API_BASE_URL=<your-api-url>
Install Dependencies:
pnpm i
Start the Development Server:
pnpm dev
The application will be available at
http://localhost:5173
by default.Build for Production (Optional):
pnpm build pnpm preview
Key Features
- Dataset & Model Selection: Select datasets and models using dropdown menus.
- Streaming Outputs: Generate outputs from multiple models with live updates as data streams.
- Interactive Tabs: Switch between different categories for customized prompts.
Technology Stack
Vite:
- Development server and build tool.
React:
- UI library for building components and managing state.
Tailwind CSS:
- CSS framework for styling.
ShadCN/UI:
- Pre-built component library for UI elements.
License
This project is licensed under the MIT License. ```