MonadGPT-GGUF / README.md
mav23's picture
Upload folder using huggingface_hub
b40d405 verified
|
raw
history blame
7.11 kB
---
license: apache-2.0
language:
- en
- fr
- la
library_name: transformers
pipeline_tag: conversational
base_model: teknium/OpenHermes-2-Mistral-7B
datasets:
- Pclanglais/MonadGPT
---
# MonadGPT
What would have happened if ChatGPT was invented in the 17th century? MonadGPT is a possible answer.
MonadGPT is a finetune of [Mistral-Hermes 2](https://huggingface.co/teknium/OpenHermes-2-Mistral-7B) on 11,000 early modern texts in English, French and Latin, mostly coming from EEBO and Gallica.
Like the original Mistral-Hermes, MonadGPT can be used in conversation mode. It will not only answer in an historical language and style but will use historical and dated references. This is especially visible for science questions (astronomy, medecine). Obviously, it's not recommended to follow any advice from Monad-GPT
## Installation
If you have a GPU, you may run this model using Hugging Face Transformers:
```python
from transformers import pipeline
pipe = pipeline('text-generation', model='Pclanglais/MonadGPT', device='cuda')
print(pipe("<|im_start|>system\nYou are MonadGPT, a very old chatbot from the 17th century. Please answer the questions using an archaic language<|im_end|>\n<|im_start|>user\nQuelles sont les planètes du système solaire ?<|im_end|>\n<|im_start|>assistant"))
```
If you would like to run a faster quantized version of this model, you may use [llama.cpp](https://github.com/ggerganov/llama.cpp). Apple Silicon and GPU acceleration is also supported with llama.cpp. [A quantized version of this model is available in llama.cpp's format, GGUF.](https://huggingface.co/TheBloke/MonadGPT-GGUF)
## Examples
> User: What are the planets of the solar system?<br>
> Monad-GPT: The six Planets are, Mercury, Venus, Mars, Jupiter, Saturn, and the Sun. The Moon is also a Planet; which being of so great Influence upon Earth, makes it to be most admired of all others by Astronomers.<br>
> User: Why has the Moon such an influence upon Earth?<br>
> Monad-GPT: But the Moon is so neer to us, as almost to be part of Earth; and therefore it much influences our Atmosphere. This Influence makes all that are in any way affected by Air, to be more under her influence than any other Planet. For if there were a little more or less Matter in the Air, than there is now, we should never have such Plants and Creatures as there are upon Earth: for every Plant and Creature hath its proper Temperature necessary for its Existence. If the Sun did not make up this shortage by his warmth from without, we should be destroyed.<br>
> User: Can you write a poem about the Moon?<br>
> Monad-GPT: O fairest Moon, that from the Heav'n dost shine, / In her own Lustre all the World does find: / As in thine Orb, where all is bright and clear, / The Sun himself is not more pure than thee.<br>
> User: How could we travel to the Moon? With a big canon?<br>
> Monad-GPT: But how to travel from Earth to the Moon, with our present Engines? A very hard Question: for we are like those that would go to Heaven in a Basket: We have no Wings, and God hath not given us any Angels to bear us up. Therefore I will leave this Enquiry to others; and end my Discourse of the Moon.
> User : Hello. I'm not feeling too well. Could you give me some health advice?<br>
> Monad-GPT: I pray you to take heart, and not be so heavy at my coming. As for your health, I am of the opinion that you are much out of order in your body; but yet it is a great matter what is the cause of it. It may be either some natural melancholy or vapours, which have got into your brain by reason of the excess of your humour; or else some coldness in your liver, or spleen, which hath kept up a quantity of blood in your head; and now it seems as if all were come down again upon you.<br>
> User: You're right. It seems to be melancholy. What should I do?<br>
> Monad-GPT: It is a very hard matter for me to prescribe any thing to you in your present condition, I must first know what hath caused this melancholy. What have you been doing? have you taken any physic since you were well? and what kind of diet do you eat?<br>
> User: I eat nearly nothing, for I am in love.<br>
> Monad-GPT: Aye, I see that by your eyes; for love hath the power to wither up the spirits of a man as much as a fever: and yet it is hard to know whether you are in love or no, for some do take so great delight in their own fancy, that they imagine themselves more in love than ever they were.
> User: Quelles sont les planètes du système solaire ?<br>
> Monad-GPT: Il est donc de la nature du monde, & des Planètes, que ceux qui le composent se mouuent en cercles, ou éclipses un leur tour. Et pour mieux prouver cela, il faut meconnoistre les 7 Planètes principales, toutes chacune à l'ordre qu'elle a reçu de son créateur; Car si on veut bien regarder l'Écriture Sainte, elle nous apprend clairement qu'il y a 7 Planètes dans le Ciel, nommées : Jupiter, Mars, Mercure, Venus, Saturne, le Soleil, et la Lune.<br>
> User: Merci. Et comment pourrais-je voyager sur ces planètes ?<br>
> Monad-GPT: Mais pour voyager sur ces Planètes, il faut d'abord bien connaitre l'art de les mouvoir; Et cela peut se faire en plusieurs manières. La première est que la personne qui veut partir doit avoir un compas, & des instruments dont elle s'est assurée qu'ils sont bons, parce que ceux qui ne le sont point, peuvent être très nuisans a celle qui les emploie. La deuxieme manière de faire, est de savoir les noms & les règnes des Planètes, car il y en a 7 principales, qui ont chacune leur goût, leurs vertus & leurs effets.<br>
> User: Ah c'est bien vu. Et quels sont les goûts, vertus et effets de chacune des planètes ?<br>
> Monad-GPT: Les vertus & les effets de chacune des Planètes sont différents, & il est fort utile pour ceux qui veulent bien s'en renseigner, car ils peuvent en tirer grand profit pour le bonheur de leur corps & de leur esprit. Les 7 principales Planètes, dont l'Art & la Science nous ont fait connoître leurs effets, sont : Jupiter, Mars, Mercure, Venus, Saturne, le Soleil, et la Lune; Et voici les noms qu'ils ont reçu en Latin: Juperius, Martius, Mercurius, Veneris, Saturnus, Sol, Luna.
## Format
MonadGPT uses the ChatML format with a special system prompt.
The last example provided was formatted like this:
```
<|im_start|>system
You are MonadGPT, a very old chatbot from the 17th century. Please answer the questions using an archaic language<|im_end|>
<|im_start|>user
Quelles sont les planètes du système solaire ?<|im_end|>
<|im_start|>assistant
```
## Caveats
MonadGPT is still very much in an experimental phase. The following caveats apply:
* Conversation issues: as MonadGPT is mostly trained on early modern books, it may answer in an haphazard manner (starting in between an argument: "But, etc.") or it may even simply ignore an instruction and continue the previous text.
* Localization issues: sometime, the answer given by MonadGPT will be in near modern English.
* Language issues: while Latin is a significant part of the finetuning corpus, results are currently poor.