XanderJC commited on
Commit
c658d0b
1 Parent(s): 336eb6a

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/tmpn4ksj9no/XanderJC/llama-3-8b-orca-abc")
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/tmpn4ksj9no/XanderJC/llama-3-8b-orca-abc")
38
- model = AutoModelForCausalLMWithValueHead.from_pretrained("XanderJC//tmp/tmpn4ksj9no/XanderJC/llama-3-8b-orca-abc")
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/tmpzvcma_9l/XanderJC/llama-3-8b-orca-abc")
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/tmpzvcma_9l/XanderJC/llama-3-8b-orca-abc")
38
+ model = AutoModelForCausalLMWithValueHead.from_pretrained("XanderJC//tmp/tmpzvcma_9l/XanderJC/llama-3-8b-orca-abc")
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:72e98f6d4b75ee25dd7e58e8163a8ec854dabda12c42548f3071306a17a08ae9
3
  size 54543184
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a50e4debf7a2b1df182c5808e063ce245310df84a1f3dd4724db3bc1b8150b7a
3
  size 54543184
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2d4b24ba2de266eecec8d85abd30ff432d45b1c430b8c23dc376ea35e659296e
3
  size 17916
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00199708139b5be353dc689d7d8a6b878336eabe871a5dbff994688fecf432bd
3
  size 17916