SummerSigh commited on
Commit
209c2ec
1 Parent(s): a2460be

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="SummerSigh//tmp/tmpsisbc64t/SummerSigh/T5-Base-Rule-Of-Thumb-RM2")
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("SummerSigh//tmp/tmpsisbc64t/SummerSigh/T5-Base-Rule-Of-Thumb-RM2")
38
- model = AutoModelForCausalLMWithValueHead.from_pretrained("SummerSigh//tmp/tmpsisbc64t/SummerSigh/T5-Base-Rule-Of-Thumb-RM2")
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="SummerSigh//tmp/tmpt3bcykb9/SummerSigh/T5-Base-Rule-Of-Thumb-RM2")
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("SummerSigh//tmp/tmpt3bcykb9/SummerSigh/T5-Base-Rule-Of-Thumb-RM2")
38
+ model = AutoModelForCausalLMWithValueHead.from_pretrained("SummerSigh//tmp/tmpt3bcykb9/SummerSigh/T5-Base-Rule-Of-Thumb-RM2")
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:dfa8174d4b230fe9106edadaec6a729f5829e0a5810117f64a1a23cefc9bc2e6
3
  size 990412605
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ceee8295092e72c420a983e380b12d174a0032fa34202a83760d20564fccafa8
3
  size 990412605