feat(sensenova): add validated OCR LoRA training recipe - #407
Draft
leviking98z-rgb wants to merge 1 commit into
Draft
feat(sensenova): add validated OCR LoRA training recipe#407leviking98z-rgb wants to merge 1 commit into
leviking98z-rgb wants to merge 1 commit into
Conversation
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.
Summary
sensenova/SenseNova-U1.5-8B-MoT-SFTusing LoRA rank 64 / alpha 128, learning rate3e-4, six samples per prompt, 320×320 generation, six inference steps, and 300 rolloutsevaldependencies and installation docs with the OCR implementationRelated Issue
N/A
Test Plan
python3.12 -m compileall -q unirlSKIP=no-commit-to-branch pre-commit run --files INSTALL.md datasets/ocr/README.md datasets/ocr/short_text_test.txt datasets/ocr/short_text_train.txt examples/diffusion/sensenova_u1_5/sensenova_u1_5_ocr_trainside_lora_4x8.yaml pyproject.toml requirements.txt setup.py unirl/reward/local/ocr.py unirl/trainer/diffusion.py --show-diff-on-failure3.2.2, PaddleOCR3.5.0, and python-Levenshtein0.27.4python -m unirl.train_diffusion --config-name=diffusion/sensenova_u1_5/sensenova_u1_5_ocr_trainside_lora_4x8 --cfg job --resolvesensenova/SenseNova-U1.5-8B-MoT-SFT; the included short-text split; checkpointcheckpoint-134(optimizer_step=268). On the fixed 32-prompt eval set, mean reward increased from0.3786at step 0 to0.9070at step 130, and exact match increased from0.1562to0.6562. W&B run: https://wandb.ai/leviking98z-zhejiang-university/tmp/runs/1w1gbj0lCompatibility / Risk
evalextra now installs the dependencies actually used by the local OCR scorer (paddlepaddle,paddleocr, andpython-Levenshtein) instead of EasyOCR.Reviewer Notes
Checklist