Oriya
code
shantipriya commited on
Commit
31d2d0d
·
1 Parent(s): 92c9e3a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -30
README.md CHANGED
@@ -96,7 +96,6 @@ else:
96
  device_map={"": device},
97
  )
98
 
99
-
100
  def generate_prompt(instruction, input=None):
101
  if input:
102
  return f"""### Instruction:\n{instruction}\n\n### Input:\n{input}\n\n### Response:\n"""
@@ -109,7 +108,6 @@ model.eval()
109
  if torch.__version__ >= "2":
110
  model = torch.compile(model)
111
 
112
-
113
  def evaluate(
114
  instruction,
115
  input=None,
@@ -148,34 +146,6 @@ def evaluate(
148
  print(output)
149
  return output.split("### Response:")[1].strip()
150
 
151
-
152
- g = gr.Interface(
153
- fn=evaluate,
154
- inputs=[
155
- gr.components.Textbox(
156
- lines=2, label="Instruction", placeholder="Tell me about alpacas."
157
- ),
158
- gr.components.Textbox(lines=2, label="Input", placeholder="none"),
159
- gr.components.Slider(minimum=0, maximum=1, value=0.1, label="Temperature"),
160
- gr.components.Slider(minimum=0, maximum=1, value=0.75, label="Top p"),
161
- gr.components.Slider(minimum=0, maximum=100, step=1, value=40, label="Top k"),
162
- gr.components.Slider(minimum=1, maximum=4, step=1, value=4, label="Beams"),
163
- gr.components.Slider(
164
- minimum=1, maximum=512, step=1, value=128, label="Max tokens"
165
- ),
166
- ],
167
- outputs=[
168
- gr.inputs.Textbox(
169
- lines=5,
170
- label="Output",
171
- )
172
- ],
173
- title="OdiaGenAI-LoRA",
174
- description="OdiaGenAI-LoRA is a 7B-parameter LLaMA model fine-tuned to follow Odia instructions. It is trained on the [Combine_Odia_171K](https://huggingface.co/datasets/OdiaGenAI/all_combined_odia_171k) Odia translated dataset and makes use of the Huggingface LLaMA implementation. For more information, please visit [the project's website](https://www.odiagenai.org/).",
175
- )
176
- g.queue(concurrency_count=1)
177
- g.launch(debug=True)
178
-
179
  ```
180
 
181
 
 
96
  device_map={"": device},
97
  )
98
 
 
99
  def generate_prompt(instruction, input=None):
100
  if input:
101
  return f"""### Instruction:\n{instruction}\n\n### Input:\n{input}\n\n### Response:\n"""
 
108
  if torch.__version__ >= "2":
109
  model = torch.compile(model)
110
 
 
111
  def evaluate(
112
  instruction,
113
  input=None,
 
146
  print(output)
147
  return output.split("### Response:")[1].strip()
148
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  ```
150
 
151