Training in progress, epoch 17
Browse files- README.md +5 -11
- adapter_config.json +3 -3
- adapter_model.safetensors +1 -1
- runs/Jan06_06-55-43_2db6e875cc75/events.out.tfevents.1736146549.2db6e875cc75.518.0 +3 -0
- special_tokens_map.json +4 -0
- tokenizer_config.json +8 -0
- training_args.bin +1 -1
README.md
CHANGED
@@ -1,24 +1,17 @@
|
|
1 |
---
|
2 |
base_model: meta-llama/CodeLlama-7b-Instruct-hf
|
3 |
-
library_name:
|
4 |
-
model_name:
|
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
|
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/
|
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:
|
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:
|
3 |
size 5752
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d76259ed39045eb5635cf118a132e3a778b7de48e2f8b54079ef5d2282da4289
|
3 |
size 5752
|