basharatwali commited on
Commit
16079c2
Β·
verified Β·
1 Parent(s): 086112c

Training in progress, epoch 17

Browse files
README.md CHANGED
@@ -1,24 +1,17 @@
1
  ---
2
  base_model: meta-llama/CodeLlama-7b-Instruct-hf
3
- library_name: transformers
4
- model_name: CodeLlama-Instruct-Python-7b
5
  tags:
6
  - generated_from_trainer
7
  - trl
8
  - sft
9
- - CodeLlama
10
- - Python
11
  licence: license
12
- datasets:
13
- - cardiffnlp/databench
14
  ---
15
 
16
- # Model Card for CodeLlama-Instruct-Python-7b
17
 
18
  This model is a fine-tuned version of [meta-llama/CodeLlama-7b-Instruct-hf](https://huggingface.co/meta-llama/CodeLlama-7b-Instruct-hf).
19
- Finetuned on DataBench [cardiffnlp/databench](https://huggingface.co/datasets/cardiffnlp/databench), which is publicly available on Hugging Face.
20
- It is specifically designed to generate a single line of Python code in response to questions from the dataset.
21
- The finetuning process ensures it follows instructions for producing the required Python code accurately.
22
  It has been trained using [TRL](https://github.com/huggingface/trl).
23
 
24
  ## Quick start
@@ -27,7 +20,7 @@ It has been trained using [TRL](https://github.com/huggingface/trl).
27
  from transformers import pipeline
28
 
29
  question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
30
- generator = pipeline("text-generation", model="basharatwali/CodeLlama-Instruct-Python-7b", device="cuda")
31
  output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
32
  print(output["generated_text"])
33
  ```
@@ -41,6 +34,7 @@ This model was trained with SFT.
41
 
42
  ### Framework versions
43
 
 
44
  - TRL: 0.13.0
45
  - Transformers: 4.48.0.dev0
46
  - Pytorch: 2.5.1+cu121
 
1
  ---
2
  base_model: meta-llama/CodeLlama-7b-Instruct-hf
3
+ library_name: peft
4
+ model_name: CodeLlamaInstruct_finetuned_2
5
  tags:
6
  - generated_from_trainer
7
  - trl
8
  - sft
 
 
9
  licence: license
 
 
10
  ---
11
 
12
+ # Model Card for CodeLlamaInstruct_finetuned_2
13
 
14
  This model is a fine-tuned version of [meta-llama/CodeLlama-7b-Instruct-hf](https://huggingface.co/meta-llama/CodeLlama-7b-Instruct-hf).
 
 
 
15
  It has been trained using [TRL](https://github.com/huggingface/trl).
16
 
17
  ## Quick start
 
20
  from transformers import pipeline
21
 
22
  question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
23
+ generator = pipeline("text-generation", model="basharatwali/CodeLlamaInstruct_finetuned_2", device="cuda")
24
  output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
25
  print(output["generated_text"])
26
  ```
 
34
 
35
  ### Framework versions
36
 
37
+ - PEFT 0.14.1.dev0
38
  - TRL: 0.13.0
39
  - Transformers: 4.48.0.dev0
40
  - Pytorch: 2.5.1+cu121
adapter_config.json CHANGED
@@ -24,10 +24,10 @@
24
  "rank_pattern": {},
25
  "revision": null,
26
  "target_modules": [
27
- "k_proj",
28
- "v_proj",
29
  "o_proj",
30
- "q_proj"
 
 
31
  ],
32
  "task_type": "CAUSAL_LM",
33
  "use_dora": false,
 
24
  "rank_pattern": {},
25
  "revision": null,
26
  "target_modules": [
 
 
27
  "o_proj",
28
+ "q_proj",
29
+ "v_proj",
30
+ "k_proj"
31
  ],
32
  "task_type": "CAUSAL_LM",
33
  "use_dora": false,
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2744cccc9ff911989664ef5b6902ee0294700bd71a3d2b6b015b852f3fb1a645
3
  size 67143296
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a019e4944279f3fd1b0a1ba23a49cf3aa154ba2b935a9f76a33f3525cfb40c4
3
  size 67143296
runs/Jan06_06-55-43_2db6e875cc75/events.out.tfevents.1736146549.2db6e875cc75.518.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:10e8c89cbb5ae71fc4f7a7cbfa770f27ae0375902ea9e3b8eeb4eaaf22d082d1
3
+ size 7883
special_tokens_map.json CHANGED
@@ -1,5 +1,9 @@
1
  {
2
  "additional_special_tokens": [
 
 
 
 
3
  "▁<PRE>",
4
  "▁<MID>",
5
  "▁<SUF>",
 
1
  {
2
  "additional_special_tokens": [
3
+ "▁<PRE>",
4
+ "▁<MID>",
5
+ "▁<SUF>",
6
+ "▁<EOT>",
7
  "▁<PRE>",
8
  "▁<MID>",
9
  "▁<SUF>",
tokenizer_config.json CHANGED
@@ -60,6 +60,10 @@
60
  }
61
  },
62
  "additional_special_tokens": [
 
 
 
 
63
  "▁<PRE>",
64
  "▁<MID>",
65
  "▁<SUF>",
@@ -73,14 +77,18 @@
73
  "extra_special_tokens": {},
74
  "fill_token": "<FILL_ME>",
75
  "legacy": null,
 
76
  "middle_token": "▁<MID>",
77
  "model_max_length": 1000000000000000019884624838656,
78
  "pad_token": "</s>",
79
  "prefix_token": "▁<PRE>",
80
  "sp_model_kwargs": {},
 
81
  "suffix_token": "▁<SUF>",
82
  "tokenizer_class": "CodeLlamaTokenizer",
83
  "torch_dtype": "auto",
 
 
84
  "unk_token": "<unk>",
85
  "use_default_system_prompt": false
86
  }
 
60
  }
61
  },
62
  "additional_special_tokens": [
63
+ "▁<PRE>",
64
+ "▁<MID>",
65
+ "▁<SUF>",
66
+ "▁<EOT>",
67
  "▁<PRE>",
68
  "▁<MID>",
69
  "▁<SUF>",
 
77
  "extra_special_tokens": {},
78
  "fill_token": "<FILL_ME>",
79
  "legacy": null,
80
+ "max_length": 1024,
81
  "middle_token": "▁<MID>",
82
  "model_max_length": 1000000000000000019884624838656,
83
  "pad_token": "</s>",
84
  "prefix_token": "▁<PRE>",
85
  "sp_model_kwargs": {},
86
+ "stride": 0,
87
  "suffix_token": "▁<SUF>",
88
  "tokenizer_class": "CodeLlamaTokenizer",
89
  "torch_dtype": "auto",
90
+ "truncation_side": "right",
91
+ "truncation_strategy": "longest_first",
92
  "unk_token": "<unk>",
93
  "use_default_system_prompt": false
94
  }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1351efb37072ea47d02669d9824da568ea8ad2eaa2e9abe28bb65775bd5909f5
3
  size 5752
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d76259ed39045eb5635cf118a132e3a778b7de48e2f8b54079ef5d2282da4289
3
  size 5752