demo / backend /tests /run_bench.py
tfrere's picture
update lighteval results
39acd70
raw
history blame
527 Bytes
import subprocess
import os
from dotenv import load_dotenv
import time
# Load environment variables from .env
load_dotenv()
# Configuration file path
config_path = "data/config.yml"
# Command to run
command = ["yourbench", "run", "--config", config_path]
# Start timer
start_time = time.time()
# Run the command with environment variables
subprocess.run(command, env=os.environ)
# Calculate and print execution time
execution_time = time.time() - start_time
print(f"\nTemps d'exécution : {execution_time:.2f} secondes")