huggingface / huggingface/pixparse

Redundancy between step and _forward

Open
#29 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
25
Forks
4
PR merge metrics
No merged PRs in 30d

Description

In PR #24 , CORD finetune has both step and forward

https://github.com/huggingface/pixparse/blob/9143e50498672326208ba07b2efa70844f055c5b/src/pixparse/task/task_cruller_finetune_CORD.py#L409C1-L442C1

step should be used only in the framework

finetune_docVQA has step & forward intertwined https://github.com/huggingface/pixparse/blob/9143e50498672326208ba07b2efa70844f055c5b/src/pixparse/task/task_cruller_finetune_docvqa.py#L279C1-L312C45

Solution: move step method to framework!

- [x] CORD Finetune remove step()
- [x] docVQA Finetune remove step()

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.