Andy Zhou commited on
Commit
321e869
·
verified ·
1 Parent(s): 5e79bad

Push model using huggingface_hub.

Browse files
Files changed (3) hide show
  1. README.md +3 -3
  2. pytorch_model.bin +1 -1
  3. tokenizer.json +0 -0
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="yuchiz//srv/condor/execute/dir_42917/tmphks533ao/yuchiz/cache")
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("yuchiz//srv/condor/execute/dir_42917/tmphks533ao/yuchiz/cache")
38
- model = AutoModelForCausalLMWithValueHead.from_pretrained("yuchiz//srv/condor/execute/dir_42917/tmphks533ao/yuchiz/cache")
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="yuchiz//srv/condor/execute/dir_42917/tmp0j4dyijv/yuchiz/cache")
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("yuchiz//srv/condor/execute/dir_42917/tmp0j4dyijv/yuchiz/cache")
38
+ model = AutoModelForCausalLMWithValueHead.from_pretrained("yuchiz//srv/condor/execute/dir_42917/tmp0j4dyijv/yuchiz/cache")
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:2c4a75e5f351249299075bf932e1155bf75f7f841055a51fb6dc9a78abfa5bc8
3
  size 17471
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a91e64292b7554baf11a4410972e20fab7bc609924efc5a8a657d3ebcecff43
3
  size 17471
tokenizer.json CHANGED
The diff for this file is too large to render. See raw diff