amirabdullah19852020 commited on
Commit
91e805d
1 Parent(s): f07371a

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="amirabdullah19852020//tmp/tmpi38snhcg/amirabdullah19852020/pythia-70m_sentiment_reward")
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/tmpi38snhcg/amirabdullah19852020/pythia-70m_sentiment_reward")
38
- model = AutoModelForCausalLMWithValueHead.from_pretrained("amirabdullah19852020//tmp/tmpi38snhcg/amirabdullah19852020/pythia-70m_sentiment_reward")
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/tmpz1w2usia/amirabdullah19852020/pythia-70m_sentiment_reward")
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/tmpz1w2usia/amirabdullah19852020/pythia-70m_sentiment_reward")
38
+ model = AutoModelForCausalLMWithValueHead.from_pretrained("amirabdullah19852020//tmp/tmpz1w2usia/amirabdullah19852020/pythia-70m_sentiment_reward")
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:77526c06b046056e92389b63b98e92e490c0658db3b396964e1a218c95c835f6
3
  size 281736493
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:648de882eb2c8fca44a2af7fbaa1c5b5f5260f5454ab93e6bc8179a5d1c9fd7a
3
  size 281736493