Model save
Browse files- README.md +71 -0
- generation_config.json +7 -0
- model.safetensors +1 -1
README.md
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
base_model: microsoft/CodeGPT-small-java
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
model-index:
|
9 |
+
- name: microsoft_CodeGPT-small-java_1_ft_clm
|
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 |
+
# microsoft_CodeGPT-small-java_1_ft_clm
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [microsoft/CodeGPT-small-java](https://huggingface.co/microsoft/CodeGPT-small-java) on an unknown dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 1.2895
|
21 |
+
- Accuracy: 0.7559
|
22 |
+
|
23 |
+
## Model description
|
24 |
+
|
25 |
+
More information needed
|
26 |
+
|
27 |
+
## Intended uses & limitations
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Training and evaluation data
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training procedure
|
36 |
+
|
37 |
+
### Training hyperparameters
|
38 |
+
|
39 |
+
The following hyperparameters were used during training:
|
40 |
+
- learning_rate: 8e-05
|
41 |
+
- train_batch_size: 8
|
42 |
+
- eval_batch_size: 24
|
43 |
+
- seed: 42
|
44 |
+
- gradient_accumulation_steps: 4
|
45 |
+
- total_train_batch_size: 32
|
46 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
47 |
+
- lr_scheduler_type: cosine
|
48 |
+
- lr_scheduler_warmup_ratio: 0.02
|
49 |
+
- num_epochs: 5
|
50 |
+
|
51 |
+
### Training results
|
52 |
+
|
53 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
54 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|
|
55 |
+
| 0.6967 | 0.5028 | 500 | 1.3162 | 0.7521 |
|
56 |
+
| 0.6481 | 1.0050 | 1000 | 1.3002 | 0.7551 |
|
57 |
+
| 0.6091 | 1.5078 | 1500 | 1.2965 | 0.7550 |
|
58 |
+
| 0.6091 | 2.0101 | 2000 | 1.2894 | 0.7556 |
|
59 |
+
| 0.5805 | 2.5128 | 2500 | 1.2918 | 0.7556 |
|
60 |
+
| 0.557 | 3.0151 | 3000 | 1.2862 | 0.7559 |
|
61 |
+
| 0.5513 | 3.5178 | 3500 | 1.2841 | 0.7565 |
|
62 |
+
| 0.5468 | 4.0201 | 4000 | 1.2849 | 0.7562 |
|
63 |
+
| 0.5513 | 4.5229 | 4500 | 1.2895 | 0.7559 |
|
64 |
+
|
65 |
+
|
66 |
+
### Framework versions
|
67 |
+
|
68 |
+
- Transformers 4.53.0
|
69 |
+
- Pytorch 2.7.1+cu126
|
70 |
+
- Datasets 3.6.0
|
71 |
+
- Tokenizers 0.21.2
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 0,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"pad_token_id": 1,
|
6 |
+
"transformers_version": "4.53.0"
|
7 |
+
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 503128704
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:eddfb64d3fc7ae8f2ee7df963af2547c66bc9a6df7a8f8639696412834c5abbb
|
3 |
size 503128704
|