LukeOLuck commited on
Commit
631ee20
1 Parent(s): f83e216

Update model

Browse files
Files changed (3) hide show
  1. app.py +1 -1
  2. data.json +28 -13
  3. flan-t5-small.pth +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
11
  ### Load example texts ###
12
  with open("data.json", 'r', encoding='utf-8') as f:
13
  loaded_data = json.load(f)
14
-
15
  questions_texts = loaded_data["questions"]
16
  system_prompts = loaded_data["system_prompts"]
17
  response_texts = loaded_data["responses"]
 
11
  ### Load example texts ###
12
  with open("data.json", 'r', encoding='utf-8') as f:
13
  loaded_data = json.load(f)
14
+
15
  questions_texts = loaded_data["questions"]
16
  system_prompts = loaded_data["system_prompts"]
17
  response_texts = loaded_data["responses"]
data.json CHANGED
@@ -1,23 +1,38 @@
1
  {
2
  "questions": [
3
- "You will be given a definition of a task first, then some input of the task.\nThis task is about using the specified sentence and converting the sentence to Resource Description Framework (RDF) triplets of the form (subject, predicate object). The RDF triplets generated must be such that the triplets accurately capture the structure and semantics of the input sentence. The input is a sentence and the output is a list of triplets of the form [subject, predicate, object] that capture the relationships present in the sentence. When a sentence has more than 1 RDF triplet possible, the output must contain all of them.\n\nAFC Ajax (amateurs)'s ground is Sportpark De Toekomst where Ajax Youth Academy also play.\nOutput:",
4
- "Generate an approximately fifteen-word sentence that describes all this data: Midsummer House eatType restaurant; Midsummer House food Chinese; Midsummer House priceRange moderate; Midsummer House customer rating 3 out of 5; Midsummer House near All Bar One",
5
- "What happens next in this paragraph?\n\nShe then rubs a needle on a cotton ball then pushing it onto a pencil and wrapping thread around it. She then holds up a box of a product and then pouring several liquids into a bowl. she\nChoose your answer from: A. adds saucepan and shakes up the product in a grinder. B. pinches the thread to style a cigarette, and then walks away. C. then dips the needle in ink and using the pencil to draw a design on her leg, rubbing it off with a rag in the end. D. begins to style her hair and cuts it several times before parting the ends of it to show the hairstyle she has created.",
6
- "Please answer the following question: I want to test the ability of students to read a passage and answer questions about it. Could you please come up with a good question for the passage \"In 1901, the Federation of Australia was the process by which the six separate British self-governing colonies of New South Wales, Queensland, South Australia, Tasmania, Victoria and Western Australia formed one nation. They kept the systems of government that they had developed as separate colonies but also would have a federal government that was responsible for matters concerning the whole nation. When the Constitution of Australia came into force, the colonies collectively became states of the Commonwealth of Australia.\"?\nAnswer:",
7
- "James runs a TV show and there are 5 main characters and 4 minor characters. He pays the minor characters $15,000 each episode. He paid the major characters three times as much. How much does he pay per episode? Let's be accurate as possible."
 
 
 
 
 
8
  ],
9
  "system_prompts": [
10
- "",
11
- "You are an AI assistant. You will be given a task. You must generate a detailed and long answer.",
 
 
12
  "You are a helpful assistant, who always provide explanation. Think like you are answering to a five year old.",
13
  "You are an AI assistant. You will be given a task. You must generate a detailed and long answer.",
14
- "You are an AI assistant that helps people find information."
 
 
 
15
  ],
16
  "responses": [
17
- "[\n [\"AFC Ajax (amateurs)\", \"has ground\", \"Sportpark De Toekomst\"],\n [\"Ajax Youth Academy\", \"plays at\", \"Sportpark De Toekomst\"]\n]",
18
- "Midsummer House is a moderately priced Chinese restaurant with a 3/5 customer rating, located near All Bar One.",
19
- "C. She then dips the needle in ink and using the pencil to draw a design on her leg, rubbing it off with a rag in the end. In this option, she is continuing the process of using the needle, pencil, and thread, which is most related to what she was doing in the previous sentence.",
20
- "Based on the passage, discuss the primary motivations and outcomes of the 1901 Federation of Australia, including the roles and responsibilities of the federal government, as well as the continued governmental structures of the individual states involved.",
21
- "James pays the minor characters $15,000 each episode. Since there are 4 minor characters, he pays them a total of 4 * $15,000 = $60,000 per episode.\n\nThe major characters are paid three times as much. So, each major character gets paid 3 * $15,000 = $45,000 per episode.\n\nThere are 5 main characters, so he pays them a total of 5 * $45,000 = $225,000 per episode.\n\nIn total, James pays $225,000 (major characters) + $60,000 (minor characters) = $285,000 per episode."
 
 
 
 
 
22
  ]
23
  }
 
1
  {
2
  "questions": [
3
+ "Please answer the following question: \"Honeywell RQ-16 T-Hawk\", given a list of categories: company, educational institution, artist, athlete, office holder, mean of transportation, building, natural place, village, animal, plant, album, film or written work, what category does the title belong to?\nAnswer:",
4
+ "Sentence 1: You and Tuppence have been sticking together like Siamese twins.\n\nSentence 2: You and Tuppence have barely seen each other.\nIs this second sentence entailed by the first sentence?",
5
+ "Wie ich bereits sagte, habe ich gemischte Gefühle, ich finde es außerordentlich schwierig, hier über Instrumente zu sprechen, die im Rahmen einer gemeinsamen Einwanderungspolitik sinnvoll sind, aber für sich genommen so aussehen, als ob sie nur dazu dienen sollen, Asylsuchende draußen vor der Tür zu lassen.\n\nCould you please translate this to English?",
6
+ "How did the Israeli-Palestinian conflict start?\nHow can the Israeli-Palestinian conflict end?\n\nAre these two questions inquiring about the same information?",
7
+ "Generate a sentence, and then tell me the concepts included in that sentence.",
8
+ "Use the following highlights to write an article:\n\nGreece international central defender Sotirios Kyrgiakos moves to Liverpool. Liverpool manager Rafa Benitez swoops because of recent defensive injuries. Kyrgiakos, 30, likely to make Liverpool debut against Aston Villa on Monday.\n\nArticle:",
9
+ "Article:Royal Navy pilot Lt Nick Grimmer heard the kitten meowing a day after travelling from Birmingham to the Royal Naval Air Station in Culdrose.\nHe dismantled the car with colleagues and found the kitten hiding inside the bumper of his BMW.\nThe kitten has been named Tigger by the pilot's colleagues in the 814 Naval Air Squadron, known as the Flying Tigers.\nLt Grimmer, 32, said: \"The place he has felt most comfortable is in my flying helmet, which is the only place he is able to sleep.\"\nThe pilot picked up his car at Birmingham Airport on Monday and drove to the air base via Bristol and Bath.\nHe thought it most likely the kitten had climbed inside the car while it was parked for several days at Birmingham Airport.\nHe said the kitten was unharmed by the journey and he and colleagues are now trying to find his owners.\n\nA summary of the above article is?",
10
+ "Please answer the following question: ash held jordan's gaze because jordan was attracted to ash and wanted to ask them out. Given that the answer to a question is \"be flattered\", what is the question?\nAnswer:",
11
+ "Write a title:\nThe Recording Industry Association of America (RIAA) has announced that its member companies filed a new wave of copyright infringement lawsuits against 754 individual file-sharers.",
12
+ "Given the question: Formulate an answer to this elaborate question: William Aulton Kennedy was a pitcher for the Cleveland Indians, St. Louis Browns, Chicago White Sox, Boston Red Sox and Cincinnati Redlegs, what US city are the Cleveland Indians based out of?\nThe answer is:"
13
  ],
14
  "system_prompts": [
15
+ "You are an AI assistant. Provide a detailed answer so user don’t need to search outside to understand the answer.",
16
+ "You are a helpful assistant, who always provide explanation. Think like you are answering to a five year old.",
17
+ "You are a helpful assistant, who always provide explanation. Think like you are answering to a five year old.",
18
+ "You are an AI assistant. User will you give you a task. Your goal is to complete the task as faithfully as you can. While performing the task think step-by-step and justify your steps.",
19
  "You are a helpful assistant, who always provide explanation. Think like you are answering to a five year old.",
20
  "You are an AI assistant. You will be given a task. You must generate a detailed and long answer.",
21
+ "You are an AI assistant. User will you give you a task. Your goal is to complete the task as faithfully as you can. While performing the task think step-by-step and justify your steps.",
22
+ "You are an AI assistant. User will you give you a task. Your goal is to complete the task as faithfully as you can. While performing the task think step-by-step and justify your steps.",
23
+ "You are an AI assistant. User will you give you a task. Your goal is to complete the task as faithfully as you can. While performing the task think step-by-step and justify your steps.",
24
+ "You are an AI assistant. Provide a detailed answer so user don’t need to search outside to understand the answer."
25
  ],
26
  "responses": [
27
+ "The \"Honeywell RQ-16 T-Hawk\" belongs to the category of mean of transportation. It is a small unmanned aerial vehicle (UAV) designed for surveillance and reconnaissance missions.",
28
+ "No, it's not, little buddy! The first sentence means that you and Tuppence are always together, like Siamese twins who are physically connected. The second sentence says that you and Tuppence have not seen each other much. These sentences are opposite, not connected. So the second sentence is not caused by or based on the first sentence.",
29
+ "Alright, so someone said that they have mixed feelings. They think it's very hard to talk about tools that are useful for making rules about people moving to a new country together. If you look at these tools alone, it seems like their only job is to keep people who need help and protection away from their doorstep.",
30
+ "No, these two questions are not inquiring about the same information. They are, however, closely related and both pertain to the Israeli-Palestinian conflict.\n\n1. The first question is asking about the historical origins of the Israeli-Palestinian conflict.\n\nTo answer this question, I will provide some context on the historical origins of the conflict:\n\nThe Israeli-Palestinian conflict has deep historical roots, which can be traced back to the late 19th and early 20th centuries when nationalist movements emerged among Jews and Arabs. The conflict intensified in the 1910s and 1920s, during and after World War I, when Britain and France established colonial mandates in the region, including the British Mandate for Palestine. The 1947 United Nations Partition Plan for Palestine, which proposed dividing Palestine into separate Jewish and Arab states, further exacerbated tensions between Jews and Arabs, ultimately resulting in the 1948 Arab-Israeli War (also known as Israel's War of Independence). The war led to the establishment of the state of Israel and the displacement of hundreds of thousands of Palestinian Arab refugees. Since then, the conflict has been marked by ongoing tensions, violence, and multiple wars, including the 1967 Six-Day War and the 1973 Yom Kippur War.\n\n2. The second question is asking about possible solutions or ways to resolve the Israeli-Palestinian conflict.\n\nTo answer this question, I will propose some ways that the conflict might be resolved:\n\n- Two-state solution: One possible solution to the conflict is the establishment of an independent Palestinian state alongside the state of Israel, based on the pre-1967 borders. This would require both Israelis and Palestinians to reach a comprehensive peace agreement, addressing issues such as borders, security, refugees, and the status of Jerusalem.\n\n- One-state solution: Another possible solution is forming a single, bi-national state in which both Jews and Palestinians have equal rights. This would involve dismantling the current political structures and creating a new, unified government representing both groups.\n\n- Regional integration: Some argue that the Israeli-Palestinian conflict could be resolved by integrating Israel and a Palestinian state into a larger Middle East regional framework, promoting economic cooperation and security arrangements between the countries of the region.\n\nUltimately, resolving the Israeli-Palestinian conflict would likely require significant compromises from both sides, international support and mediation, and a genuine commitment to addressing the core issues at the heart of the conflict.",
31
+ "Sentence: The little boy shared his colorful toy with the friendly dog.\n\nConcepts: \n1. Little boy - a young male child\n2. Shared - giving or using something with someone else\n3. His - shows that something belongs to someone (in this case, the little boy)\n4. Colorful - having many colors or bright colors\n5. Toy - something to play with, like a ball or stuffed animal\n6. With - together or at the same time as someone else\n7. Friendly - kind and nice to others\n8. Dog - a common four-legged pet that people keep in their homes",
32
+ "Title: Liverpool Strengthens Defense with Signing of Sotirios Kyrgiakos\n\nHIGHLIGHTS:\n- Greece international central defender Sotirios Kyrgiakos moves to Liverpool\n- Liverpool manager Rafa Benitez swoops because of recent defensive injuries\n- Kyrgiakos, 30, likely to make Liverpool debut against Aston Villa on Monday\n\nIn a move to bolster their defensive capabilities, Premier League giants Liverpool have signed Greek international central defender Sotirios Kyrgiakos. The acquisition comes at a crucial time, as the team has been hit with a series of unfortunate injuries to key players in their defense. Liverpool manager Rafa Benitez has identified the experienced Kyrgiakos as a reliable short-term solution, and the 30-year-old defender is expected to make his highly-anticipated debut against Aston Villa on Monday.\n\nThe signing of Sotirios Kyrgiakos is a testament to Liverpool's commitment to strengthening their squad in an effort to challenge for the Premier League title. Kyrgiakos brings a wealth of experience to the team, having had successful stints with Greek powerhouse AEK Athens and Scottish champions Rangers, as well as representing his country at the highest level. He has proven himself to be a formidable presence in central defense, with an uncanny ability to read the game and make key interceptions.\n\nManager Rafa Benitez has been vocal about his desire to improve Liverpool's defensive unit, particularly in light of recent injuries to key players such as Daniel Agger and Martin Skrtel. With both players expected to be sidelined for a significant period of time, the acquisition of Kyrgiakos is seen as an essential and timely reinforcement to the Reds' defense.\n\nKyrgiakos is not without his fair share of accolades, having won numerous domestic titles during his time at AEK Athens and an impressive UEFA Cup runners-up medal with Rangers in 2008. His strong performances for club and country have earned him over 60 international caps for Greece, and he was an integral part of the squad that participated in the 2004 European Championship as well as the 2008 and 2012 UEFA European Championships.\n\nFans and pundits alike are eager to see how the experienced Greek defender will fare in his debut against Aston Villa on Monday night. Despite being a relatively late arrival in the summer transfer window, Kyrgiakos is expected to slot seamlessly into Liverpool's backline, adding significant depth and experience to a unit that has been hampered by injuries.\n\nIn summary, the signing of Sotirios Kyrgiakos represents a shrewd piece of business for Liverpool, as they look to solidify their defensive foundations amid an injury crisis. With his wealth of experience and proven track record at both club and international level, Kyrgiakos is expected to make an immediate impact in the heart of Liverpool's defense, providing crucial cover and stability as they battle to maintain their status as Premier League contenders. The Greek international's debut on Monday night will be one to watch, as Liverpool fans get their first glimpse of their latest defensive acquisition in action against Aston Villa.",
33
+ "Royal Navy pilot Lt Nick Grimmer discovered a kitten meowing inside his car, which had traveled from Birmingham to the Royal Naval Air Station in Culdrose. He and his colleagues dismantled the car to find the kitten hiding in the bumper of his BMW. The kitten, named Tigger, is believed to have climbed into the car while it was parked at Birmingham Airport. Lt Grimmer, along with his colleagues from 814 Naval Air Squadron, is now trying to find the kitten's owners.",
34
+ "What should Ash's reaction be if they find out that Jordan is attracted to them and wants to ask them out?",
35
+ "Title: \"RIAA Launches Fresh Wave of Copyright Infringement Lawsuits Targeting 754 Individual File-Sharers\" \n\nStep-by-step justification:\n\n1. Begin with the main subject: To create a clear and concise title, I started with the main subject, which is the Recording Industry Association of America (RIAA).\n\n2. Include the action: Next, I added the action, which is the announcement of new copyright infringement lawsuits.\n\n3. Specify the target of the action: To provide more information and context, I included the target of these lawsuits, which are 754 individual file-sharers.\n\n4. Emphasize the \"new wave\" of lawsuits: I mentioned the \"fresh wave\" to highlight that this is an ongoing issue and the RIAA is continuously working to enforce copyright.\n\n5. Keep it concise and informative: The final title is concise, informative, and clearly states the main points of the news story.",
36
+ "The Cleveland Indians are based out of the city of Cleveland, which is located in the state of Ohio, United States. The team is a member of the Central Division in Major League Baseball's (MLB) American League."
37
  ]
38
  }
flan-t5-small.pth CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:758096d18576f1bb797e4ce142d2fdecea9d3c018ea2d2b2808583dd3d09a7be
3
- size 307930306
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a4d7ea84774f0dec77700ce48845fd2d69ceed5608dbbd23b6c5f799e29ba491
3
+ size 307932994