amirabdullah19852020 commited on
Commit
1ed69d5
·
1 Parent(s): 4079ca6

Push model using huggingface_hub.

Browse files
Files changed (2) hide show
  1. README.md +3 -3
  2. pytorch_model.bin +2 -2
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="amirabdullah19852020//tmp/tmp53bvcsl_/amirabdullah19852020/pythia_70m_ppo_imdb_sentiment_v2")
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("amirabdullah19852020//tmp/tmp53bvcsl_/amirabdullah19852020/pythia_70m_ppo_imdb_sentiment_v2")
38
- model = AutoModelForCausalLMWithValueHead.from_pretrained("amirabdullah19852020//tmp/tmp53bvcsl_/amirabdullah19852020/pythia_70m_ppo_imdb_sentiment_v2")
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="amirabdullah19852020//tmp/tmpjk_qhlmj/amirabdullah19852020/pythia_70m_ppo_imdb_sentiment_v2")
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("amirabdullah19852020//tmp/tmpjk_qhlmj/amirabdullah19852020/pythia_70m_ppo_imdb_sentiment_v2")
38
+ model = AutoModelForCausalLMWithValueHead.from_pretrained("amirabdullah19852020//tmp/tmpjk_qhlmj/amirabdullah19852020/pythia_70m_ppo_imdb_sentiment_v2")
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:964c69dd61bf04308c5f2e25775ae8062eebfdc37918d6bea7fcc2ff57b8401c
3
- size 306795729
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07ce3c04676509589e32d297e24296e01ecbbd05e6f007a575ed608358be5da1
3
+ size 306794449