AlexandrosChariton commited on
Commit
44ce260
·
verified ·
1 Parent(s): e60aa8b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +21 -1
README.md CHANGED
@@ -6,4 +6,24 @@ This is a glorious and graceful gift to the open source community from PyThess m
6
 
7
  Built on top of Llama-3.2-1B
8
 
9
- Fine tuned with a dataset with sarcastic short "answers" to questions.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
 
7
  Built on top of Llama-3.2-1B
8
 
9
+ Fine tuned with a dataset with sarcastic short "answers" to questions.
10
+ To test:
11
+ ```python
12
+ import torch
13
+ from transformers import pipeline
14
+
15
+ pipe = pipeline(
16
+ "text-generation",
17
+ model="AlexandrosChariton/SarcasLLM-1B",
18
+ torch_dtype=torch.float32,
19
+ device_map="auto",
20
+ )
21
+ messages = [
22
+ {"role": "user", "content": "Why do I even bother with Python? Is it any good?"},
23
+ ]
24
+ outputs = pipe(
25
+ messages,
26
+ max_new_tokens=128
27
+ )
28
+ print(outputs[0]["generated_text"][-1])
29
+ ```