shahidul034
commited on
Commit
•
3056919
1
Parent(s):
ab8541b
End of training
Browse files
README.md
CHANGED
@@ -1,80 +1,53 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
generation_config = GenerationConfig(
|
56 |
-
temperature=0.1,
|
57 |
-
top_p=0.75,
|
58 |
-
repetition_penalty=1.1,
|
59 |
-
)
|
60 |
-
with torch.inference_mode():
|
61 |
-
return model.generate(
|
62 |
-
input_ids=input_ids,
|
63 |
-
generation_config=generation_config,
|
64 |
-
return_dict_in_generate=True,
|
65 |
-
output_scores=True,
|
66 |
-
max_new_tokens=256,
|
67 |
-
)
|
68 |
-
def format_response(response: GreedySearchDecoderOnlyOutput) -> str:
|
69 |
-
decoded_output = tokenizer.decode(response.sequences[0])
|
70 |
-
response = decoded_output.split("### Response:")[1].strip()
|
71 |
-
return "\n".join(textwrap.wrap(response))
|
72 |
-
|
73 |
-
def ask_alpaca(prompt: str, model: PeftModel = model) -> str:
|
74 |
-
prompt = create_prompt(prompt)
|
75 |
-
response = generate_response(prompt, model)
|
76 |
-
print(format_response(response))
|
77 |
-
|
78 |
-
ask_alpaca("where is kuet located?")
|
79 |
-
|
80 |
-
```
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: TheBloke/Mistral-7B-Instruct-v0.1-GPTQ
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: KUET_information_LLM
|
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 |
+
# KUET_information_LLM
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [TheBloke/Mistral-7B-Instruct-v0.1-GPTQ](https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GPTQ) 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: 0.0002
|
36 |
+
- train_batch_size: 24
|
37 |
+
- eval_batch_size: 8
|
38 |
+
- seed: 42
|
39 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
40 |
+
- lr_scheduler_type: cosine
|
41 |
+
- training_steps: 600
|
42 |
+
- mixed_precision_training: Native AMP
|
43 |
+
|
44 |
+
### Training results
|
45 |
+
|
46 |
+
|
47 |
+
|
48 |
+
### Framework versions
|
49 |
+
|
50 |
+
- Transformers 4.36.0.dev0
|
51 |
+
- Pytorch 2.1.1+cu121
|
52 |
+
- Datasets 2.15.0
|
53 |
+
- Tokenizers 0.15.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|