hanyinwang commited on
Commit
0c8617c
1 Parent(s): e813230

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
@@ -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="hanyinwang//tmp/tmpzsih454n/hanyinwang/layer-project-rlhf-mistral")
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("hanyinwang//tmp/tmpzsih454n/hanyinwang/layer-project-rlhf-mistral")
39
- model = AutoModelForCausalLMWithValueHead.from_pretrained("hanyinwang//tmp/tmpzsih454n/hanyinwang/layer-project-rlhf-mistral")
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="hanyinwang//tmp/tmpo4hbycx7/hanyinwang/layer-project-rlhf-mistral")
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("hanyinwang//tmp/tmpo4hbycx7/hanyinwang/layer-project-rlhf-mistral")
39
+ model = AutoModelForCausalLMWithValueHead.from_pretrained("hanyinwang//tmp/tmpo4hbycx7/hanyinwang/layer-project-rlhf-mistral")
40
 
41
  inputs = tokenizer("Hello, my llama is cute", return_tensors="pt")
42
  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:f56ed35949b9a216e6e9d7a6779550ea55f844dd094691ee98f41f63f7807df9
3
  size 13648432
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a4b83c30c9cb5846223d599eed53ed4ff1a386e3499df079ec5c96a5b52125e
3
  size 13648432
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e6ce20e290f4927b297621aad8126715a5fdd2e6ccbade25cd78bcb03b7a0c59
3
  size 17916
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2d50a2117ce4a8d41fccd25c294f8a9fda1932a349911f8506280f635648b29
3
  size 17916