12345678910111213141516171819202122 |
- #!/bin/bash
- read -p "Enter the asbolute path to the lm-evaluation-harness: " EVAL_PATH
- conda activate
- DIR="open_llm_leaderboard"
- if [ ! -d "$DIR" ]; then
- echo "Error: Directory '$DIR' not found."
- exit 1
- fi
- for YAML_FILE in "$DIR"/*.yaml
- do
- if [ -f "$YAML_FILE" ]; then
- sed -i 's|{\$EVAL_PATH}|'"$EVAL_PATH"'|g' "$YAML_FILE"
- echo "Updated $YAML_FILE with EVAL_PATH: $EVAL_PATH"
- fi
- done
|