Dudeman523 commited on
Commit
4f9e46c
·
verified ·
1 Parent(s): 898e016

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +156 -3
README.md CHANGED
@@ -1,3 +1,156 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ base_model:
6
+ - meta-llama/Llama-3.2-3B-Instruct
7
+ ---
8
+ # RustBustersHSV-Llama-3.2-3B-Instruct-LoRA
9
+
10
+ This model is a fine-tuned version of [meta-llama/Llama-3.2-3B-Instruct](https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct) optimized for laser cleaning customer service interactions. It was developed for RustBustersHSV, a laser cleaning and resurfacing company in Huntsville, Alabama.
11
+
12
+ ## Model Details
13
+
14
+ - **Model type**: Fine-tuned Llama-3.2-3B-Instruct with LoRA
15
+ - **Language(s)**: English
16
+ - **License**: [Llama 3 Community License](https://llama.meta.com/llama3/license/)
17
+ - **Finetuning approach**: Parameter-efficient fine-tuning with Low-Rank Adaptation (LoRA)
18
+
19
+ ## Intended Uses & Limitations
20
+
21
+ ### Intended Uses
22
+
23
+ This model is designed to:
24
+
25
+ - Answer customer inquiries about laser cleaning services
26
+ - Provide detailed information about RustBustersHSV's services
27
+ - Help customers understand the laser cleaning process
28
+ - Address common concerns and objections
29
+ - Guide customers toward requesting a free quote
30
+
31
+ ### Limitations
32
+
33
+ This model:
34
+
35
+ - Is not designed to provide specific pricing information
36
+ - Should not be used for non-laser cleaning domains without further adaptation
37
+ - Is limited to English language responses
38
+ - May not have expertise in very technical aspects beyond its training data
39
+ - Should be monitored when deployed in a customer-facing environment
40
+
41
+ ## Training Procedure
42
+
43
+ ### Training Data
44
+
45
+ The model was fine-tuned on 3,000 synthetic QA pairs categorized into:
46
+
47
+ - General inquiries about laser cleaning
48
+ - Service-specific questions
49
+ - Logistics and location information
50
+ - Process details
51
+ - Concerns and objections
52
+ - Customer experience
53
+ - Technical aspects
54
+
55
+ All QA pairs were generated using templates and variations designed to mimic real customer service interactions for a laser cleaning business.
56
+
57
+ ### Training Hyperparameters
58
+
59
+ - **LoRA Configuration**:
60
+ - r: 8
61
+ - lora_alpha: 16
62
+ - lora_dropout: 0.1
63
+ - bias: "none"
64
+ - target_modules: ["q_proj", "v_proj"]
65
+ - task_type: "CAUSAL_LM"
66
+
67
+ - **Training Hyperparameters**:
68
+ - Batch size: 1
69
+ - Learning rate: 2e-5
70
+ - Optimizer: AdamW
71
+ - Sequence length: 128
72
+ - Epochs: 3
73
+ - Warmup ratio: 0.1
74
+ - Early stopping patience: 3
75
+
76
+ ### Framework Versions
77
+
78
+ - Transformers 4.38.0+
79
+ - PyTorch 2.0+
80
+ - PEFT for LoRA fine-tuning
81
+
82
+ ## Uses
83
+
84
+ This model is intended to be used as a customer service assistant for a laser cleaning business. It can be integrated into:
85
+
86
+ - Live chat on a company website
87
+ - Customer inquiry response systems
88
+ - Internal knowledge base for employees
89
+ - Training materials for new customer service representatives
90
+
91
+ ## Bias, Risks, and Limitations
92
+
93
+ The model is specialized for laser cleaning customer service and may:
94
+
95
+ - Emphasize the benefits of laser cleaning over alternative methods
96
+ - Always attempt to guide customers toward requesting quotes
97
+ - Have limited knowledge outside the laser cleaning domain
98
+ - Not understand or respond accurately to highly technical queries outside its training
99
+
100
+ ## Training Performance
101
+
102
+ The model was trained using the AdamW optimizer with a linear learning rate scheduler and warmup. Early stopping was used to prevent overfitting.
103
+
104
+ ## Environmental Impact
105
+
106
+ - The model was fine-tuned using parameter-efficient LoRA techniques to minimize computational resources
107
+ - Training was performed on TPU to maximize efficiency
108
+
109
+ ## How to Use
110
+
111
+ You can use this model with the Transformers pipeline:
112
+
113
+ ```python
114
+ from peft import PeftModel, PeftConfig
115
+ from transformers import AutoModelForCausalLM, AutoTokenizer
116
+
117
+ # Load base model
118
+ model_name = "meta-llama/Llama-3.2-3B-Instruct"
119
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
120
+ model = AutoModelForCausalLM.from_pretrained(model_name)
121
+
122
+ # Load adapter
123
+ adapter_path = "RustBustersHSV/Llama-3.2-3B-Instruct-RustBusters"
124
+ model = PeftModel.from_pretrained(model, adapter_path)
125
+
126
+ # Format your prompt appropriately
127
+ system_prompt = """You are Lloyd, the first point of contact for customers of Rustbusters. Please be warm and friendly and offer actionable information. Rustbusters is a laser cleaning company that specializes in removing rust, paint, and other contaminants using advanced laser technology. Our services include industrial cleaning, restoration, paint removal, and surface preparation."""
128
+ user_prompt = "What is laser cleaning and how does it work?"
129
+
130
+ prompt = f"<|im_start|>system\n{system_prompt}<|im_end|>\n<|im_start|>user\n{user_prompt}<|im_end|>\n<|im_start|>assistant\n"
131
+
132
+ # Generate response
133
+ inputs = tokenizer(prompt, return_tensors="pt")
134
+ outputs = model.generate(**inputs, max_length=512, temperature=0.7, top_p=0.9)
135
+ response = tokenizer.decode(outputs[0], skip_special_tokens=True)
136
+ print(response)
137
+ ```
138
+
139
+ ## Community and Contributions
140
+
141
+ This model is maintained by RustBustersHSV. For questions or issues, please contact [contact information].
142
+
143
+ ## Citation
144
+
145
+ If you use this model in research, please cite:
146
+
147
+ ```
148
+ @misc{rustbustersllama32,
149
+ author = {RustBustersHSV},
150
+ title = {RustBustersHSV-Llama-3.2-3B-Instruct-LoRA},
151
+ year = {2025},
152
+ publisher = {Hugging Face},
153
+ journal = {Hugging Face model repository},
154
+ howpublished = {\url{https://huggingface.co/RustBustersHSV/Llama-3.2-3B-Instruct-RustBusters}}
155
+ }
156
+ ```