anicolson commited on
Commit
3ddbd4c
·
verified ·
1 Parent(s): ad3f571

Upload model

Browse files
config.json CHANGED
@@ -11,6 +11,7 @@
11
  "include_time_delta": true,
12
  "index_value_encoder_intermediate_size": 2048,
13
  "model_type": "cxrmate-ed",
 
14
  "prompt_report_sections_filter": [
15
  "indication",
16
  "history"
 
11
  "include_time_delta": true,
12
  "index_value_encoder_intermediate_size": 2048,
13
  "model_type": "cxrmate-ed",
14
+ "pad_token_id": 4,
15
  "prompt_report_sections_filter": [
16
  "indication",
17
  "history"
configuration_cxrmate_ed.py CHANGED
@@ -19,7 +19,7 @@ class CXRMateEDConfig(transformers.PretrainedConfig):
19
  pad_token_id: int = 4,
20
  **kwargs,
21
  ):
22
-
23
  self.vision_config = vision_config
24
  self.text_config = text_config
25
  self.index_value_encoder_intermediate_size = index_value_encoder_intermediate_size
@@ -31,7 +31,6 @@ class CXRMateEDConfig(transformers.PretrainedConfig):
31
  self.prompt_report_sections_filter = prompt_report_sections_filter
32
  self.pad_token_id = pad_token_id
33
 
34
- transformers.PretrainedConfig.__init__(self, **kwargs)
35
 
36
  # class CXRMateEDConfig(transformers.PretrainedConfig):
37
 
 
19
  pad_token_id: int = 4,
20
  **kwargs,
21
  ):
22
+ super().__init__(**kwargs)
23
  self.vision_config = vision_config
24
  self.text_config = text_config
25
  self.index_value_encoder_intermediate_size = index_value_encoder_intermediate_size
 
31
  self.prompt_report_sections_filter = prompt_report_sections_filter
32
  self.pad_token_id = pad_token_id
33
 
 
34
 
35
  # class CXRMateEDConfig(transformers.PretrainedConfig):
36
 
generation_config.json CHANGED
@@ -2,5 +2,6 @@
2
  "_from_model_config": true,
3
  "bos_token_id": 1,
4
  "eos_token_id": 2,
 
5
  "transformers_version": "4.47.0"
6
  }
 
2
  "_from_model_config": true,
3
  "bos_token_id": 1,
4
  "eos_token_id": 2,
5
+ "pad_token_id": 4,
6
  "transformers_version": "4.47.0"
7
  }