How to use katphlab/got-ocr2-latex with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("/root/.cache/modelscope/hub/stepfun-ai/GOT-OCR2_0") model = PeftModel.from_pretrained(base_model, "katphlab/got-ocr2-latex")
The community tab is the place to discuss and collaborate with the HF community!