Titembaye commited on
Commit
3f36b41
·
verified ·
1 Parent(s): d46e366

Training in progress, step 500

Browse files
README.md CHANGED
@@ -1,37 +1,60 @@
1
  ---
2
- language: en
3
  license: apache-2.0
 
4
  tags:
5
- - question-answering
6
- - squad
7
- pipeline_tag: question-answering # Clé pour activer le widget QA
8
- datasets:
9
- - squad
10
- widget:
11
- - question: "Who supervises the 2017 film Baby Driver?"
12
- context: "Baby Driver is a 2017 American action film written and directed by Edgar Wright. The film stars Ansel Elgort, Lily James, Jamie Foxx, Jon Hamm, Eiza González and Kevin Spacey. The plot follows a young getaway driver who must complete a final job for a crime boss. Baby Driver was released in the United States by TriStar Pictures on June 28, 2017, and received praise from critics."
13
  model-index:
14
- - name: distilbert-base-uncased-finetuned-squad
15
- results:
16
- - task:
17
- type: question-answering
18
- dataset:
19
- name: squad
20
- type: squad
21
- metrics:
22
- - name: f1
23
- type: f1
24
- value: 85.5 # Remplace par ton score F1 (ex. de trainer.evaluate())
25
- - name: exact_match
26
- type: exact_match
27
- value: 78.2 # Remplace par ton score Exact Match
28
  ---
29
 
30
- # Ton modèle QA
31
- Ce modèle est DistilBERT fine-tuné sur SQuAD pour extraire des réponses à des questions dans un contexte.
32
 
33
- ## Utilisation
34
- ```python
35
- from transformers import pipeline
36
- qa = pipeline("question-answering", model="Titemaybe/my_awesome_qa_model")
37
- print(qa(question="Who supervises the 2017 film Baby Driver?", context="..."))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ library_name: transformers
3
  license: apache-2.0
4
+ base_model: distilbert/distilbert-base-uncased
5
  tags:
6
+ - generated_from_trainer
 
 
 
 
 
 
 
7
  model-index:
8
+ - name: my_awesome_qa_model
9
+ results: []
 
 
 
 
 
 
 
 
 
 
 
 
10
  ---
11
 
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
 
15
+ # my_awesome_qa_model
16
+
17
+ This model is a fine-tuned version of [distilbert/distilbert-base-uncased](https://huggingface.co/distilbert/distilbert-base-uncased) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 1.7431
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: 2e-05
39
+ - train_batch_size: 16
40
+ - eval_batch_size: 16
41
+ - seed: 42
42
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
43
+ - lr_scheduler_type: linear
44
+ - num_epochs: 3
45
+
46
+ ### Training results
47
+
48
+ | Training Loss | Epoch | Step | Validation Loss |
49
+ |:-------------:|:-----:|:----:|:---------------:|
50
+ | No log | 1.0 | 250 | 2.6253 |
51
+ | 2.9024 | 2.0 | 500 | 1.8672 |
52
+ | 2.9024 | 3.0 | 750 | 1.7431 |
53
+
54
+
55
+ ### Framework versions
56
+
57
+ - Transformers 4.56.2
58
+ - Pytorch 2.8.0+cu126
59
+ - Datasets 4.0.0
60
+ - Tokenizers 0.22.1
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1efdb2ccb7349fcb80d08a92e11b53ae58afe062536e96ef4a9fc07439c847ad
3
  size 265470032
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b5f645a0a034fa2dd3c9556a0d425a45ca7af82ae8bd82a4e8389deb67baf16
3
  size 265470032
runs/Oct08_12-48-45_6eabe5bb0e9c/events.out.tfevents.1759927727.6eabe5bb0e9c.540.3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c77e5f1fd6225feefb469043a769e996cb7ceb0630efc1be98e038e4ef53ef17
3
+ size 5351
special_tokens_map.json CHANGED
@@ -1,37 +1,7 @@
1
  {
2
- "cls_token": {
3
- "content": "[CLS]",
4
- "lstrip": false,
5
- "normalized": false,
6
- "rstrip": false,
7
- "single_word": false
8
- },
9
- "mask_token": {
10
- "content": "[MASK]",
11
- "lstrip": false,
12
- "normalized": false,
13
- "rstrip": false,
14
- "single_word": false
15
- },
16
- "pad_token": {
17
- "content": "[PAD]",
18
- "lstrip": false,
19
- "normalized": false,
20
- "rstrip": false,
21
- "single_word": false
22
- },
23
- "sep_token": {
24
- "content": "[SEP]",
25
- "lstrip": false,
26
- "normalized": false,
27
- "rstrip": false,
28
- "single_word": false
29
- },
30
- "unk_token": {
31
- "content": "[UNK]",
32
- "lstrip": false,
33
- "normalized": false,
34
- "rstrip": false,
35
- "single_word": false
36
- }
37
  }
 
1
  {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  }
tokenizer_config.json CHANGED
@@ -46,18 +46,11 @@
46
  "do_lower_case": true,
47
  "extra_special_tokens": {},
48
  "mask_token": "[MASK]",
49
- "max_length": 384,
50
  "model_max_length": 512,
51
- "pad_to_multiple_of": null,
52
  "pad_token": "[PAD]",
53
- "pad_token_type_id": 0,
54
- "padding_side": "right",
55
  "sep_token": "[SEP]",
56
- "stride": 0,
57
  "strip_accents": null,
58
  "tokenize_chinese_chars": true,
59
  "tokenizer_class": "DistilBertTokenizer",
60
- "truncation_side": "right",
61
- "truncation_strategy": "only_second",
62
  "unk_token": "[UNK]"
63
  }
 
46
  "do_lower_case": true,
47
  "extra_special_tokens": {},
48
  "mask_token": "[MASK]",
 
49
  "model_max_length": 512,
 
50
  "pad_token": "[PAD]",
 
 
51
  "sep_token": "[SEP]",
 
52
  "strip_accents": null,
53
  "tokenize_chinese_chars": true,
54
  "tokenizer_class": "DistilBertTokenizer",
 
 
55
  "unk_token": "[UNK]"
56
  }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f7d7b40c4bcc1318944a85bcd3d3ca00b430c9fc6a650cf5b974580a8b94d634
3
  size 5777
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8fe53714ed432c4a6c43abbeb6a4b85f03b7527af50e3f6adbf8f7ab698cb2d6
3
  size 5777