Evan-Lin commited on
Commit
8640ada
·
1 Parent(s): 60247a0

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="Evan-Lin//tmp/tmp9d54agxs/Evan-Lin/Bart-abs-yelp-entailment")
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("Evan-Lin//tmp/tmp9d54agxs/Evan-Lin/Bart-abs-yelp-entailment")
38
- model = AutoModelForCausalLMWithValueHead.from_pretrained("Evan-Lin//tmp/tmp9d54agxs/Evan-Lin/Bart-abs-yelp-entailment")
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="Evan-Lin//tmp/tmps_u5v_y3/Evan-Lin/Bart-abs-yelp-allure-10")
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("Evan-Lin//tmp/tmps_u5v_y3/Evan-Lin/Bart-abs-yelp-allure-10")
38
+ model = AutoModelForCausalLMWithValueHead.from_pretrained("Evan-Lin//tmp/tmps_u5v_y3/Evan-Lin/Bart-abs-yelp-allure-10")
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:b615fb6e07d3c3e1661f1473de78fb73ae8330edec71b631d82920e84aa04c8b
3
  size 557974885
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0fcb3df76fcd7e1ac0368cceb5b1da1f4f8139589e70f9c680dd06d512a4350a
3
  size 557974885