XanderJC commited on
Commit
98c013d
·
verified ·
1 Parent(s): 5d094de

Push model using huggingface_hub.

Browse files
Files changed (3) hide show
  1. README.md +3 -3
  2. adapter_model.safetensors +1 -1
  3. 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="XanderJC//tmp/tmpw0xq6sam/XanderJC/llama-3-8b-orca-rlhf")
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("XanderJC//tmp/tmpw0xq6sam/XanderJC/llama-3-8b-orca-rlhf")
38
- model = AutoModelForCausalLMWithValueHead.from_pretrained("XanderJC//tmp/tmpw0xq6sam/XanderJC/llama-3-8b-orca-rlhf")
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="XanderJC//tmp/tmpq7uagt33/XanderJC/llama-3-8b-orca-rlhf")
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("XanderJC//tmp/tmpq7uagt33/XanderJC/llama-3-8b-orca-rlhf")
38
+ model = AutoModelForCausalLMWithValueHead.from_pretrained("XanderJC//tmp/tmpq7uagt33/XanderJC/llama-3-8b-orca-rlhf")
39
 
40
  inputs = tokenizer("Hello, my llama is cute", return_tensors="pt")
41
  outputs = model(**inputs, labels=inputs["input_ids"])
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2e3aba37e4bb3b4cb9220bbc3c83964b321603b925a93e29d9185167f08d2d77
3
  size 54543184
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4b10605858dacf7862045967d7a4c250aa5a5ba3f4836ed6a5fc8be95c9aa17
3
  size 54543184
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e83e364402462d85b011af2d08d2ed585da5f123102a2836923e9e404f1cb4e4
3
  size 17916
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c6612a311ebd326f29cb5a2138b4872bf932b30c9bbfcf3c0072defb2f7bee2
3
  size 17916