-
Notifications
You must be signed in to change notification settings - Fork 178
Open
Description
We found some issues by pre-commit-toolkit
For example:
- fatal error
error: cannot format InternLM-XComposer-2.5-OmniLive/online_demo_gradio/backend_vs.py: Cannot parse: 187:45: input_ids.append(prompt_chunks[0][0])mem token
- 'imported but unused' modules will add init time (There are many similar cases; we'll just illustrate with one example.)
InternLM-XComposer-1.0/demo_asset/serve_utils.py:8:1: F401 'torch' imported but unused
- undefined-variable (There are many similar cases; we'll just illustrate with one example.)
InternLM-XComposer-2.0/evaluation/mmbench/utils.py:19:24: E0602: Undefined variable 'os' (undefined-variable)
- no-name-in-module (There are other similar cases; we'll just illustrate with one example.)
InternLM-XComposer-1.0/demo_asset/gradio_patch.py:8:0: E0611: No name 'Changeable' in module 'gradio.events' (no-name-in-module)
- unexpected-keyword-arg (There are other similar cases; we'll just illustrate with one example.)
InternLM-XComposer-1.0/examples/web_demo.py:1071:4: E1123: Unexpected keyword argument 'concurrency_count' in method call (unexpected-keyword-arg)
- spell error (There are many similar cases; we'll just illustrate with one example.)
gradio_demo/gradio_demo_composition.py:1083: Instrcution ==> Instruction
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/modeling_internlm_xcomposer2.py:245: Waring ==> Warning
Suggest adding more rules from reference
Metadata
Metadata
Assignees
Labels
No labels