Evan-Lin commited on
Commit
35a3e50
·
1 Parent(s): 613c2d8

Push model using huggingface_hub.

Browse files
Files changed (3) hide show
  1. README.md +3 -3
  2. config.json +1 -1
  3. 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/tmp_9c08e1c/Evan-Lin/Bart-abs-yelp-allure-2")
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/tmp_9c08e1c/Evan-Lin/Bart-abs-yelp-allure-2")
38
- model = AutoModelForCausalLMWithValueHead.from_pretrained("Evan-Lin//tmp/tmp_9c08e1c/Evan-Lin/Bart-abs-yelp-allure-2")
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/tmpj388pof6/Evan-Lin/Bart-abs-yelp-allure-2")
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/tmpj388pof6/Evan-Lin/Bart-abs-yelp-allure-2")
38
+ model = AutoModelForCausalLMWithValueHead.from_pretrained("Evan-Lin//tmp/tmpj388pof6/Evan-Lin/Bart-abs-yelp-allure-2")
39
 
40
  inputs = tokenizer("Hello, my llama is cute", return_tensors="pt")
41
  outputs = model(**inputs, labels=inputs["input_ids"])
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "Evan-Lin/yelp-abs-bart-base-all",
3
  "activation_dropout": 0.1,
4
  "activation_function": "gelu",
5
  "add_bias_logits": false,
 
1
  {
2
+ "_name_or_path": "Evan-Lin/yelp-abs-bart-base-30-words",
3
  "activation_dropout": 0.1,
4
  "activation_function": "gelu",
5
  "add_bias_logits": false,
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7299ca0390b27a8e5e6ee81565feed41f0ab23aff9518c5e8ec565a305511a3d
3
  size 557974885
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4a9cb609d7d9d3dff1b3fba3645ba3af60d1875636e01cc00ec8923131fd400
3
  size 557974885