Bearnardd commited on
Commit
8cfd55c
1 Parent(s): 355cf51

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="Bearnardd//tmp/tmpt3qpc9br/Bearnardd/test_beard")
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("Bearnardd//tmp/tmpt3qpc9br/Bearnardd/test_beard")
38
- model = AutoModelForCausalLMWithValueHead.from_pretrained("Bearnardd//tmp/tmpt3qpc9br/Bearnardd/test_beard")
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="Bearnardd//tmp/tmplf5kgfcy/Bearnardd/test_beard")
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("Bearnardd//tmp/tmplf5kgfcy/Bearnardd/test_beard")
38
+ model = AutoModelForCausalLMWithValueHead.from_pretrained("Bearnardd//tmp/tmplf5kgfcy/Bearnardd/test_beard")
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:0321412a25c6c9b55ba532464ed876c5e0c7fc98e7a7f04befee8207db112d9a
3
  size 510399237
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4093523d5d0f33d53973ce82833c7df9dbb165b1c5dc5afb43f7b071c7292df6
3
  size 510399237