michotic commited on
Commit
d8250cc
·
1 Parent(s): 212c324

Upload 8 files

Browse files
config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "cancer_model",
3
+ "architectures": [
4
+ "ViTForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "encoder_stride": 16,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.0,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "adeno carcinoma",
13
+ "1": "large cell carcinoma",
14
+ "2": "normal",
15
+ "3": "squamous cell carcinoma"
16
+ },
17
+ "image_size": 224,
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "adeno carcinoma": 0,
22
+ "large cell carcinoma": 1,
23
+ "normal": 2,
24
+ "squamous cell carcinoma": 3
25
+ },
26
+ "layer_norm_eps": 1e-12,
27
+ "model_type": "vit",
28
+ "num_attention_heads": 12,
29
+ "num_channels": 3,
30
+ "num_hidden_layers": 12,
31
+ "patch_size": 16,
32
+ "problem_type": "single_label_classification",
33
+ "qkv_bias": true,
34
+ "torch_dtype": "float32",
35
+ "transformers_version": "4.28.1"
36
+ }
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40f42f4e0ef41f419fa27bc4ccfcefebb6f3436776189b5c1c5ff94b3ea21424
3
+ size 686525381
preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": true,
5
+ "image_mean": [
6
+ 0.5,
7
+ 0.5,
8
+ 0.5
9
+ ],
10
+ "image_processor_type": "ViTImageProcessor",
11
+ "image_std": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "resample": 2,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": {
19
+ "height": 224,
20
+ "width": 224
21
+ }
22
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d58be93d88d1dc7da860a5ab4542d5cb396224159ae0f634f4fbc68f65641f4
3
+ size 343272109
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e6b402c9f12d6e11514556247eb556837d54d1ce0345832ec974e0a7a504007
3
+ size 13553
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0f57c961cf937c98c9c9f1ef22eacc9928104c4c20f699480c3b451ffc686be
3
+ size 627
trainer_state.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.8476190476190476,
3
+ "best_model_checkpoint": "cancer_trainer/checkpoint-102",
4
+ "epoch": 3.974025974025974,
5
+ "global_step": 102,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 0.97,
12
+ "learning_rate": 1.8750000000000002e-05,
13
+ "loss": 1.2363,
14
+ "step": 25
15
+ },
16
+ {
17
+ "epoch": 0.97,
18
+ "eval_accuracy": 0.6,
19
+ "eval_loss": 0.9363765716552734,
20
+ "eval_runtime": 34.517,
21
+ "eval_samples_per_second": 9.126,
22
+ "eval_steps_per_second": 1.159,
23
+ "step": 25
24
+ },
25
+ {
26
+ "epoch": 1.99,
27
+ "learning_rate": 2.79375e-05,
28
+ "loss": 0.5713,
29
+ "step": 51
30
+ },
31
+ {
32
+ "epoch": 1.99,
33
+ "eval_accuracy": 0.6063492063492063,
34
+ "eval_loss": 0.7580057382583618,
35
+ "eval_runtime": 33.8149,
36
+ "eval_samples_per_second": 9.315,
37
+ "eval_steps_per_second": 1.183,
38
+ "step": 51
39
+ },
40
+ {
41
+ "epoch": 3.0,
42
+ "learning_rate": 2.30625e-05,
43
+ "loss": 0.1896,
44
+ "step": 77
45
+ },
46
+ {
47
+ "epoch": 3.0,
48
+ "eval_accuracy": 0.7714285714285715,
49
+ "eval_loss": 0.5259649157524109,
50
+ "eval_runtime": 34.8441,
51
+ "eval_samples_per_second": 9.04,
52
+ "eval_steps_per_second": 1.148,
53
+ "step": 77
54
+ },
55
+ {
56
+ "epoch": 3.97,
57
+ "learning_rate": 1.8375000000000003e-05,
58
+ "loss": 0.0495,
59
+ "step": 102
60
+ },
61
+ {
62
+ "epoch": 3.97,
63
+ "eval_accuracy": 0.8476190476190476,
64
+ "eval_loss": 0.37960347533226013,
65
+ "eval_runtime": 34.4152,
66
+ "eval_samples_per_second": 9.153,
67
+ "eval_steps_per_second": 1.162,
68
+ "step": 102
69
+ }
70
+ ],
71
+ "max_steps": 200,
72
+ "num_train_epochs": 8,
73
+ "total_flos": 1.9001376454046515e+17,
74
+ "trial_name": null,
75
+ "trial_params": null
76
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb579efdc3dcbe2f7b44c2a709d646b1dd1c0f2afcd12a372ab5c1486f470397
3
+ size 3579