akshaybharadwaj96 commited on
Commit
6d3fd52
·
verified ·
1 Parent(s): 18685ad

Upload 11 files

Browse files

updated config.json

Files changed (5) hide show
  1. README.md +1 -8
  2. adapter_model.safetensors +1 -1
  3. config.json +55 -0
  4. tokenizer.json +10 -1
  5. training_args.bin +1 -1
README.md CHANGED
@@ -1,13 +1,6 @@
1
  ---
2
  base_model: Salesforce/codegen-350M-mono
3
- license: apache-2.0
4
- datasets:
5
- - google/code_x_glue_ct_code_to_text
6
- language:
7
- - en
8
- metrics:
9
- - bleu
10
- pipeline_tag: text-generation
11
  ---
12
 
13
  # Model Card for Model ID
 
1
  ---
2
  base_model: Salesforce/codegen-350M-mono
3
+ library_name: peft
 
 
 
 
 
 
 
4
  ---
5
 
6
  # Model Card for Model ID
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5a19989674fc643868e89448b447163039bc38e26b78003d85f9b4ced825ac59
3
  size 7874776
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4c1e53a4aaea92587393b4434b8fbf3bbadf83fe87aee9266ed09717e418a8e
3
  size 7874776
config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Salesforce/codegen-350M-mono",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "CodeGenForCausalLM"
6
+ ],
7
+ "attn_pdrop": 0.0,
8
+ "bos_token_id": 1,
9
+ "embd_pdrop": 0.0,
10
+ "eos_token_id": 50256,
11
+ "gradient_checkpointing": false,
12
+ "initializer_range": 0.02,
13
+ "layer_norm_epsilon": 1e-05,
14
+ "model_type": "codegen",
15
+ "n_ctx": 2048,
16
+ "n_embd": 1024,
17
+ "n_head": 16,
18
+ "n_inner": null,
19
+ "n_layer": 20,
20
+ "n_positions": 2048,
21
+ "quantization_config": {
22
+ "bnb_4bit_compute_dtype": "bfloat16",
23
+ "bnb_4bit_quant_type": "nf4",
24
+ "bnb_4bit_use_double_quant": true,
25
+ "llm_int8_enable_fp32_cpu_offload": false,
26
+ "llm_int8_has_fp16_weight": false,
27
+ "llm_int8_skip_modules": null,
28
+ "llm_int8_threshold": 6.0,
29
+ "load_in_4bit": true,
30
+ "load_in_8bit": false,
31
+ "quant_method": "bitsandbytes"
32
+ },
33
+ "resid_pdrop": 0.0,
34
+ "rotary_dim": 32,
35
+ "scale_attn_weights": true,
36
+ "summary_activation": null,
37
+ "summary_first_dropout": 0.1,
38
+ "summary_proj_to_labels": true,
39
+ "summary_type": "cls_index",
40
+ "summary_use_proj": true,
41
+ "task_specific_params": {
42
+ "text-generation": {
43
+ "do_sample": true,
44
+ "max_length": 50,
45
+ "temperature": 1.0
46
+ }
47
+ },
48
+ "tie_word_embeddings": false,
49
+ "tokenizer_class": "GPT2Tokenizer",
50
+ "torch_dtype": "float16",
51
+ "transformers_version": "4.36.2",
52
+ "use_cache": true,
53
+ "use_flash_attention_2": true,
54
+ "vocab_size": 51200
55
+ }
tokenizer.json CHANGED
@@ -6,7 +6,16 @@
6
  "strategy": "LongestFirst",
7
  "stride": 0
8
  },
9
- "padding": null,
 
 
 
 
 
 
 
 
 
10
  "added_tokens": [
11
  {
12
  "id": 50256,
 
6
  "strategy": "LongestFirst",
7
  "stride": 0
8
  },
9
+ "padding": {
10
+ "strategy": {
11
+ "Fixed": 256
12
+ },
13
+ "direction": "Right",
14
+ "pad_to_multiple_of": null,
15
+ "pad_id": 50256,
16
+ "pad_type_id": 0,
17
+ "pad_token": "<|endoftext|>"
18
+ },
19
  "added_tokens": [
20
  {
21
  "id": 50256,
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bf2f48a7002c3728e963de579d63f6c00b08ec511d33d8bb2f9e1e5a051c6950
3
  size 4792
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5f5f6d037e5f5351ac9a76ac48d009cfe5032e52df87658afeeaa04a79e6405
3
  size 4792