gbemilekeonilude commited on
Commit
924ca35
·
verified ·
1 Parent(s): 41aa8e2

Model save

Browse files
Files changed (2) hide show
  1. README.md +71 -0
  2. model.safetensors +1 -1
README.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: openai-community/gpt2-medium
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: cpp_and_text_gpt2
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ [<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="200" height="32"/>](https://wandb.ai/zhenwu/code-text-pretraining/runs/ugelj4uj)
17
+ # cpp_and_text_gpt2
18
+
19
+ This model is a fine-tuned version of [openai-community/gpt2-medium](https://huggingface.co/openai-community/gpt2-medium) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 1.6778
22
+ - Accuracy: 0.1571
23
+ - Num Input Tokens Seen: 1638400
24
+
25
+ ## Model description
26
+
27
+ More information needed
28
+
29
+ ## Intended uses & limitations
30
+
31
+ More information needed
32
+
33
+ ## Training and evaluation data
34
+
35
+ More information needed
36
+
37
+ ## Training procedure
38
+
39
+ ### Training hyperparameters
40
+
41
+ The following hyperparameters were used during training:
42
+ - learning_rate: 2e-05
43
+ - train_batch_size: 4
44
+ - eval_batch_size: 4
45
+ - seed: 42
46
+ - distributed_type: multi-GPU
47
+ - num_devices: 2
48
+ - total_train_batch_size: 8
49
+ - total_eval_batch_size: 8
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: cosine
52
+ - lr_scheduler_warmup_ratio: 0.03
53
+ - num_epochs: 3.0
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Input Tokens Seen |
58
+ |:-------------:|:------:|:----:|:---------------:|:--------:|:-----------------:|
59
+ | No log | 0 | 0 | 4.9861 | 0.2 | 0 |
60
+ | 1.8815 | 0.6329 | 50 | 1.7072 | 0.1857 | 409600 |
61
+ | 1.6129 | 1.2658 | 100 | 1.7499 | 0.1571 | 819200 |
62
+ | 1.6363 | 1.8987 | 150 | 1.7443 | 0.1571 | 1228800 |
63
+ | 1.5486 | 2.5316 | 200 | 1.6778 | 0.1571 | 1638400 |
64
+
65
+
66
+ ### Framework versions
67
+
68
+ - Transformers 4.43.2
69
+ - Pytorch 2.4.0
70
+ - Datasets 2.20.0
71
+ - Tokenizers 0.19.1
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:91dbda49ffdd89904169352107cadd930580b99bcbab4aa65cbb03396182192f
3
  size 1419343440
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02c2662402e6c7fefda9934821782d06ec04a365deb79ebbe6795e68f70bae6b
3
  size 1419343440