Commit
·
dec872c
1
Parent(s):
18cf410
RLHF model of StarCoder
Browse files- README.md +53 -0
- added_tokens.json +3 -0
- config.json +39 -0
- generation_config.json +6 -0
- merges.txt +0 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +27 -0
- tokenizer.json +0 -0
- tokenizer_config.json +39 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: bigcode-openrail-m
|
| 3 |
+
base_model: bigcode/tiny_starcoder_py
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
model-index:
|
| 7 |
+
- name: tinystarcoder-rlhf-model
|
| 8 |
+
results: []
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 12 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 13 |
+
|
| 14 |
+
# tinystarcoder-rlhf-model
|
| 15 |
+
|
| 16 |
+
This model is a fine-tuned version of [bigcode/tiny_starcoder_py](https://huggingface.co/bigcode/tiny_starcoder_py) on the None dataset.
|
| 17 |
+
|
| 18 |
+
## Model description
|
| 19 |
+
|
| 20 |
+
More information needed
|
| 21 |
+
|
| 22 |
+
## Intended uses & limitations
|
| 23 |
+
|
| 24 |
+
More information needed
|
| 25 |
+
|
| 26 |
+
## Training and evaluation data
|
| 27 |
+
|
| 28 |
+
More information needed
|
| 29 |
+
|
| 30 |
+
## Training procedure
|
| 31 |
+
|
| 32 |
+
### Training hyperparameters
|
| 33 |
+
|
| 34 |
+
The following hyperparameters were used during training:
|
| 35 |
+
- learning_rate: 1e-05
|
| 36 |
+
- train_batch_size: 2
|
| 37 |
+
- eval_batch_size: 1
|
| 38 |
+
- seed: 42
|
| 39 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 40 |
+
- lr_scheduler_type: linear
|
| 41 |
+
- lr_scheduler_warmup_steps: 100
|
| 42 |
+
- num_epochs: 1
|
| 43 |
+
|
| 44 |
+
### Training results
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
### Framework versions
|
| 49 |
+
|
| 50 |
+
- Transformers 4.33.0
|
| 51 |
+
- Pytorch 2.0.1+cu118
|
| 52 |
+
- Datasets 2.14.4
|
| 53 |
+
- Tokenizers 0.13.3
|
added_tokens.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"[PAD]": 49152
|
| 3 |
+
}
|
config.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "bigcode/tiny_starcoder_py",
|
| 3 |
+
"activation_function": "gelu_pytorch_tanh",
|
| 4 |
+
"architectures": [
|
| 5 |
+
"GPTBigCodeForCausalLM"
|
| 6 |
+
],
|
| 7 |
+
"attention_softmax_in_fp32": true,
|
| 8 |
+
"attn_pdrop": 0.1,
|
| 9 |
+
"bos_token_id": 0,
|
| 10 |
+
"embd_pdrop": 0.1,
|
| 11 |
+
"eos_token_id": 0,
|
| 12 |
+
"inference_runner": 0,
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"layer_norm_epsilon": 1e-05,
|
| 15 |
+
"max_batch_size": null,
|
| 16 |
+
"max_sequence_length": null,
|
| 17 |
+
"model_type": "gpt_bigcode",
|
| 18 |
+
"multi_query": true,
|
| 19 |
+
"n_embd": 768,
|
| 20 |
+
"n_head": 12,
|
| 21 |
+
"n_inner": 3072,
|
| 22 |
+
"n_layer": 20,
|
| 23 |
+
"n_positions": 8192,
|
| 24 |
+
"pad_key_length": true,
|
| 25 |
+
"pre_allocate_kv_cache": false,
|
| 26 |
+
"resid_pdrop": 0.1,
|
| 27 |
+
"scale_attention_softmax_in_fp32": true,
|
| 28 |
+
"scale_attn_weights": true,
|
| 29 |
+
"summary_activation": null,
|
| 30 |
+
"summary_first_dropout": 0.1,
|
| 31 |
+
"summary_proj_to_labels": true,
|
| 32 |
+
"summary_type": "cls_index",
|
| 33 |
+
"summary_use_proj": true,
|
| 34 |
+
"torch_dtype": "float32",
|
| 35 |
+
"transformers_version": "4.33.0",
|
| 36 |
+
"use_cache": true,
|
| 37 |
+
"validate_runner_input": true,
|
| 38 |
+
"vocab_size": 49152
|
| 39 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 0,
|
| 4 |
+
"eos_token_id": 0,
|
| 5 |
+
"transformers_version": "4.33.0"
|
| 6 |
+
}
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:93f206842b394375ce8dd60f5edf39401997bfd0396500066ba579c06125b548
|
| 3 |
+
size 656652573
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<|endoftext|>",
|
| 4 |
+
"<fim_prefix>",
|
| 5 |
+
"<fim_middle>",
|
| 6 |
+
"<fim_suffix>",
|
| 7 |
+
"<fim_pad>",
|
| 8 |
+
"<filename>",
|
| 9 |
+
"<gh_stars>",
|
| 10 |
+
"<issue_start>",
|
| 11 |
+
"<issue_comment>",
|
| 12 |
+
"<issue_closed>",
|
| 13 |
+
"<jupyter_start>",
|
| 14 |
+
"<jupyter_text>",
|
| 15 |
+
"<jupyter_code>",
|
| 16 |
+
"<jupyter_output>",
|
| 17 |
+
"<empty_output>",
|
| 18 |
+
"<commit_before>",
|
| 19 |
+
"<commit_msg>",
|
| 20 |
+
"<commit_after>",
|
| 21 |
+
"<reponame>"
|
| 22 |
+
],
|
| 23 |
+
"bos_token": "<|endoftext|>",
|
| 24 |
+
"eos_token": "<|endoftext|>",
|
| 25 |
+
"pad_token": "[PAD]",
|
| 26 |
+
"unk_token": "<|endoftext|>"
|
| 27 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"additional_special_tokens": [
|
| 4 |
+
"<|endoftext|>",
|
| 5 |
+
"<fim_prefix>",
|
| 6 |
+
"<fim_middle>",
|
| 7 |
+
"<fim_suffix>",
|
| 8 |
+
"<fim_pad>",
|
| 9 |
+
"<filename>",
|
| 10 |
+
"<gh_stars>",
|
| 11 |
+
"<issue_start>",
|
| 12 |
+
"<issue_comment>",
|
| 13 |
+
"<issue_closed>",
|
| 14 |
+
"<jupyter_start>",
|
| 15 |
+
"<jupyter_text>",
|
| 16 |
+
"<jupyter_code>",
|
| 17 |
+
"<jupyter_output>",
|
| 18 |
+
"<empty_output>",
|
| 19 |
+
"<commit_before>",
|
| 20 |
+
"<commit_msg>",
|
| 21 |
+
"<commit_after>",
|
| 22 |
+
"<reponame>"
|
| 23 |
+
],
|
| 24 |
+
"bos_token": "<|endoftext|>",
|
| 25 |
+
"clean_up_tokenization_spaces": true,
|
| 26 |
+
"eos_token": "<|endoftext|>",
|
| 27 |
+
"max_length": 256,
|
| 28 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 29 |
+
"pad_to_multiple_of": null,
|
| 30 |
+
"pad_token": "[PAD]",
|
| 31 |
+
"pad_token_type_id": 0,
|
| 32 |
+
"padding_side": "right",
|
| 33 |
+
"stride": 0,
|
| 34 |
+
"tokenizer_class": "GPT2Tokenizer",
|
| 35 |
+
"truncation_side": "right",
|
| 36 |
+
"truncation_strategy": "longest_first",
|
| 37 |
+
"unk_token": "<|endoftext|>",
|
| 38 |
+
"vocab_size": 49152
|
| 39 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:95e8ce7ecbc65b04df4b46d5ef361477a1465ffcf921a8bd3fd783e20adc8320
|
| 3 |
+
size 3963
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|