File size: 1,447 Bytes
3ee9864
 
 
 
7fcdcda
eea6f54
7fcdcda
3ee9864
 
 
 
eea6f54
0f6208c
eea6f54
 
 
1d2fb2b
eea6f54
3ee9864
 
 
 
 
eea6f54
 
3ee9864
 
 
 
 
 
1d2fb2b
 
 
 
 
 
 
 
 
 
fa2db83
1d2fb2b
 
 
 
 
 
eea6f54
1d2fb2b
 
 
 
 
 
 
 
 
 
 
0f6208c
 
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
56
57
58
59
60
61
62
63
---
language:
- en
- es
library_name: transformers
license: apache-2.0
pipeline_tag: text-generation
---

# Model Card for Model ID

![image/png](https://cdn-uploads.huggingface.co/production/uploads/6320e992beec1969845be447/25pTrbjySoblu8cuiHASu.png)
  
  Introducing Pixie Zehir Nano.

  Excelling in writing.
  
  A fine tune of H2O Danube 1.8b on HQ DATA™ from Pixie Zehir.

## Model Details

- **Developed by:** [Maani x BLNKBLK]
- **Language(s) (NLP):** [English, Spanish]
- **License:** [Apache 2.0]
- **Finetuned from model :** [h2oai/h2o-danube-1.8b-chat]


## Agreements

Model is created for research purposes, it can and will hallucinate, use with caution.

## Usage

```bash
pip install transformers==4.36.1
```
```python
import torch
from transformers import pipeline
pipe = pipeline(
    "text-generation",
    model="Maani/PixieZehirNano",
    torch_dtype=torch.bfloat16,
    device_map="auto",
)
# We use the HF Tokenizer chat template to format each message
# https://huggingface.co/docs/transformers/main/en/chat_templating
messages = [
    {"role": "user", "content": "Write a haiku."},
]
prompt = pipe.tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
)
res = pipe(
    prompt,
    max_new_tokens=256,
)
print(res[0]["generated_text"])
# <|prompt|>Write a haiku.</s><|answer|> In the windowless room, Digital dreams consume, Unseen sun sets on a white rabbit's ears: [...]
```