PranavBP525 commited on
Commit
762d49f
1 Parent(s): 9fa9b2e

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
@@ -25,7 +25,7 @@ You can then generate text as follows:
25
  ```python
26
  from transformers import pipeline
27
 
28
- generator = pipeline("text-generation", model="PranavBP525//tmp/tmpkq6o0hhl/PranavBP525/phi-2-storygen-rlhf")
29
  outputs = generator("Hello, my llama is cute")
30
  ```
31
 
@@ -35,8 +35,8 @@ If you want to use the model for training or to obtain the outputs from the valu
35
  from transformers import AutoTokenizer
36
  from trl import AutoModelForCausalLMWithValueHead
37
 
38
- tokenizer = AutoTokenizer.from_pretrained("PranavBP525//tmp/tmpkq6o0hhl/PranavBP525/phi-2-storygen-rlhf")
39
- model = AutoModelForCausalLMWithValueHead.from_pretrained("PranavBP525//tmp/tmpkq6o0hhl/PranavBP525/phi-2-storygen-rlhf")
40
 
41
  inputs = tokenizer("Hello, my llama is cute", return_tensors="pt")
42
  outputs = model(**inputs, labels=inputs["input_ids"])
 
25
  ```python
26
  from transformers import pipeline
27
 
28
+ generator = pipeline("text-generation", model="PranavBP525//tmp/tmprl8sf9pk/PranavBP525/phi-2-storygen-rlhf")
29
  outputs = generator("Hello, my llama is cute")
30
  ```
31
 
 
35
  from transformers import AutoTokenizer
36
  from trl import AutoModelForCausalLMWithValueHead
37
 
38
+ tokenizer = AutoTokenizer.from_pretrained("PranavBP525//tmp/tmprl8sf9pk/PranavBP525/phi-2-storygen-rlhf")
39
+ model = AutoModelForCausalLMWithValueHead.from_pretrained("PranavBP525//tmp/tmprl8sf9pk/PranavBP525/phi-2-storygen-rlhf")
40
 
41
  inputs = tokenizer("Hello, my llama is cute", return_tensors="pt")
42
  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:1e1c614c1de17e56d7ef72d4cc6bac210f0db31e2765e96577ba73ad7fde9412
3
  size 11772
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:20430e8538a76dfb9d62981ab5a89bdbbda76cb0cbc69948a790ba845edec0d5
3
  size 11772