yuchiz commited on
Commit
0aa1e65
·
verified ·
1 Parent(s): af7e565

Push model using huggingface_hub.

Browse files
Files changed (3) hide show
  1. README.md +3 -3
  2. adapter_config.json +2 -2
  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="yuchiz//srv/condor/execute/dir_9588/tmpl6negyej/yuchiz/cache")
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("yuchiz//srv/condor/execute/dir_9588/tmpl6negyej/yuchiz/cache")
38
- model = AutoModelForCausalLMWithValueHead.from_pretrained("yuchiz//srv/condor/execute/dir_9588/tmpl6negyej/yuchiz/cache")
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="yuchiz//srv/condor/execute/dir_105512/tmp24z1ghmv/yuchiz/cache")
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("yuchiz//srv/condor/execute/dir_105512/tmp24z1ghmv/yuchiz/cache")
38
+ model = AutoModelForCausalLMWithValueHead.from_pretrained("yuchiz//srv/condor/execute/dir_105512/tmp24z1ghmv/yuchiz/cache")
39
 
40
  inputs = tokenizer("Hello, my llama is cute", return_tensors="pt")
41
  outputs = model(**inputs, labels=inputs["input_ids"])
adapter_config.json CHANGED
@@ -19,8 +19,8 @@
19
  "rank_pattern": {},
20
  "revision": null,
21
  "target_modules": [
22
- "v_proj",
23
- "q_proj"
24
  ],
25
  "task_type": "CAUSAL_LM",
26
  "use_rslora": false
 
19
  "rank_pattern": {},
20
  "revision": null,
21
  "target_modules": [
22
+ "q_proj",
23
+ "v_proj"
24
  ],
25
  "task_type": "CAUSAL_LM",
26
  "use_rslora": false
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bc1fe6da8bd9b4a5c1fd73857d734aed9fadded5e5d90435735e16bb76bea75e
3
  size 17471
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf70653163794fa91d99456833c13b137b9b5eda3215242221c5fd30b359c8f2
3
  size 17471