jnm38/llm-safety-assessment
0
LLM Safety Evaluation Space
This Hugging Face Space allows you to evaluate the safety of Large Language Models (LLMs) by generating responses to prompts from safety datasets.
Features
- Load and evaluate various LLMs (e.g., SmolLM, Llama)
- Use safety datasets like AgentHarm, HH-RLHF, etc.
- Customize sampling parameters (temperature, max tokens, etc.)
- View results in JSON format
Usage
- Enter the model name (Hugging Face model ID).
- Specify the dataset name and optional config/split.
- Set the number of samples and generation parameters.
- Click "Run Evaluation" to generate responses.
- View the results showing prompts and model responses.
Requirements
- GPU-enabled Space for vLLM compatibility.
- HF_TOKEN secret for accessing private models/datasets (optional).
Note
This is a demo for evaluating LLM safety. Ensure compliance with dataset licenses and ethical guidelines.
