Yusong Gaoinitial released0d49a92 years agoHistory
20 lines · 483 B · Shell
RawDownload
#!/bin/bash # Get the current timecurrent_time=$(date +"%Y%m%d_%H%M%S") # Get the latest git commit hashlatest_commit=$(git rev-parse --short HEAD) # Create the perf directory if it doesn't existmkdir -p perf # Define the output file nameoutput_file="perf/${current_time}_${latest_commit}.txt" # Run ./test_gpt2 and save the output to both the file and the console./test_gpt2 | tee "$output_file" # Print a completion messageecho "Output has been saved to $output_file"