File size: 893 Bytes
8638251
7a5f87e
 
 
 
8638251
 
45d9a90
7a5f87e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
base_model: []
tags:
- mergekit
- merge
license: apache-2.0
---
This is a merge of pre-trained language models created based on [DARE](https://arxiv.org/abs/2311.03099) using [mergekit](https://github.com/cg123/mergekit).

More descriptions of the model will be added soon.

### **Loading the Model**

Use the following Python code to load the model:

```python
import torch
from transformers import MistralForCausalLM, AutoTokenizer

model = MistralForCausalLM.from_pretrained("vanillaOVO/supermario_v4", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("vanillaOVO/supermario_v4")
```

### **Generating Text**

To generate text, use the following Python code:

```python
text = "Large language models are "
inputs = tokenizer(text, return_tensors="pt")

outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
```