forked from EvolvingLMMs-Lab/lmms-eval
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Loggings] update logging logic (EvolvingLMMs-Lab#54)
* [Fix] rearrange location of init eval_logger * Ignore DeprecationWarnings in lmms_eval/__main__.py and lmms_eval/models/fuyu.py * Update lmms_eval/__main__.py and lmms_eval/utils.py * update * Update llava.py with LLaVA model imports and error handling * Add and test new datasets * update * Update wandb version and require report-editing:v0 * Add support for logging samples to Weights and Biases This commit adds a new command-line argument `--wandb_log_samples` to enable logging all model outputs and documents for per-sample measurement and post-hoc analysis to Weights and Biases. The `cli_evaluate` function has been modified to handle this new argument and log the samples if the argument is set to True. The `wandb_logger` object has also been updated to include a new method `log_eval_samples` for logging the samples. This enhancement improves the functionality of the LMMS evaluation tool. * update
- Loading branch information
Showing
12 changed files
with
436 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Where should we write the GIF? | ||
Output demo.gif | ||
|
||
# Set up a 1200x600 terminal with 46px font. | ||
Set FontSize 24 | ||
Set Width 1440 | ||
Set Height 2560 | ||
Set WindowBar Colorful | ||
Set LoopOffset 5 # Start the GIF at the 5th frame | ||
Set Framerate 6 | ||
Set TypingSpeed 15ms | ||
|
||
# Type a command in the terminal. | ||
Type "python -m accelerate.commands.launch --main_process_port=12350 --num_processes=8 lmms_eval --model=llava --model_args=pretrained=liuhaotian/llava-v1.5-7b --tasks=mme --limit=8 --batch_size=1 --log_samples --log_samples_suffix=demo --output_path=./logs/" | ||
Enter | ||
# Admire the output for a bit. | ||
Sleep 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.