Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] 运行 #888

Open
Newbie-pz opened this issue Feb 7, 2025 · 1 comment
Open

[Docs] 运行 #888

Newbie-pz opened this issue Feb 7, 2025 · 1 comment

Comments

@Newbie-pz
Copy link

Newbie-pz commented Feb 7, 2025

📚 The doc issue

大佬您好!
因为我想借用您优秀的InternVL2.5作为基座模型进行开发训练,我准备的是一个odir图文数据集进行了简单的清洗,我现在在internvl_chat/internvl/model/internvl_chat增加了一个模块,我想测试一下加入模块后模型是否能正常跑起来以及性能如何,但我并没有找到一个显式的运行入口文件,而且由于我并没有看到2.5中出现的动态分辨率相关的代码,我想知道这个model是否并不是只用于2.5的模型文件,那我应该如何用2.5的框架来跑一下这个修改后的模型呢
只修改模型架构的话 除了internvl_chat其他文件夹是否没有什么改动的必要

添麻烦了!祝您科研顺利!

@yuecao0119
Copy link
Collaborator

你好,

  1. 如果添加了新的模块,更改了模型框架的话,一般情况下需要对模型进行重新训练,保存训练后的权重,才能运行模型和验证模型效果。
  2. 动态分辨率的代码可以参考 internvl_chat/internvl/train/dataset.py#L830

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants