Hermi2023 commited on
Commit
db23edb
1 Parent(s): 8843e59

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="Hermi2023//mnt/hdd0/home/buwei/sample/tmp/tmp_gt_6lgl/Hermi2023/doc2query-ppo-msmarco-43520-121")
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("Hermi2023//mnt/hdd0/home/buwei/sample/tmp/tmp_gt_6lgl/Hermi2023/doc2query-ppo-msmarco-43520-121")
38
- model = AutoModelForCausalLMWithValueHead.from_pretrained("Hermi2023//mnt/hdd0/home/buwei/sample/tmp/tmp_gt_6lgl/Hermi2023/doc2query-ppo-msmarco-43520-121")
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="Hermi2023//mnt/hdd0/home/buwei/sample/tmp/tmpnkm6s2mj/Hermi2023/doc2query-ppo-msmarco-43520-121")
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("Hermi2023//mnt/hdd0/home/buwei/sample/tmp/tmpnkm6s2mj/Hermi2023/doc2query-ppo-msmarco-43520-121")
38
+ model = AutoModelForCausalLMWithValueHead.from_pretrained("Hermi2023//mnt/hdd0/home/buwei/sample/tmp/tmpnkm6s2mj/Hermi2023/doc2query-ppo-msmarco-43520-121")
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:0cb8b4dbb25ee011f57a516283811ec1619c8d71df5c90f696cea57e327837a1
3
  size 891706649
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:baa97947bee85983ae7f18cf21e86ee590d78a7b240601f95c8c764b8db34211
3
  size 891706649