nielsr HF Staff commited on
Commit
73f5c09
·
1 Parent(s): 9e6dbbd
Files changed (1) hide show
  1. trains/singleTask/model/DLF.py +8 -1
trains/singleTask/model/DLF.py CHANGED
@@ -7,7 +7,14 @@ import torch.nn.functional as F
7
  from ...subNets import BertTextEncoder
8
  from ...subNets.transformers_encoder.transformer import TransformerEncoder
9
 
10
- class DLF(nn.Module):
 
 
 
 
 
 
 
11
  def __init__(self, args):
12
  super(DLF, self).__init__()
13
  if args.use_bert:
 
7
  from ...subNets import BertTextEncoder
8
  from ...subNets.transformers_encoder.transformer import TransformerEncoder
9
 
10
+ from huggingface_hub import PyTorchModelHubMixin
11
+
12
+
13
+ class DLF(nn.Module, PyTorchModelHubMixin,
14
+ repo_url="https://github.com/pwang322/DLF",
15
+ paper_url="https://huggingface.co/papers/2412.12225",
16
+ tags=["sentiment-analysis"],
17
+ license="mit"):
18
  def __init__(self, args):
19
  super(DLF, self).__init__()
20
  if args.use_bert: