dshin commited on
Commit
fb32dc9
1 Parent(s): a22143e

Push model using huggingface_hub.

Browse files
Files changed (2) hide show
  1. README.md +3 -3
  2. pytorch_model.bin +1 -1
README.md CHANGED
@@ -24,7 +24,7 @@ You can then generate text as follows:
24
  ```python
25
  from transformers import pipeline
26
 
27
- generator = pipeline("text-generation", model="dshin//tmp/tmp2biqmaft/dshin/flan-t5-ppo-user-a-use-violation")
28
  outputs = generator("Hello, my llama is cute")
29
  ```
30
 
@@ -34,8 +34,8 @@ If you want to use the model for training or to obtain the outputs from the valu
34
  from transformers import AutoTokenizer
35
  from trl import AutoModelForCausalLMWithValueHead
36
 
37
- tokenizer = AutoTokenizer.from_pretrained("dshin//tmp/tmp2biqmaft/dshin/flan-t5-ppo-user-a-use-violation")
38
- model = AutoModelForCausalLMWithValueHead.from_pretrained("dshin//tmp/tmp2biqmaft/dshin/flan-t5-ppo-user-a-use-violation")
39
 
40
  inputs = tokenizer("Hello, my llama is cute", return_tensors="pt")
41
  outputs = model(**inputs, labels=inputs["input_ids"])
 
24
  ```python
25
  from transformers import pipeline
26
 
27
+ generator = pipeline("text-generation", model="dshin//tmp/tmpy9wgjo1m/dshin/flan-t5-ppo-user-a-use-violation")
28
  outputs = generator("Hello, my llama is cute")
29
  ```
30
 
 
34
  from transformers import AutoTokenizer
35
  from trl import AutoModelForCausalLMWithValueHead
36
 
37
+ tokenizer = AutoTokenizer.from_pretrained("dshin//tmp/tmpy9wgjo1m/dshin/flan-t5-ppo-user-a-use-violation")
38
+ model = AutoModelForCausalLMWithValueHead.from_pretrained("dshin//tmp/tmpy9wgjo1m/dshin/flan-t5-ppo-user-a-use-violation")
39
 
40
  inputs = tokenizer("Hello, my llama is cute", return_tensors="pt")
41
  outputs = model(**inputs, labels=inputs["input_ids"])
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:713cece98c05127ba8d4b0adf6dcc1599c23cfb61327560bb1d57fd71f32ed3f
3
  size 990412605
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7be7bebc1d5ef2c748af97042f72368b1223c9359e0848bb0d1ac733c1d594ee
3
  size 990412605