megemini
megemini
### Update 20251211 加了个默认的处理函数 ~ 我在 https://aistudio.baidu.com/projectdetail/9857242 中试了一下,可以输出 markdown 文档了 ~ 之前这个文件是空的,我还以为就是这样处理的 😅
@zhang-prog 还是有点问题 hf 那边是 `processing_paddleocr_vl.py`,这边提示缺少 `processing_ppocrvl.py` ~ 手动把文件名改过来之后,又提示错误 ```shell (venv310) ✘ shun@shun-B660M-Pro-RS ~/workspace/Projects/erniekit_paddleocr_vl_ner master ±✚ python paddleocr_vl_transformers.py The repository /media/shun/bigdata/Models/PaddleOCR_VL_SFT/PaddleOCR_VL_Prompt contains custom code which must be...
是不是 tokenizer_config.json 中的配置错了 ``` json "auto_map": { "AutoProcessor": "processing_ppocrvl.PPOCRVLProcessor" }, ```
改了之后还是有错误 🫠 ``` shell (venv310) shun@shun-B660M-Pro-RS ~/workspace/Projects/erniekit_paddleocr_vl_ner master ±✚ python paddleocr_vl_transformers.py The repository /media/shun/bigdata/Models/PaddleOCR_VL_SFT/PaddleOCR_VL_Prompt contains custom code which must be executed to correctly load the model....
transformers 是最新的代码 ~ 微调后生成的模型文件是不是有点问题? 根据 https://github.com/PaddlePaddle/ERNIE/blob/release/v1.4/docs/paddleocr_vl_sft_zh.md 里面用的是 `git clone https://github.com/PaddlePaddle/ERNIE -b release/v1.4` 这个版本 ~ 微调后生成的模型文件中 config.json ```json { "architectures": [ "PaddleOCRVLForConditionalGeneration" ], "attention_probs_dropout_prob": 0.0, "auto_map": { "AutoConfig": "configuration_paddleocr_vl.PaddleOCRVLConfig", "AutoModel": "modeling_paddleocr_vl.PaddleOCRVLForConditionalGeneration",...
> > 这是缺一些文件,可以拉 hf 的 repo,其他文件保持不变,只用你微调后的 safetensors 替换一下原来的 safetensors 就可以运行了。 > > 您是不是只是copy了一些py文件到微调目录下了呢?这里可能我表达有误,我的意思是全部的文件(包括config.json)都用huggingface上的,也就是这里: https://huggingface.co/PaddlePaddle/PaddleOCR-VL/tree/main > > 然后只是替换其中的 safetensors,也就是说只需要用到您微调之后的safetensors文件。 收到 ~ 我之前的模型文件是从 modelscope https://modelscope.cn/models/PaddlePaddle/PaddleOCR-VL/files 下载的(速度快),这么看,那边的模型好像是旧的 ... ...
### Update 20241023 本 PR 修复的 `4` 个模型已通过 CI,可以 review 并合入: - test_benchmark/PyTorch/ACG_UnitTest - test_benchmark/PyTorch/Mobilestereonet - test_benchmark/PyTorch/Saicinpainting_LaMa - test_benchmark/PyTorch/opadd @luotao1