ohnonoho commited on
Commit
e3089c0
·
1 Parent(s): 9b0e9ae

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +39 -3
README.md CHANGED
@@ -1,5 +1,41 @@
1
  ---
2
- license: openrail
 
 
 
 
 
 
 
3
  ---
4
- widget:
5
- - text: "Hello"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language: en
3
+ inference: false
4
+ tags:
5
+ - text-generation
6
+ - opt
7
+
8
+ license: other
9
+ commercial: false
10
  ---
11
+
12
+ ## Intro
13
+
14
+ This is a OPT-125m model trained with HF dataset on a single 3090 GPU.
15
+
16
+ ### How to use
17
+
18
+ You can use this model directly with a pipeline for text generation.
19
+
20
+ ```python
21
+ >>> from transformers import pipeline
22
+
23
+ >>> generator = pipeline('text-generation', model="facebook/opt-125m")
24
+ >>> generator("Hello, I'm am conscious and")
25
+ [{'generated_text': 'Hello, I am conscious and aware of the fact that I am a woman. I am aware of'}]
26
+ ```
27
+
28
+ By default, generation is deterministic. In order to use the top-k sampling, please set `do_sample` to `True`.
29
+
30
+ ```python
31
+ >>> from transformers import pipeline, set_seed
32
+
33
+ >>> set_seed(32)
34
+ >>> generator = pipeline('text-generation', model="facebook/opt-125m", do_sample=True)
35
+ >>> generator("Hello, I'm am conscious and")
36
+ [{'generated_text': 'Hello, I am conscious and active member of the Khaosan Group, a private, self'}]
37
+ ```
38
+
39
+ ## Training data
40
+
41
+ This model uses AHRLHF for RL https://huggingface.co/datasets/Anthropic/hh-rlhf