Feature/vlm finetune - #13
Merged
Merged
Conversation
Rouzbehat78
force-pushed
the
feature/vlm-finetune
branch
from
March 9, 2026 15:28
4c54c4b to
558446f
Compare
Rouzbehat78
force-pushed
the
feature/vlm-finetune
branch
from
March 23, 2026 18:16
0d29037 to
b94aa98
Compare
…nting to multiple parquets
…o a python parsed list. Validate_loader will calidate the schema after preporcessing on sample rows, differnet pre-processsing can be added and functions are callable from the config.yaml
…s to run full eval on various benchmarks and log into wand to track progress and catastrophic forgetting
…o accelatrot dataloader
…mat/correctness of parsing of predicitons
…ame functionality to convert and parse json strings and align with expected HF schema
…to run full eval/benchmark on the eval dataset with their metrics
…t or latest that resolves to last run latest checkppoint
…ext only val datasets
…ashed instead of succesfful/completed
…ldnt be empty at end of train epoch
…tc. So tests have to adhere ot the changes
Rouzbehat78
force-pushed
the
feature/vlm-finetune
branch
from
March 23, 2026 23:24
32c566d to
e4f9902
Compare
…nchmarks Move count += 1 inside try block so failed samples are excluded from the denominator. Change hardcoded "cuda" to device.type in VLM autocast to match LLM benchmarks.
Use self.args.per_device_train_batch_size instead of self._train_batch_size which HF Trainer auto-multiplies by world_size, causing double-sharding with Ray.
Eliminates 4 identical evaluate() loops across benchmark subclasses. Subclasses now only implement load_samples() and score_sample().
…r on missing metric Use **kwargs consistently for both logprob and generation paths. Replace vestigial "type" with "metric" in _FACTORY_KEYS. Raise ValueError on missing or unknown metric instead of silently skipping. Remove redundant image_root double-handling in VLM factory.
… logger Remove file-level docstrings from all evaluation module files. Convert logger.info(f"...") to %s style in training loops and trainer_mixins. Replace print() with logger.warning() in config_parser. Fix section header style to use === convention.
Test eval data loaders (format detection, JSONL/JSON loading, limit, normalization, legacy format conversion). Test benchmark base class (failure exclusion, sample caching). Test benchmark config passthrough in YAML parsing.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several enhancements and improvements to the
leap-finetunetraining pipeline, with a focus on evaluation benchmarks, dataset loading robustness, and documentation clarity. The most significant changes are the addition of automatic evaluation benchmarks during training, improved support for loading datasets from directories of Parquet files, and expanded documentation for both users and developers.Bug FIX
Bug fixed for per trainer batch size was automatically initalized by HF Trainer self._trainer_batch_size to number of GPUs => fixed now reads the batchsize from configs and global/local steps calculation is being done correclty.
Evaluation Benchmarks Integration
README.md,base.py,callback.py, and an updated__init__.py, enabling automatic benchmark evaluation during training with distributed all-reduce and wandb logging. [1] [2] [3] [4]short_answer,logprob_zero_shot,mcq_genand etc), and are fully integrated with HuggingFace Trainer callbacks.** Resumption of Training **
Dataset Loading Robustness
Documentation and Usability