hafidhsoekma commited on
Commit
5dea472
1 Parent(s): ef5df60

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +31 -7
README.md CHANGED
@@ -20,6 +20,7 @@ pipeline_tag: text-generation
20
 
21
  ## Model Details
22
 
 
23
  - Model: [nferroukhi/WizardLM-Uncensored-Falcon-7b-sharded-bf16](https://huggingface.co/nferroukhi/WizardLM-Uncensored-Falcon-7b-sharded-bf16)
24
  - Base Model: [ehartford/WizardLM-Uncensored-Falcon-7b](https://huggingface.co/ehartford/WizardLM-Uncensored-Falcon-7b)
25
  - Fine-tuned with: [MBZUAI/Bactrian-X (Indonesian subset)](https://huggingface.co/datasets/MBZUAI/Bactrian-X/viewer/id/train)
@@ -38,7 +39,6 @@ pip install -U bitsandbytes==0.39.0
38
  pip install -U einops==0.6.1
39
  ```
40
 
41
-
42
  ## How to Use
43
 
44
  ### Stream Output
@@ -66,12 +66,24 @@ model = PeftModel.from_pretrained(model, "azale-ai/DukunLM-Uncensored-7B")
66
  tokenizer = AutoTokenizer.from_pretrained("azale-ai/DukunLM-Uncensored-7B")
67
  streamer = TextStreamer(tokenizer)
68
 
69
- input_prompt = "Jelaskan mengapa air penting bagi kehidupan manusia."
 
70
 
71
- text = f"""
72
- Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
73
 
74
  ### Instruction:
 
 
 
 
 
 
 
 
 
 
 
75
  {input_prompt}
76
 
77
  ### Response:
@@ -113,12 +125,24 @@ model = AutoModelForCausalLM.from_pretrained(
113
  model = PeftModel.from_pretrained(model, "azale-ai/DukunLM-Uncensored-7B")
114
  tokenizer = AutoTokenizer.from_pretrained("azale-ai/DukunLM-Uncensored-7B")
115
 
116
- input_prompt = "Jelaskan mengapa air penting bagi kehidupan manusia."
 
117
 
118
- text = f"""
119
- Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
120
 
121
  ### Instruction:
 
 
 
 
 
 
 
 
 
 
 
122
  {input_prompt}
123
 
124
  ### Response:
 
20
 
21
  ## Model Details
22
 
23
+ [![Open in Google Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1WYhhfvFzQukGzEqWHu3gKmigStJTjWxV?usp=sharing)
24
  - Model: [nferroukhi/WizardLM-Uncensored-Falcon-7b-sharded-bf16](https://huggingface.co/nferroukhi/WizardLM-Uncensored-Falcon-7b-sharded-bf16)
25
  - Base Model: [ehartford/WizardLM-Uncensored-Falcon-7b](https://huggingface.co/ehartford/WizardLM-Uncensored-Falcon-7b)
26
  - Fine-tuned with: [MBZUAI/Bactrian-X (Indonesian subset)](https://huggingface.co/datasets/MBZUAI/Bactrian-X/viewer/id/train)
 
39
  pip install -U einops==0.6.1
40
  ```
41
 
 
42
  ## How to Use
43
 
44
  ### Stream Output
 
66
  tokenizer = AutoTokenizer.from_pretrained("azale-ai/DukunLM-Uncensored-7B")
67
  streamer = TextStreamer(tokenizer)
68
 
69
+ instruction_prompt = "Jelaskan mengapa air penting bagi kehidupan manusia."
70
+ input_prompt = ""
71
 
72
+ if input_prompt == "":
73
+ text = f"""Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
74
 
75
  ### Instruction:
76
+ {instruction_prompt}
77
+
78
+ ### Response:
79
+ """
80
+ else:
81
+ text = f"""Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
82
+
83
+ ### Instruction:
84
+ {instruction_prompt}
85
+
86
+ ### Input:
87
  {input_prompt}
88
 
89
  ### Response:
 
125
  model = PeftModel.from_pretrained(model, "azale-ai/DukunLM-Uncensored-7B")
126
  tokenizer = AutoTokenizer.from_pretrained("azale-ai/DukunLM-Uncensored-7B")
127
 
128
+ instruction_prompt = "Bangun dialog chatbot untuk layanan pelanggan yang ingin membantu pelanggan memesan produk tertentu."
129
+ input_prompt = "Produk: Sepatu Nike Air Max"
130
 
131
+ if input_prompt == "":
132
+ text = f"""Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
133
 
134
  ### Instruction:
135
+ {instruction_prompt}
136
+
137
+ ### Response:
138
+ """
139
+ else:
140
+ text = f"""Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
141
+
142
+ ### Instruction:
143
+ {instruction_prompt}
144
+
145
+ ### Input:
146
  {input_prompt}
147
 
148
  ### Response: