Downloads · 30 days
0
nlp-vtcc/baseline-wizardmath_13b
baseline-wizardmath_13b is a machine learning model from nlp-vtcc. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated Nov 18, 2023
Repo size
105 MB
Likes
0
Public
Click a slice to open those files.
.bin105 MB · 100%
From the Hugging Face model README
from datasets import load_dataset
public = load_dataset("nguyenthanhdo/zac2023-math", split="train")
prompt_template = (
"Below is an instruction that describes a task. "
"Write a response that appropriately completes the request.\n\n"
"### Instruction:\n{instruction}\n\n### Response:\n"
)
def form_instruction(example):
question = example["question"]
choices = example["choices"]
choices = "\n".join(choices).strip()
instruction_template = (
"Dưới đây là một câu hỏi trắc nghiệm toán học. "
"Bạn cần phải đưa ra lời giải từng bước trong vòng 200 chữ. "
'Cuối cùng lựa chọn một đáp án viết dưới dạng "Đáp án: <chữ cái đáp án>".\n'
"Câu hỏi: {question}\n"
"{choices}\nBài giải:"
)
instruction = instruction_template.format(question=question, choices=choices)
return instruction
example = public[88]
example_instruction = form_instruction(example)
example_prompt = prompt_template.format(instruction=example_instruction)
print(example_prompt)
"""
Below is an instruction that describes a task. Write a response that appropriately completes the request.
### Instruction:
Dưới đây là một câu hỏi trắc nghiệm toán học. Bạn cần phải đưa ra lời giải từng bước trong vòng 200 chữ. Cuối cùng lựa chọn một đáp án viết dưới dạng "Đáp án: <chữ cái đáp án>".
Câu hỏi: Số nào dưới đây có cùng giá trị với 0,08?
A. 0,800
B. 8,00
C. 0,80
D. 0,080
Bài giải:
### Response:
"""