update model card README.md
Browse files
README.md
ADDED
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
license: apache-2.0
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
datasets:
|
8 |
+
- kejian/codeparrot-train-more-filter-3.3b-cleaned
|
9 |
+
model-index:
|
10 |
+
- name: kejian/final-filter
|
11 |
+
results: []
|
12 |
+
---
|
13 |
+
|
14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
15 |
+
should probably proofread and complete it, then remove this comment. -->
|
16 |
+
|
17 |
+
# kejian/final-filter
|
18 |
+
|
19 |
+
This model was trained from scratch on the kejian/codeparrot-train-more-filter-3.3b-cleaned dataset.
|
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: 0.0008
|
39 |
+
- train_batch_size: 64
|
40 |
+
- eval_batch_size: 32
|
41 |
+
- seed: 42
|
42 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
43 |
+
- lr_scheduler_type: linear
|
44 |
+
- lr_scheduler_warmup_ratio: 0.01
|
45 |
+
- training_steps: 50354
|
46 |
+
- mixed_precision_training: Native AMP
|
47 |
+
|
48 |
+
### Framework versions
|
49 |
+
|
50 |
+
- Transformers 4.23.0
|
51 |
+
- Pytorch 1.13.0+cu116
|
52 |
+
- Datasets 2.0.0
|
53 |
+
- Tokenizers 0.12.1
|
54 |
+
|
55 |
+
|
56 |
+
# Full config
|
57 |
+
{'dataset': {'datasets': ['kejian/codeparrot-train-more-filter-3.3b-cleaned'],
|
58 |
+
'filter_threshold': 0.002361,
|
59 |
+
'is_split_by_sentences': True},
|
60 |
+
'generation': {'batch_size': 64,
|
61 |
+
'metrics_configs': [{}, {'n': 1}, {}],
|
62 |
+
'scenario_configs': [{'display_as_html': True,
|
63 |
+
'generate_kwargs': {'do_sample': True,
|
64 |
+
'eos_token_id': 0,
|
65 |
+
'max_length': 640,
|
66 |
+
'min_length': 10,
|
67 |
+
'temperature': 0.7,
|
68 |
+
'top_k': 0,
|
69 |
+
'top_p': 0.9},
|
70 |
+
'name': 'unconditional',
|
71 |
+
'num_samples': 512},
|
72 |
+
{'display_as_html': True,
|
73 |
+
'generate_kwargs': {'do_sample': True,
|
74 |
+
'eos_token_id': 0,
|
75 |
+
'max_length': 272,
|
76 |
+
'min_length': 10,
|
77 |
+
'temperature': 0.7,
|
78 |
+
'top_k': 0,
|
79 |
+
'top_p': 0.9},
|
80 |
+
'name': 'functions',
|
81 |
+
'num_samples': 512,
|
82 |
+
'prompts_path': 'resources/functions_csnet.jsonl',
|
83 |
+
'use_prompt_for_scoring': True}],
|
84 |
+
'scorer_config': {}},
|
85 |
+
'kl_gpt3_callback': {'gpt3_kwargs': {'model_name': 'code-cushman-001'},
|
86 |
+
'max_tokens': 64,
|
87 |
+
'num_samples': 4096},
|
88 |
+
'model': {'from_scratch': True,
|
89 |
+
'gpt2_config_kwargs': {'reorder_and_upcast_attn': True,
|
90 |
+
'scale_attn_by': True},
|
91 |
+
'path_or_name': 'codeparrot/codeparrot-small'},
|
92 |
+
'objective': {'name': 'MLE'},
|
93 |
+
'tokenizer': {'path_or_name': 'codeparrot/codeparrot-small'},
|
94 |
+
'training': {'dataloader_num_workers': 0,
|
95 |
+
'effective_batch_size': 64,
|
96 |
+
'evaluation_strategy': 'no',
|
97 |
+
'fp16': True,
|
98 |
+
'hub_model_id': 'kejian/final-filter',
|
99 |
+
'hub_strategy': 'all_checkpoints',
|
100 |
+
'learning_rate': 0.0008,
|
101 |
+
'logging_first_step': True,
|
102 |
+
'logging_steps': 1,
|
103 |
+
'num_tokens': 3300000000.0,
|
104 |
+
'output_dir': 'training_output',
|
105 |
+
'per_device_train_batch_size': 16,
|
106 |
+
'push_to_hub': True,
|
107 |
+
'remove_unused_columns': False,
|
108 |
+
'save_steps': 5000,
|
109 |
+
'save_strategy': 'steps',
|
110 |
+
'seed': 42,
|
111 |
+
'warmup_ratio': 0.01,
|
112 |
+
'weight_decay': 0.1}}
|
113 |
+
|
114 |
+
# Wandb URL:
|
115 |
+
https://wandb.ai/kejian/uncategorized/runs/cmooyp27
|