Training Step 315
Browse files- README.md +10 -0
- config.json +19 -0
- model.safetensors +3 -0
- trainer_state.pt +3 -0
- training_config.json +74 -0
README.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- model_hub_mixin
|
| 4 |
+
- pytorch_model_hub_mixin
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
This model has been pushed to the Hub using the [PytorchModelHubMixin](https://huggingface.co/docs/huggingface_hub/package_reference/mixins#huggingface_hub.PyTorchModelHubMixin) integration:
|
| 8 |
+
- Code: [More Information Needed]
|
| 9 |
+
- Paper: [More Information Needed]
|
| 10 |
+
- Docs: [More Information Needed]
|
config.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dino_bottleneck_dim": 256,
|
| 3 |
+
"dino_hidden_dim": 2048,
|
| 4 |
+
"dino_norm_last_layer": true,
|
| 5 |
+
"dino_num_layers": 3,
|
| 6 |
+
"dino_out_dim": 16384,
|
| 7 |
+
"dino_use_bn": true,
|
| 8 |
+
"dropout_attention": 0.0,
|
| 9 |
+
"dropout_hidden": 0.0,
|
| 10 |
+
"dropout_path": 0.0,
|
| 11 |
+
"hidden_size": 384,
|
| 12 |
+
"image_size": 96,
|
| 13 |
+
"in_channels": 3,
|
| 14 |
+
"intermediate_size": 1536,
|
| 15 |
+
"num_attention_heads": 6,
|
| 16 |
+
"num_hidden_layers": 12,
|
| 17 |
+
"patch_size": 8,
|
| 18 |
+
"qkv_bias": true
|
| 19 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:09bed1e0d89889aae2f289010b766c1cadb8fccf4ab76f69bbc98e8ddec971bc
|
| 3 |
+
size 124660456
|
trainer_state.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2aa1061a97cc424d0b35921ca39679bf6a74dd5c88045643ef8da14f835cdb0d
|
| 3 |
+
size 215673699
|
training_config.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_hub_mixin_config": {
|
| 3 |
+
"val_split": null,
|
| 4 |
+
"image_size": 96,
|
| 5 |
+
"patch_size": 8,
|
| 6 |
+
"in_channels": 3,
|
| 7 |
+
"hidden_size": 384,
|
| 8 |
+
"num_hidden_layers": 12,
|
| 9 |
+
"num_attention_heads": 6,
|
| 10 |
+
"qkv_bias": true,
|
| 11 |
+
"intermediate_size": 1536,
|
| 12 |
+
"dropout_hidden": 0.0,
|
| 13 |
+
"dropout_attention": 0.0,
|
| 14 |
+
"dropout_path": 0.0,
|
| 15 |
+
"dino_out_dim": 16384,
|
| 16 |
+
"dino_use_bn": true,
|
| 17 |
+
"dino_norm_last_layer": true,
|
| 18 |
+
"dino_num_layers": 3,
|
| 19 |
+
"dino_hidden_dim": 2048,
|
| 20 |
+
"dino_bottleneck_dim": 256,
|
| 21 |
+
"dino_base_teacher_temp": 0.04,
|
| 22 |
+
"dino_final_teacher_temp": 0.04,
|
| 23 |
+
"dino_warmup_epochs": 0,
|
| 24 |
+
"num_local_crops": 4,
|
| 25 |
+
"local_crop_size": 48,
|
| 26 |
+
"global_crops_scale": [
|
| 27 |
+
0.7,
|
| 28 |
+
1.0
|
| 29 |
+
],
|
| 30 |
+
"local_crops_scale": [
|
| 31 |
+
0.3,
|
| 32 |
+
0.7
|
| 33 |
+
],
|
| 34 |
+
"checkpoint": null,
|
| 35 |
+
"batch_size": 256,
|
| 36 |
+
"num_epochs": 100,
|
| 37 |
+
"learning_rate": 0.0002,
|
| 38 |
+
"optimizer_class": "adamw",
|
| 39 |
+
"base_wd": 0.04,
|
| 40 |
+
"final_wd": 0.4,
|
| 41 |
+
"base_momentum": 0.996,
|
| 42 |
+
"final_momentum": 1.0,
|
| 43 |
+
"lr_scheduler_class": "cosine",
|
| 44 |
+
"warmup_ratio": 0.1,
|
| 45 |
+
"log_interval_steps": 15,
|
| 46 |
+
"save_interval_steps": 315,
|
| 47 |
+
"save_dir": "./saved_models/vit-s8-highOutDim",
|
| 48 |
+
"save_latest": true,
|
| 49 |
+
"save_best": true,
|
| 50 |
+
"loss_metric_for_best_model": "train",
|
| 51 |
+
"use_wandb": true,
|
| 52 |
+
"wandb_entity": "image-ssl",
|
| 53 |
+
"wandb_project": "pretraining",
|
| 54 |
+
"wandb_name": "vit-s8-highOutDim",
|
| 55 |
+
"upload_model_to_hub": true,
|
| 56 |
+
"repo_id": "image-ssl/vit-s8-highOutDim",
|
| 57 |
+
"device": "cuda:0",
|
| 58 |
+
"seed": 42,
|
| 59 |
+
"total_steps": 195300
|
| 60 |
+
},
|
| 61 |
+
"hf_api": "<huggingface_hub.hf_api.HfApi object at 0x14e641e1e600>",
|
| 62 |
+
"wandb_writer": "<wandb.sdk.wandb_run.Run object at 0x14e642ade690>",
|
| 63 |
+
"wandb_table": null,
|
| 64 |
+
"optimizer": "AdamW (\nParameter Group 0\n amsgrad: False\n betas: (0.9, 0.999)\n capturable: False\n decoupled_weight_decay: True\n differentiable: False\n eps: 1e-08\n foreach: None\n fused: None\n initial_lr: 0.0002\n lr: 5.1935483870967665e-06\n maximize: False\n weight_decay: 0.040002296128245685\n)",
|
| 65 |
+
"lr_scheduler": "<torch.optim.lr_scheduler.SequentialLR object at 0x14e642129e50>",
|
| 66 |
+
"wd_scheduler": "<trainers.schedulers.weight_decay.WeightDecayScheduler object at 0x14e642129f40>",
|
| 67 |
+
"momentum_scheduler": "<trainers.schedulers.momentum.MomentumScheduler object at 0x14e642129e80>",
|
| 68 |
+
"optimizer_class": "adamw",
|
| 69 |
+
"lr_scheduler_class": "cosine",
|
| 70 |
+
"student_model": "VisionTransformerWithPretrainingHeads(\n (encoder): VisionTransformer(\n (patch_embed): PatchEmbedding(\n (proj): Conv2d(3, 384, kernel_size=(8, 8), stride=(8, 8))\n )\n (pos_drop): Dropout(p=0.0, inplace=False)\n (blocks): ModuleList(\n (0-11): 12 x TransformerBlock(\n (norm1): LayerNorm((384,), eps=1e-05, elementwise_affine=True)\n (attn): Attention(\n (qkv): Linear(in_features=384, out_features=1152, bias=True)\n (proj): Linear(in_features=384, out_features=384, bias=True)\n (proj_drop): Dropout(p=0.0, inplace=False)\n )\n (drop_path_attn): Identity()\n (norm2): LayerNorm((384,), eps=1e-05, elementwise_affine=True)\n (mlp): MLP(\n (fc1): Linear(in_features=384, out_features=1536, bias=True)\n (act): GELU(approximate='none')\n (fc2): Linear(in_features=1536, out_features=384, bias=True)\n (drop): Dropout(p=0.0, inplace=False)\n )\n (drop_path_mlp): Identity()\n )\n )\n (norm): LayerNorm((384,), eps=1e-05, elementwise_affine=True)\n )\n (heads): ModuleDict(\n (dino): DINOHead(\n (mlp): Sequential(\n (0): Linear(in_features=384, out_features=2048, bias=True)\n (1): BatchNorm1d(2048, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)\n (2): GELU(approximate='none')\n (3): Linear(in_features=2048, out_features=2048, bias=True)\n (4): BatchNorm1d(2048, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)\n (5): GELU(approximate='none')\n (6): Linear(in_features=2048, out_features=256, bias=True)\n )\n (last_layer): Linear(in_features=256, out_features=16384, bias=False)\n )\n )\n)",
|
| 71 |
+
"teacher_model": "VisionTransformerWithPretrainingHeads(\n (encoder): VisionTransformer(\n (patch_embed): PatchEmbedding(\n (proj): Conv2d(3, 384, kernel_size=(8, 8), stride=(8, 8))\n )\n (pos_drop): Dropout(p=0.0, inplace=False)\n (blocks): ModuleList(\n (0-11): 12 x TransformerBlock(\n (norm1): LayerNorm((384,), eps=1e-05, elementwise_affine=True)\n (attn): Attention(\n (qkv): Linear(in_features=384, out_features=1152, bias=True)\n (proj): Linear(in_features=384, out_features=384, bias=True)\n (proj_drop): Dropout(p=0.0, inplace=False)\n )\n (drop_path_attn): Identity()\n (norm2): LayerNorm((384,), eps=1e-05, elementwise_affine=True)\n (mlp): MLP(\n (fc1): Linear(in_features=384, out_features=1536, bias=True)\n (act): GELU(approximate='none')\n (fc2): Linear(in_features=1536, out_features=384, bias=True)\n (drop): Dropout(p=0.0, inplace=False)\n )\n (drop_path_mlp): Identity()\n )\n )\n (norm): LayerNorm((384,), eps=1e-05, elementwise_affine=True)\n )\n (heads): ModuleDict(\n (dino): DINOHead(\n (mlp): Sequential(\n (0): Linear(in_features=384, out_features=2048, bias=True)\n (1): BatchNorm1d(2048, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)\n (2): GELU(approximate='none')\n (3): Linear(in_features=2048, out_features=2048, bias=True)\n (4): BatchNorm1d(2048, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)\n (5): GELU(approximate='none')\n (6): Linear(in_features=2048, out_features=256, bias=True)\n )\n (last_layer): Linear(in_features=256, out_features=16384, bias=False)\n )\n )\n)",
|
| 72 |
+
"learning_rate": 0.0002,
|
| 73 |
+
"_dino_loss": "DINOLoss()"
|
| 74 |
+
}
|