File size: 2,447 Bytes
7eeb975 52865d8 7eeb975 52865d8 6873a4a 52865d8 6873a4a 52865d8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
---
license: mit
language:
- en
library_name: transformers
pipeline_tag: text-generation
tags:
- freeai
- conversational
- meowgpt
- gpt
- free
- opensource
- splittic
- ai
widget:
- text: <s> [|User|] Hello World </s>[|Assistant|]
---
# MeowGPT Readme
## Overview
MeowGPT, developed by CutyCat2000x, is a language model based on Llama with the checkpoint version 3.5. This model is designed to generate text in a conversational manner and can be used for various natural language processing tasks.
## Usage
### Loading the Model
To use MeowGPT, you can load it via the `transformers` library in Python using the following code:
```python
from transformers import LlamaTokenizer, AutoModelForCausalLM, AutoTokenizer
tokenizer = LlamaTokenizer.from_pretrained("cutycat2000x/MeowGPT-3.5")
model = AutoModelForCausalLM.from_pretrained("cutycat2000x/MeowGPT-3.5")
```
### Example Prompt
An example of how to prompt the model for generating text:
```python
{{ bos_token }}{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<<SYS>>\\n' + system_message + '\\n<</SYS>>\\n\\n' + message['content'] %}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' %}{{ '[INST] ' + content.strip() + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content.strip() + eos_token }}{% endif %}{% endfor %}
```
The <s> and </s> are start and end tokens.
## About the Model
- **Base Model**: Llama + Mixtral
- **Checkpoint Version**: 3.5
- **Datasets Used**: Private
## Citation
If you use MeowGPT in your research or projects, please consider citing CutyCat2000x.
## Disclaimer
Please note that while MeowGPT is trained to assist in generating text based on given prompts, it may not always provide accurate or contextually appropriate responses. It's recommended to review and validate the generated content before usage in critical applications.
For more information or support, refer to the `transformers` library documentation or CutyCat2000x's resources. |