SummerSigh commited on
Commit
0e67034
1 Parent(s): 831db2b

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="SummerSigh//tmp/tmpn8nky8x7/SummerSigh/T5-Base-EvilPrompterRM")
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/tmpn8nky8x7/SummerSigh/T5-Base-EvilPrompterRM")
38
- model = AutoModelForCausalLMWithValueHead.from_pretrained("SummerSigh//tmp/tmpn8nky8x7/SummerSigh/T5-Base-EvilPrompterRM")
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/tmp_wiiw7_h/SummerSigh/T5-Base-EvilPrompterRM")
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/tmp_wiiw7_h/SummerSigh/T5-Base-EvilPrompterRM")
38
+ model = AutoModelForCausalLMWithValueHead.from_pretrained("SummerSigh//tmp/tmp_wiiw7_h/SummerSigh/T5-Base-EvilPrompterRM")
39
 
40
  inputs = tokenizer("Hello, my llama is cute", return_tensors="pt")
41
  outputs = model(**inputs, labels=inputs["input_ids"])
config.json CHANGED
@@ -55,7 +55,7 @@
55
  },
56
  "tie_word_embeddings": false,
57
  "torch_dtype": "float32",
58
- "transformers_version": "4.26.1",
59
  "use_cache": true,
60
  "vocab_size": 32128
61
  }
55
  },
56
  "tie_word_embeddings": false,
57
  "torch_dtype": "float32",
58
+ "transformers_version": "4.22.1",
59
  "use_cache": true,
60
  "vocab_size": 32128
61
  }
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5196d0d013c64c61ef15378ad7654d30e26110ef14736759c28d437432e0f546
3
  size 990412605
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29334ac025438de4e674f37a2e4a6e30e242ad44786c43e6f54fc51a20c29250
3
  size 990412605