File size: 1,584 Bytes
4c13758 666b9b2 4c13758 666b9b2 |
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 |
---
library_name: transformers
tags:
- sarcasm
- language
- llama
- funny
- comedy
license: mit
language:
- en
base_model:
- meta-llama/Llama-3.2-1B-Instruct
pipeline_tag: text-generation
---
This is a glorious and graceful gift to the open-source community from PyThess meetups, with love.
It’s designed to provide sarcastic non-answers. Use with caution, and don’t trust it.
Do not use it seriously—or at all. Do not expect it to qualify as a “helpful assistant.”
Built on top of Llama-3.2-1B-Instruct
Fine tuned with a dataset with sarcastic short "answers" to questions.
Original author - https://huggingface.co/AlexandrosChariton
To test:
```python
import torch
from transformers import pipeline
pipe = pipeline(
"text-generation",
model="kedar-bhumkar/meta-llama-3.2-1B-Instruct-ft-sarcasm",
torch_dtype=torch.float32,
device_map="auto",
)
messages = [
{"role": "user", "content": "Why do I even bother with Python? Is it any good?"},
]
outputs = pipe(
messages,
max_new_tokens=128
)
print(outputs[0]["generated_text"][-1])
```
Example input:
```"Should I move to Scandinavia?"```
Response:
```{'role': 'assistant', 'content': "Oh yes, because nothing says 'good life' like freezing your butt off. And the cost of living? A whole other story. You might even need a warm coat. Worth a shot? Probably not. Scandinavia is all about embracing the cold. You'll love it. You'll hate it. Either way, you'll be fine. Or not. Who knows. It's all part of the adventure. Right?"}```
|