Dev llm enhance ctr gwn #293
38 new issues (0 max.) of at least minor severity.
Here is an overview of what got changed by this pull request:
Issues
======
- Added 38
Complexity increasing per file
==============================
- alignment/main.py 11
- alignment/trainer.py 3
- alignment/data.py 7
- alignment/schema.py 1
- alignment/model.py 3
- alignment/arguments.py 1
Clones added
============
- alignment/model.py 2
- deepctr_torch/models/deepfm.py 2
- deepctr_torch/models/din.py 2
See the complete overview on Codacy
Annotations
Check notice on line 1 in alignment/arguments.py
codacy-production / Codacy Static Code Analysis
alignment/arguments.py#L1
'os' imported but unused (F401)
Check warning on line 1 in alignment/arguments.py
codacy-production / Codacy Static Code Analysis
alignment/arguments.py#L1
Unused import os
Check notice on line 18 in alignment/data.py
codacy-production / Codacy Static Code Analysis
alignment/data.py#L18
'..deepctr_torch.inputs.DenseFeat' imported but unused (F401)
Check warning on line 18 in alignment/data.py
codacy-production / Codacy Static Code Analysis
alignment/data.py#L18
Unused DenseFeat imported from deepctr_torch.inputs
Check notice on line 141 in alignment/data.py
codacy-production / Codacy Static Code Analysis
alignment/data.py#L141
Trailing whitespace
Check notice on line 6 in alignment/main.py
codacy-production / Codacy Static Code Analysis
alignment/main.py#L6
'transformers.AutoConfig' imported but unused (F401)
Check warning on line 6 in alignment/main.py
codacy-production / Codacy Static Code Analysis
alignment/main.py#L6
Unused AutoConfig imported from transformers
Check notice on line 77 in alignment/main.py
codacy-production / Codacy Static Code Analysis
alignment/main.py#L77
Trailing whitespace
Check notice on line 80 in alignment/main.py
codacy-production / Codacy Static Code Analysis
alignment/main.py#L80
Trailing whitespace
Check warning on line 4 in alignment/model.py
codacy-production / Codacy Static Code Analysis
alignment/model.py#L4
Unused import json
Check notice on line 7 in alignment/model.py
codacy-production / Codacy Static Code Analysis
alignment/model.py#L7
'dataclasses.dataclass' imported but unused (F401)
Check warning on line 7 in alignment/model.py
codacy-production / Codacy Static Code Analysis
alignment/model.py#L7
Unused dataclass imported from dataclasses
Check notice on line 12 in alignment/model.py
codacy-production / Codacy Static Code Analysis
alignment/model.py#L12
'torch.distributed as dist' imported but unused (F401)
Check warning on line 12 in alignment/model.py
codacy-production / Codacy Static Code Analysis
alignment/model.py#L12
Unused torch.distributed imported as dist
Check notice on line 14 in alignment/model.py
codacy-production / Codacy Static Code Analysis
alignment/model.py#L14
'transformers.AutoModel' imported but unused (F401)
Check notice on line 15 in alignment/model.py
codacy-production / Codacy Static Code Analysis
alignment/model.py#L15
'transformers.models.bert.modeling_bert.BertPreTrainedModel' imported but unused (F401)
Check warning on line 15 in alignment/model.py
codacy-production / Codacy Static Code Analysis
alignment/model.py#L15
Unused BertPreTrainedModel imported from transformers.models.bert.modeling_bert
Check notice on line 16 in alignment/model.py
codacy-production / Codacy Static Code Analysis
alignment/model.py#L16
'transformers.modeling_outputs.ModelOutput' imported but unused (F401)
Check notice on line 19 in alignment/model.py
codacy-production / Codacy Static Code Analysis
alignment/model.py#L19
'typing.Optional' imported but unused (F401)
Check warning on line 19 in alignment/model.py
codacy-production / Codacy Static Code Analysis
alignment/model.py#L19
Unused Optional imported from typing
Check notice on line 22 in alignment/model.py
codacy-production / Codacy Static Code Analysis
alignment/model.py#L22
'deepctr_torch.models.din.DIN' imported but unused (F401)
Check warning on line 22 in alignment/model.py
codacy-production / Codacy Static Code Analysis
alignment/model.py#L22
Unused DIN imported from deepctr_torch.models.din
Check notice on line 2 in alignment/trainer.py
codacy-production / Codacy Static Code Analysis
alignment/trainer.py#L2
'itertools.repeat' imported but unused (F401)
Check notice on line 9 in alignment/trainer.py
codacy-production / Codacy Static Code Analysis
alignment/trainer.py#L9
'torch.distributed as dist' imported but unused (F401)
Check warning on line 9 in alignment/trainer.py
codacy-production / Codacy Static Code Analysis
alignment/trainer.py#L9
Unused torch.distributed imported as dist