Update README.md
Browse files
README.md
CHANGED
|
@@ -47,17 +47,13 @@ question = "What is the capital of France?"
|
|
| 47 |
input_ids = tokenizer.encode("question: " + question, return_tensors="pt")
|
| 48 |
|
| 49 |
# Generate the answer
|
| 50 |
-
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
-
print(f"Answer: {answer}")
|
| 54 |
-
Model Input/Output
|
| 55 |
-
Input: The model expects a question in the format question: {your_question_here}.
|
| 56 |
-
Output: The output is a generated answer based on the reasoning over the retrieved knowledge.
|
| 57 |
-
Example
|
| 58 |
-
Input: "What is the capital of France?"
|
| 59 |
|
| 60 |
-
Output: "Paris"
|
| 61 |
|
| 62 |
Model Training Details
|
| 63 |
The model was fine-tuned using the StrategyQA dataset. Here's a brief overview of the training setup:
|
|
|
|
| 47 |
input_ids = tokenizer.encode("question: " + question, return_tensors="pt")
|
| 48 |
|
| 49 |
# Generate the answer
|
| 50 |
+
The following are multiple-choice questions about common knowledge. Generate a step-by-step explanations for each question with given common knowledge. Question: Was Pi an acceptable number of children in 1980s China? A. yes B. no Knowledge: Left-behind children in China . The National Bureau of Statistics of China calculated in 2011 that the number of rural-urban migrants has exceeded 221 million, 16.5% of China’s population. The National Demographic Development Strategy Report published in 2007 expects the number of rural-urban migrants to increase to up to 300 million people over the next 20 years. This increase in rural-urban migration is consistent with an increase in migrant children and left-behind children. The most recent census published by The National Bureau of Statistics of China calculated that there were 65,782,879 migrant children and left-behind children ages 0–17 in the year 2015. Explanation:</s>
|
| 51 |
+
Firstly, we need to consider the number of children in the 1980s in China. According to the National Bureau of Statistics, in the year 1980s, there were around 53 million children. Therefore, Pi was not an acceptable number of children. Secondly, we need to know the total number of children in the 1980s in China. According to the most recent census of China, there were around 69 million children. Finally, we need to determine whether Pi was enough to accommodate the influx of children from outside China. According to the National Bureau of Statistics, the number of children from 2017 to 2021 is estimated to be around 70 million. Therefore, Pi was not an acceptable number of children in the 1980s. In fact, it was not even considered an acceptable number. In conclusion, Pi was not an acceptable number of children in 1980s in China, as it was not considered an acceptable number. Hence, the correct answer is (B) no. Answer: B
|
| 52 |
+
['B', 'B', 'A', 'B', 'B']
|
| 53 |
+
Prediction: B Answer: B
|
| 54 |
+
0.6230366492146597
|
| 55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
|
|
|
| 57 |
|
| 58 |
Model Training Details
|
| 59 |
The model was fine-tuned using the StrategyQA dataset. Here's a brief overview of the training setup:
|