Commit
·
b8976f2
1
Parent(s):
5a5e203
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,21 +1,142 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
| 4 |
-
## Training procedure
|
| 5 |
|
| 6 |
|
| 7 |
-
|
| 8 |
-
-
|
| 9 |
-
- load_in_8bit: False
|
| 10 |
-
- load_in_4bit: True
|
| 11 |
-
- llm_int8_threshold: 6.0
|
| 12 |
-
- llm_int8_skip_modules: None
|
| 13 |
-
- llm_int8_enable_fp32_cpu_offload: False
|
| 14 |
-
- llm_int8_has_fp16_weight: False
|
| 15 |
-
- bnb_4bit_quant_type: fp4
|
| 16 |
-
- bnb_4bit_use_double_quant: False
|
| 17 |
-
- bnb_4bit_compute_dtype: float32
|
| 18 |
-
### Framework versions
|
| 19 |
|
|
|
|
| 20 |
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: mit
|
| 3 |
+
datasets:
|
| 4 |
+
- squad_v2
|
| 5 |
+
- quac
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
widget:
|
| 9 |
+
- text: >-
|
| 10 |
+
when: Lionel Andrés Messi[note 1] (Spanish pronunciation: [ljoˈnel anˈdɾes
|
| 11 |
+
ˈmesi] (listen); born 24 June 1987), also known as Leo Messi, is an
|
| 12 |
+
Argentine professional footballer who plays as a forward for and captains
|
| 13 |
+
both Major League Soccer club Inter Miami and the Argentina national team.
|
| 14 |
+
Widely regarded as one of the greatest players of all time, Messi has won a
|
| 15 |
+
record seven Ballon d'Or awards[note 2] and a record six European Golden
|
| 16 |
+
Shoes, and in 2020 he was named to the Ballon d'Or Dream Team. Until leaving
|
| 17 |
+
the club in 2021, he had spent his entire professional career with
|
| 18 |
+
Barcelona, where he won a club-record 34
|
| 19 |
+
- text: >-
|
| 20 |
+
where: Lionel Andrés Messi[note 1] (Spanish pronunciation: [ljoˈnel anˈdɾes
|
| 21 |
+
ˈmesi] (listen); born 24 June 1987), also known as Leo Messi, is an
|
| 22 |
+
Argentine professional footballer who plays as a forward for and captains
|
| 23 |
+
both Major League Soccer club Inter Miami and the Argentina national team.
|
| 24 |
+
Widely regarded as one of the greatest players of all time, Messi has won a
|
| 25 |
+
record seven Ballon d'Or awards[note 2] and a record six European Golden
|
| 26 |
+
Shoes, and in 2020 he was named to the Ballon d'Or Dream Team. Until leaving
|
| 27 |
+
the club in 2021, he had spent his entire professional career with
|
| 28 |
+
Barcelona, where he won a club-record 34
|
| 29 |
+
- text: >-
|
| 30 |
+
how: Lionel Andrés Messi[note 1] (Spanish pronunciation: [ljoˈnel anˈdɾes
|
| 31 |
+
ˈmesi] (listen); born 24 June 1987), also known as Leo Messi, is an
|
| 32 |
+
Argentine professional footballer who plays as a forward for and captains
|
| 33 |
+
both Major League Soccer club Inter Miami and the Argentina national team.
|
| 34 |
+
Widely regarded as one of the greatest players of all time, Messi has won a
|
| 35 |
+
record seven Ballon d'Or awards[note 2] and a record six European Golden
|
| 36 |
+
Shoes, and in 2020 he was named to the Ballon d'Or Dream Team. Until leaving
|
| 37 |
+
the club in 2021, he had spent his entire professional career with
|
| 38 |
+
Barcelona, where he won a club-record 34
|
| 39 |
+
- text: >-
|
| 40 |
+
what: Lionel Andrés Messi[note 1] (Spanish pronunciation: [ljoˈnel anˈdɾes
|
| 41 |
+
ˈmesi] (listen); born 24 June 1987), also known as Leo Messi, is an
|
| 42 |
+
Argentine professional footballer who plays as a forward for and captains
|
| 43 |
+
both Major League Soccer club Inter Miami and the Argentina national team.
|
| 44 |
+
Widely regarded as one of the greatest players of all time, Messi has won a
|
| 45 |
+
record seven Ballon d'Or awards[note 2] and a record six European Golden
|
| 46 |
+
Shoes, and in 2020 he was named to the Ballon d'Or Dream Team. Until leaving
|
| 47 |
+
the club in 2021, he had spent his entire professional career with
|
| 48 |
+
Barcelona, where he won a club-record 34
|
| 49 |
+
- text: >-
|
| 50 |
+
where: Egypt (Egyptian Arabic: مصر Maṣr Egyptian Arabic pronunciation:
|
| 51 |
+
[mɑsˤr]), officially the Arab Republic of Egypt, is a transcontinental
|
| 52 |
+
country spanning the northeast corner of Africa and the Sinai Peninsula in
|
| 53 |
+
the southwest corner of Asia. It is bordered by the Mediterranean Sea to the
|
| 54 |
+
north, the Gaza Strip of Palestine and Israel to the northeast, the Red Sea
|
| 55 |
+
to the east, Sudan to the south, and Libya to the west. The Gulf of Aqaba in
|
| 56 |
+
the northeast separates Egypt from Jordan and Saudi Arabia. Cairo is the
|
| 57 |
+
capital and largest city of Egypt, while Alexandria, the second-largest
|
| 58 |
+
city, is an important industrial and tourist hub at the Mediterranean
|
| 59 |
+
coast.[11] At approximately 100 million inhabitants, Egypt is the 14th-most
|
| 60 |
+
populated country in the world, and the third-most populated in Africa,
|
| 61 |
+
behind Nigeria and Ethiopia.
|
| 62 |
+
- text: >-
|
| 63 |
+
where: There is evidence of rock carvings along the Nile terraces and in
|
| 64 |
+
desert oases. In the 10th millennium BCE, a culture of hunter-gatherers and
|
| 65 |
+
fishers was replaced by a grain-grinding culture. Climate changes or
|
| 66 |
+
overgrazing around 8000 BCE began to desiccate the pastoral lands of Egypt,
|
| 67 |
+
forming the Sahara. Early tribal peoples migrated to the Nile River where
|
| 68 |
+
they developed a settled agricultural economy and more centralized society.
|
| 69 |
+
- text: >-
|
| 70 |
+
when: By about 6000 BCE, a Neolithic culture took root in the Nile
|
| 71 |
+
Valley.[31] During the Neolithic era, several predynastic cultures developed
|
| 72 |
+
independently in Upper and Lower Egypt. The Badarian culture and the
|
| 73 |
+
successor Naqada series are generally regarded as precursors to dynastic
|
| 74 |
+
Egypt. The earliest known Lower Egyptian site, Merimda, predates the
|
| 75 |
+
Badarian by about seven hundred years. Contemporaneous Lower Egyptian
|
| 76 |
+
communities coexisted with their southern counterparts for more than two
|
| 77 |
+
thousand years. The earliest known evidence of Egyptian hieroglyphic
|
| 78 |
+
inscriptions appeared during the predynastic period on Naqada III pottery
|
| 79 |
+
vessels, dated to about 3200 BCE.[32]
|
| 80 |
+
- text: >-
|
| 81 |
+
whose : or the next three millennia. Egyptian culture flourished during this
|
| 82 |
+
long period and remained distinctively Egyptian in its religion, arts,
|
| 83 |
+
language and customs. The first two ruling dynasties of a unified Egypt set
|
| 84 |
+
the stage for the Old Kingdom period, c. 2700–2200 BCE, which constructed
|
| 85 |
+
many pyramids, most notably the Third Dynasty pyramid of Djoser and the
|
| 86 |
+
Fourth Dynasty Giza pyramids.
|
| 87 |
+
- text: >-
|
| 88 |
+
who:The First Intermediate Period ushered in a time of political upheaval
|
| 89 |
+
for about 150 years.[33] Stronger Nile floods and stabilisation of
|
| 90 |
+
government, however, brought back renewed prosperity for the country in the
|
| 91 |
+
Middle Kingdom c. 2040 BCE, reaching a peak during the reign of Pharaoh
|
| 92 |
+
Amenemhat III. A second period of disunity heralded the arrival of the first
|
| 93 |
+
foreign ruling dynasty in Egypt, that of the Semitic Hyksos. The Hyksos
|
| 94 |
+
invaders took over much of Lower Egypt around 1650 BCE and founded a new
|
| 95 |
+
capital at Avaris. They were driven out by an Upper Egyptian force led by
|
| 96 |
+
Ahmose I, who founded the Eighteenth Dynasty and relocated the capital from
|
| 97 |
+
Memphis to Thebes.
|
| 98 |
+
library_name: transformers
|
| 99 |
+
tags:
|
| 100 |
+
- generate answers
|
| 101 |
+
- question generator
|
| 102 |
+
- generate text
|
| 103 |
+
- nlp
|
| 104 |
+
- dataset maker
|
| 105 |
+
- flan t5
|
| 106 |
+
- t5
|
| 107 |
---
|
|
|
|
| 108 |
|
| 109 |
|
| 110 |
+
# Model Card for QA_GeneraToR
|
| 111 |
+
Excited 😄 to share with you my very first model 🤖 for generating question-answering datasets! This incredible model takes articles 📜 or web pages, and all you need to provide is a prompt and context. It works like magic ✨, generating both the question and the answer. The prompt can be anything – "what," "who," "where" ... etc ! 😅
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
|
| 113 |
+
I've harnessed the power of the flan-t5 model 🚀, which has truly elevated the quality of the results. You can find all the code and details in the repository right here: https://lnkd.in/dhE5s_qg
|
| 114 |
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
|
| 126 |
+
And guess what? I've even deployed the project, so you can experience the magic firsthand: https://lnkd.in/diq-d3bt ❤️
|
| 127 |
+
|
| 128 |
+
Join me on this exciting journey into #nlp, #textgeneration, #t5, #deeplearning, and #huggingface. Your feedback and collaboration are more than welcome! 🌟
|
| 129 |
+
# my fine tuned model
|
| 130 |
+
>This model is fine tuned to generate a question with answers from a context , why that can be very usful this can help you to generate a dataset from a book article any thing you would to make from it dataset and train another model on this dataset , give the model any context with pre prometed of quation you want + context and it will extarct question + answer for you
|
| 131 |
+
this are promted i use
|
| 132 |
+
>[ "which", "how", "when", "where", "who", "whom", "whose", "why",
|
| 133 |
+
"which", "who", "whom", "whose", "whereas",
|
| 134 |
+
"can", "could", "may", "might", "will", "would", "shall", "should",
|
| 135 |
+
"do", "does", "did", "is", "are", "am", "was", "were", "be", "being", "been",
|
| 136 |
+
"have", "has", "had", "if", "is", "are", "am", "was", "were", "do", "does", "did", "can", "could",
|
| 137 |
+
"will", "would", "shall", "should", "might", "may", "must",
|
| 138 |
+
"may", "might", "must"]
|
| 139 |
+
>
|
| 140 |
+
# orignal model info
|
| 141 |
+
<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/flan2_architecture.jpg"
|
| 142 |
+
alt="drawing" width="600"/>
|