OpenGVLab / OpenGVLab/VideoChat-Flash
not found in your environment: petrel_client
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 530
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
model = AutoModel.from_pretrained(model_path, trust_remote_code=True).to(torch.bfloat16).cuda()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/video-chat/lib/python3.12/site-packages/transformers/models/auto/auto_factory.py", line 523, in from_pretrained
config, kwargs = AutoConfig.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/video-chat/lib/python3.12/site-packages/transformers/models/auto/configuration_auto.py", line 937, in from_pretrained
config_class = get_class_from_dynamic_module(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/video-chat/lib/python3.12/site-packages/transformers/dynamic_module_utils.py", line 489, in get_class_from_dynamic_module
final_module = get_cached_module_file(
^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/video-chat/lib/python3.12/site-packages/transformers/dynamic_module_utils.py", line 353, in get_cached_module_file
get_cached_module_file(
File "/root/miniconda3/envs/video-chat/lib/python3.12/site-packages/transformers/dynamic_module_utils.py", line 315, in get_cached_module_file
modules_needed = check_imports(resolved_module_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/video-chat/lib/python3.12/site-packages/transformers/dynamic_module_utils.py", line 180, in check_imports
raise ImportError(
ImportError: This modeling file requires the following packages that were not found in your environment: petrel_client. Run pip install petrel_client
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the AutoModel.from_pretrained call shown in the report with trust_remote_code=True and the referenced model_path. Check how this project declares or documents the required petrel_client package, then determine whether the expected outcome is dependency installation guidance or a code/configuration change. Done means the model-loading path no longer fails with the reported missing-package error, or the requirement is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100