Jennny commited on
Commit
8309b09
·
verified ·
1 Parent(s): 4bcbb1a

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/tmp6j52druf/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/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"])
 
25
  ```python
26
  from transformers import pipeline
27
 
28
+ generator = pipeline("text-generation", model="Jennny//tmp/tmprlmp4ek8/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/tmprlmp4ek8/Jennny/llama3_samsum_rl_marshal")
39
+ model = AutoModelForCausalLMWithValueHead.from_pretrained("Jennny//tmp/tmprlmp4ek8/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:6ebb7f8a3da0c9a0bfbacbf16e4d01778b71024c9815e99fb4d78278d28170ae
3
  size 4976698672
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6acbbc91431076657d18aea8841f782e919c1b5dbd8d1121ac8b77e39c95182e
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:e04e449d9cbdcd8fb69231fc5970e9ea25a53654f33799272ecf8bab2bc21eab
3
  size 4999802720
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2adc989538c0c55baaf43a28c89e32838e2d4b4111c85d876db388c4696e0392
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:5ebdf8b4ba5ce3c44f04e04a897f597e5a7eb4d22e46381d1de7e01fd8f40f7c
3
  size 4915916176
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:256036e56941b638970668a28b9a8a34f8c8ae56a59b1b8b584e6a112341fbd4
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:38f8b4b9b00fb8350cc3f37c1d84121056441effacb869088b35ca93c34d6602
3
  size 1168155356
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63ee08a214ce4701a37485290875219c05b1610c196ce2fe80c8df1b23d6be25
3
  size 1168155356