Jennny commited on
Commit
4bcbb1a
·
verified ·
1 Parent(s): 070f122

Push model using huggingface_hub.

Browse files
README.md CHANGED
@@ -25,7 +25,7 @@ You can then generate text as follows:
25
  ```python
26
  from transformers import pipeline
27
 
28
- generator = pipeline("text-generation", model="Jennny//tmp/tmp9xjomm6q/Jennny/llama3_samsum_rl_marshal")
29
  outputs = generator("Hello, my llama is cute")
30
  ```
31
 
@@ -35,8 +35,8 @@ If you want to use the model for training or to obtain the outputs from the valu
35
  from transformers import AutoTokenizer
36
  from trl import AutoModelForCausalLMWithValueHead
37
 
38
- tokenizer = AutoTokenizer.from_pretrained("Jennny//tmp/tmp9xjomm6q/Jennny/llama3_samsum_rl_marshal")
39
- model = AutoModelForCausalLMWithValueHead.from_pretrained("Jennny//tmp/tmp9xjomm6q/Jennny/llama3_samsum_rl_marshal")
40
 
41
  inputs = tokenizer("Hello, my llama is cute", return_tensors="pt")
42
  outputs = model(**inputs, labels=inputs["input_ids"])
 
25
  ```python
26
  from transformers import pipeline
27
 
28
+ generator = pipeline("text-generation", model="Jennny//tmp/tmp6j52druf/Jennny/llama3_samsum_rl_marshal")
29
  outputs = generator("Hello, my llama is cute")
30
  ```
31
 
 
35
  from transformers import AutoTokenizer
36
  from trl import AutoModelForCausalLMWithValueHead
37
 
38
+ tokenizer = AutoTokenizer.from_pretrained("Jennny//tmp/tmp6j52druf/Jennny/llama3_samsum_rl_marshal")
39
+ model = AutoModelForCausalLMWithValueHead.from_pretrained("Jennny//tmp/tmp6j52druf/Jennny/llama3_samsum_rl_marshal")
40
 
41
  inputs = tokenizer("Hello, my llama is cute", return_tensors="pt")
42
  outputs = model(**inputs, labels=inputs["input_ids"])
model-00001-of-00004.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:66cb734b9ebafd8f4f15b29e1a087287a6634609925d18d9d2d13b3b1b146907
3
  size 4976698672
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ebb7f8a3da0c9a0bfbacbf16e4d01778b71024c9815e99fb4d78278d28170ae
3
  size 4976698672
model-00002-of-00004.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ae7213128bec80c2af2016dee54175b14e8508fa9fbb0a59b40e235118e69e43
3
  size 4999802720
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e04e449d9cbdcd8fb69231fc5970e9ea25a53654f33799272ecf8bab2bc21eab
3
  size 4999802720
model-00003-of-00004.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6caf77d36427cde2fdf0103d80fe2c54f23b8e7fd62e06789874ee823a45ccce
3
  size 4915916176
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ebdf8b4ba5ce3c44f04e04a897f597e5a7eb4d22e46381d1de7e01fd8f40f7c
3
  size 4915916176
model-00004-of-00004.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ff49c6cfdc7462d475ac38600388df2fdcb9f41f006ad84e3d1772ed311e13e1
3
  size 1168155356
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38f8b4b9b00fb8350cc3f37c1d84121056441effacb869088b35ca93c34d6602
3
  size 1168155356