jingyeom commited on
Commit
1aebd88
โ€ข
1 Parent(s): baa82da

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -43
README.md CHANGED
@@ -11,51 +11,22 @@ model-index:
11
  results: []
12
  ---
13
 
14
- <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
- should probably proofread and complete it, then remove this comment. -->
 
16
 
17
- # table_to_text_train_solar-merge-dpo
 
18
 
19
- This model is a fine-tuned version of [jingyeom/solar_merge_dpo](https://huggingface.co/jingyeom/solar_merge_dpo) on the generator dataset.
20
 
21
- ## Model description
22
 
23
- More information needed
 
 
 
 
 
 
24
 
25
- ## Intended uses & limitations
26
-
27
- More information needed
28
-
29
- ## Training and evaluation data
30
-
31
- More information needed
32
-
33
- ## Training procedure
34
-
35
- ### Training hyperparameters
36
-
37
- The following hyperparameters were used during training:
38
- - learning_rate: 1e-06
39
- - train_batch_size: 1
40
- - eval_batch_size: 8
41
- - seed: 42
42
- - distributed_type: multi-GPU
43
- - num_devices: 8
44
- - gradient_accumulation_steps: 4
45
- - total_train_batch_size: 32
46
- - total_eval_batch_size: 64
47
- - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
48
- - lr_scheduler_type: cosine
49
- - lr_scheduler_warmup_ratio: 0.03
50
- - num_epochs: 1
51
-
52
- ### Training results
53
-
54
-
55
-
56
- ### Framework versions
57
-
58
- - Transformers 4.36.2
59
- - Pytorch 2.2.0+cu118
60
- - Datasets 2.20.0
61
- - Tokenizers 0.15.2
 
11
  results: []
12
  ---
13
 
14
+ ``` python
15
+ sys_text = """Given the following HTML table, convert it to a descriptive text format.
16
+ Summarize the content of the table. and then describe the key features or characteristics of the table."""
17
 
18
+ table = """WHO์˜ ICD-11 'Gaming Disorder' ์งˆ๋ณ‘์ฝ”๋“œํ™” ์‹œ๊ธฐ๋ณ„ ์ถ”์ง„๊ฒฝ๊ณผ ๋‚ด์šฉ
19
+ <table><tr><td colspan="1" rowspan="1">2014๋…„</td><td colspan="1" rowspan="1">ยทWHO ์ •์‹ ๊ฑด๊ฐ•๋ถ€ ์ค‘๋… ์„น์…˜ ์ž๋ฌธ ๊ทธ๋ฃน ํšŒ์˜์ฒด๋ฅผ ํ†ตํ•ด ๊ฒŒ์ž„ ๋“ฑ ๋””์ง€ํ„ธ๋ฏธ๋”” ์–ด์˜๊ณผ๋„ํ•œ ์‚ฌ์šฉ์ด ๊ณต์ค‘๋ณด๊ฑดํ•™์  ๋ฌธ์ œ๋กœ ๋Œ€์‘์ด ํ•„์š”ํ•˜๋‹ค๋Š” ์˜๊ฒฌ ๋„์ถœ </td></tr><tr><td colspan="1" rowspan="1">2015๋…„</td><td colspan="1" rowspan="1">ยท2์ฐจ TF ํšŒ์˜ ํ†ตํ•ด Gaming Disorder๋กœ ๋ช…๋ช…ํ•˜์—ฌ ICD-11 ๋“ฑ์žฌ๋ฅผ ์ถ”์ง„ํ•˜๊ธฐ๋กœ ์ „๋ฌธ๊ฐ€ํ•ฉ์˜ ๋„์ถœ </td></tr><tr><td colspan="1" rowspan="1">2016๋…„</td><td colspan="1" rowspan="1">ยทICD-11 ๊ฐœ์ • ์‚ฌ์ดํŠธ์— ์ง„๋‹จ๊ธฐ์ค€ ๊ฒŒ์‹œ ๋ณด๊ฑด์ „๋ฌธ๊ฐ€์˜ ์˜๊ฒฌ ์ˆ˜๋ ด ์‹œ์ž‘ </td></tr><tr><td colspan="1" rowspan="1">2017๋…„12์›” </td><td colspan="1" rowspan="1">ยทICD-11 ๊ฐœ์ •์•ˆ ๊ณต๊ฐœ </td></tr><tr><td colspan="1" rowspan="1">2018๋…„5์›” </td><td colspan="1" rowspan="1">ยท71์ฐจ ์„ธ๊ณ„๋ณด๊ฑด์ดํšŒ์—์„œ ์•ˆ๊ฑด ์ƒ์ • ์˜ˆ๊ณ  ยท๊ณต๊ฐœ๋œ ๊ฐœ์ •์•ˆ์— ๋Œ€ํ•œ ๊ฐ ํšŒ์›๊ตญ์˜ ๊ฒ€ํ†  ์‹œ๊ฐ„ ํ™•๋ณด๋ฅผ ์œ„ํ•ด ICD-11์ฐจ ๊ฐœ์ •์•ˆ ์˜์ดํšŒ ์•ˆ๊ฑด ์ƒ์ •์„ 1๋…„๊ฐ„ ์—ฐ๊ธฐ(2019๋…„ 5์›” 72์ฐจ ์„ธ๊ณ„๋ณด๊ฑด์ดํšŒ) </td></tr><tr><td colspan="1" rowspan="1">2018๋…„ 6์›”</td><td colspan="1" rowspan="1">ยทICD-11 ์ตœ์ข…์•ˆ์„ WHO ํ™ˆํŽ˜์ด์ง€ ๊ฒŒ์žฌ </td></tr><tr><td colspan="1" rowspan="1">2019๋…„5์›” </td><td colspan="1" rowspan="1">ยทICD-11 ๊ฐœ์ •์•ˆ ๋งŒ์žฅ์ผ์น˜ ํ†ต๊ณผ </td></tr></table>"""
20
 
21
+ messages = [{'role': 'system', 'content': sys_text}, {'role': 'user', 'content': table}]
22
 
23
+ output = pipeline(Conversation(messages))
24
 
25
+ print(output)
26
+ ```
27
+ * ๊ฒฐ๊ณผ
28
+ ```text
29
+ ํ‘œ๋Š” WHO์˜ ICD-11 'Gaming Disorder' ์งˆ๋ณ‘์ฝ”๋“œํ™” ์‹œ๊ธฐ๋ณ„ ์ถ”์ง„๊ฒฝ๊ณผ ๋‚ด์šฉ์— ๊ด€ํ•œ ํ‘œ๋กœ 7ํ–‰ 2์—ด์ด๋ฉฐ 2014๋…„๋ถ€ํ„ฐ 2019๋…„๊นŒ์ง€ WHO๊ฐ€ ๊ฒŒ์ž„ ๋“ฑ ๋””์ง€ํ„ธ ๋ฏธ๋””์–ด์˜ ๊ณผ๋„ํ•œ ์‚ฌ์šฉ์ด ๊ณต์ค‘๋ณด๊ฑดํ•™์  ๋ฌธ์ œ๋กœ ๋Œ€์‘์ด ํ•„์š”ํ•˜๋‹ค๋Š” ์˜๊ฒฌ์„ ๋„์ถœํ•˜๊ณ , ์ด๋ฅผ ๋ฐ”ํƒ•์œผ๋กœ 'Gaming Disorder'๋ฅผ ๋ช…๋ช…ํ•˜์—ฌ ICD-11์— ๋“ฑ์žฌํ•˜๊ธฐ๋กœ ํ•ฉ์˜ํ•˜๋Š” ๊ณผ์ •์„ ๋ณด์—ฌ์ค€๋‹ค.
30
+ 1. 2014๋…„์— WHO ์ •์‹ ๊ฑด๊ฐ•๋ถ€ ์ค‘๋… ์„น์…˜ ์ž๋ฌธ ๊ทธ๋ฃน ํšŒ์˜์ฒด์—์„œ ๊ฒŒ์ž„ ๋“ฑ ๋””์ง€ํ„ธ ๋ฏธ๋””์–ด์˜ ๊ณผ๋„ํ•œ ์‚ฌ์šฉ์ด ๊ณต์ค‘๋ณด๊ฑดํ•™์  ๋ฌธ์ œ๋กœ ๋Œ€์‘์ด ํ•„์š”ํ•˜๋‹ค๋Š” ์˜๊ฒฌ์ด ๋„์ถœ๋˜์—ˆ๋‹ค. 2. 2015๋…„์—๋Š” 2์ฐจ TF ํšŒ์˜๋ฅผ ํ†ตํ•ด 'Gaming Disorder'๋ฅผ ๋ช…๋ช…ํ•˜์—ฌ ICD-11์— ๋“ฑ์žฌํ•˜๊ธฐ๋กœ ์ „๋ฌธ๊ฐ€ ํ•ฉ์˜๊ฐ€ ๋„์ถœ๋˜์—ˆ๋‹ค. 3. 2019๋…„ 5์›”์—๋Š” ICD-11 ๊ฐœ์ •์•ˆ์ด ๋งŒ์žฅ์ผ์น˜๋กœ ํ†ต๊ณผ๋˜์—ˆ๋‹ค.
31
+ ```
32