File size: 2,349 Bytes
ca4625f
c065201
 
 
ca4625f
 
 
 
 
 
c065201
 
ca4625f
 
 
 
 
c065201
 
ca4625f
 
 
c065201
 
ca4625f
c065201
 
5887ec5
c065201
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
968a9e3
 
 
 
8ca1577
831ae32
 
34c640c
aba1909
831ae32
 
 
 
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
56
57
58
59
60
61
62
63
64
---
base_model: meta-llama/Llama-3.2-1B
datasets:
- student-abdullah/BigPharma_Generic_Q-A_Format_Augemented_Dataset
language:
- en
license: apache-2.0
tags:
- text-generation-inference
- transformers
- torch
- trl
- unsloth
- llama
- gguf
---


# Uploaded model

- **Developed by:** student-abdullah
- **License:** apache-2.0
- **Finetuned from model:** meta-llama/Llama-3.2-1B
- **Created on:** 1st October, 2024

---
# Acknowledgement
<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>

---
# Model Description
This model is fine-tuned from the meta-llama/Llama-3.2-1B base model to enhance its capabilities in generating relevant and accurate responses related to generic medications under the PMBJP scheme. The fine-tuning process included the following hyperparameters:

- Fine Tuning Template: Llama Q&A
- Max Tokens: 512
- LoRA Alpha: 6
- LoRA Rank (r): 128
- Learning rate: 5e-5
- Gradient Accumulation Steps: 2
- Batch Size: 4
- Quantization: None

---
# Model Quantitative Performace
- Training Quantitative Loss: 0.1473 (at final 3rd epoch 4505th Step)

---
# Limitations
- Token Limitations: With a max token limit of 512, the model might not handle very long queries or contexts effectively.
- Training Data Limitations: The model’s performance is contingent on the quality and coverage of the fine-tuning dataset, which may affect its generalizability to different contexts or medications not covered in the dataset.
- Potential Biases: As with any model fine-tuned on specific data, there may be biases based on the dataset used for training.

---
# Model Performace Evaluation:
- Evaluation on 1000 Questions based on dataset (to evaluate the finetuned knowledge base)
- At temperature 0.3
- Correct Responses: 82.23%%
- Incorrect Responses: 17.77%

<p align="center">
  <img src="https://cdn-uploads.huggingface.co/production/uploads/669100cee760dfd88da676a6/J311uHv8jHNgQP9JadRWI.png" width="20%" style="display:inline-block;"/>
  <img src="https://cdn-uploads.huggingface.co/production/uploads/669100cee760dfd88da676a6/PMQbOJ0uIzKEOLSymjgDk.png" width="35%" style="display:inline-block;"/>
  <img src="https://cdn-uploads.huggingface.co/production/uploads/669100cee760dfd88da676a6/eEWHD1m-PMCFrBOWa0lsA.png" width="35%" style="display:inline-block;"/>
</p>